Skip to content

Instantly share code, notes, and snippets.

@yarl
Last active November 24, 2017 18:22
Show Gist options
  • Save yarl/704d958dfa1b0674cc630014275f72fa to your computer and use it in GitHub Desktop.
Save yarl/704d958dfa1b0674cc630014275f72fa to your computer and use it in GitHub Desktop.
return (function ($, mw) {
var translations = {
en: {
conflictMessage: 'A conflict detected on ',
conflictWithMessage: 'with',
createRedirect: 'Create a redirect',
creatingRedirect: 'Creating redirect...',
errorWhile: 'Error while "$1":',
invalidInput: 'Currently only Qid is a valid input',
loadMergeDestination: 'Load merge destination on success',
loadingMergeDestination: 'Loading merge destination...',
lowestQid: 'Always merge into the older item (uncheck to merge into the "Merge with" item)',
merge: 'Merge',
mergePendingNotification: 'Merge.js has been started.<br>Now you can focus your browser on the other item.',
mergeProcess: 'Process the merge now',
mergeSummary: 'Append the following text to the auto-generated edit summary:',
mergeThisItem: 'Merge this item',
mergeWithInput: 'Merge with:',
mergeWithProgress: 'Merge with...',
mergeWizard: 'Merge Wizard',
pleaseWait: 'Please wait...',
postpone: 'Postpone',
postponeTitle: 'Store this item\'s id and postpone the merge',
reportError: 'Please report above error [[here]] with source and destination of merge.',
selectForMerging: 'Select for merging',
selectForMergingTitle: 'Remember this item as the second one of the two items to be merged',
unwatchOption: 'Remove merged item from your watchlist (if watched)',
unwatching: 'Removing from watch list...',
},
pl: {
conflictMessage: 'Wykryto konflikt ',
conflictWithMessage: 'z',
createRedirect: 'Utwórz przekierowanie',
creatingRedirect: 'Tworzenie przekierowania...',
loadingMergeDestination: 'Ładowanie łączonego elementu...',
loadMergeDestination: 'Załaduj połączony element',
lowestQid: 'Zawsze łącz ze starszym elementem',
merge: 'Połącz',
mergePendingNotification: 'Merge.js zostało uruchomione.<br>Możesz teraz przejść do innego elementu.',
mergeProcess: 'Rozpocznij proces łączenia',
mergeThisItem: 'Połącz ten element',
mergeWithInput: 'Połącz z elementem:',
mergeWithProgress: 'Łączę z...',
mergeWizard: 'Kreator łączenia',
pleaseWait: 'Czekaj...',
postpone: 'Odłóż na później',
postponeTitle: 'Zapamiętaj identyfikator tego elementu i odłóż łączenie na później',
selectForMerging: 'Zaznacz do połączenia',
selectForMergingTitle: 'Zapamiętaj ten element jako drugi do połączenia dwóch elementów',
unwatchOption: 'Usuń łączone elementy z mojej listy obserwowanych (jeśli na niej były)',
unwatching: 'Usuwanie z listy obserwowanych...',
},
},
chain = mw.language.getFallbackLanguageChain(),
len = chain.length,
ret = {},
i = len - 1;
while (i >= 0) {
if (translations.hasOwnProperty(chain[i])) {
$.extend(ret, translations[chain[i]]);
}
i = i - 1;
}
return ret;
}(jQuery, mediaWiki));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment