MediaWiki:Gadget-Cat-a-lot.js/translating
(Redirected from MediaWiki:Gadget-Cat-a-lot.js/en)
Translating Cat-a-lot
Copy the following code and translate all strings wrapped in ticks and place it in Gadget-Cat-a-lot.js/LANG-CODE
//<nowiki>
// DO NOT CHANGE THE NEXT LINE
if (mw.config.get('wgUserLanguage') !== 'en') {
// DO NOT CHANGE THE PREVIOUS LINE
mw.messages.set({
// Preferences
// new added: 2017-11-20. Please translate.
// Use user language for i18n
'cat-a-lot-watchlistpref' : 'Watchlist preference concerning files edited with Cat-a-lot',
'cat-a-lot-watch_pref' : 'According to your general preferences',
'cat-a-lot-watch_nochange' : 'Do not change watchstatus',
'cat-a-lot-watch_watch' : 'Watch pages edited with Cat-a-lot',
'cat-a-lot-watch_unwatch' : 'Remove pages while editing with Cat-a-lot from your watchlist',
'cat-a-lot-minorpref' : 'Mark edits as minor (if you generally mark your edits as minor, this won’t change anything)',
'cat-a-lot-editpagespref' : 'Allow categorising pages (including categories) that are not files',
'cat-a-lot-docleanuppref' : 'Remove {{Check categories}} and other minor cleanup',
'cat-a-lot-uncatpref' : 'Remove {{Uncategorized}}',
'cat-a-lot-subcatcountpref': 'Sub-categories to show at most',
'cat-a-lot-config-settings': 'Preferences',
'cat-a-lot-buttonpref' : 'Use buttons instead of text links',
'cat-a-lot-comment-label' : 'Custom edit comment',
'cat-a-lot-edit-question' : 'Why is this change necessary?',
// Progress
// 'cat-a-lot-loading' : 'Loading …',
'cat-a-lot-editing' : 'Editing page',
'cat-a-lot-of' : 'of ',
'cat-a-lot-skipped-already' : 'The following {{PLURAL:$1|1=page was|$1 pages were}} skipped, because the page was already in the category:',
'cat-a-lot-skipped-not-found': 'The following {{PLURAL:$1|1=page was|$1 pages were}} skipped, because the old category could not be found:',
'cat-a-lot-skipped-server' : 'The following {{PLURAL:$1|1=page|$1 pages}} couldn’t be changed, since there were problems connecting to the server:',
'cat-a-lot-all-done' : 'All pages are processed.',
'cat-a-lot-done' : 'Done!',
'cat-a-lot-added-cat' : 'Added category $1',
'cat-a-lot-copied-cat' : 'Copied to category $1',
'cat-a-lot-moved-cat' : 'Moved to category $1',
'cat-a-lot-removed-cat' : 'Removed from category $1',
// 'cat-a-lot-return-to-page': 'Return to page',
// 'cat-a-lot-cat-not-found' : 'Category not found.',
// as in 17 files selected
'cat-a-lot-files-selected' : '{{PLURAL:$1|1=One file|$1 files}} selected.',
// Actions
'cat-a-lot-copy' : 'Copy',
'cat-a-lot-move' : 'Move',
'cat-a-lot-add' : 'Add',
'cat-a-lot-remove-from-cat': 'Remove from this category',
'cat-a-lot-enter-name' : 'Enter category name',
'cat-a-lot-select' : 'Select',
'cat-a-lot-all' : 'all',
'cat-a-lot-none' : 'none',
// 'cat-a-lot-none-selected': 'No files selected!'
});
}
// DO NOT CHANGE THE NEXT LINE
if (mw.config.get('wgContentLanguage') !== 'en') {
// DO NOT CHANGE THE PREVIOUS LINE
mw.messages.set({
// Summaries:
'cat-a-lot-pref-save-summary': 'Updating user preferences',
'cat-a-lot-summary-add' : 'Adding [[Category:$1]]',
'cat-a-lot-summary-copy' : 'Copying from [[Category:$1]] to [[Category:$2]]',
'cat-a-lot-summary-move' : 'Moving from [[Category:$1]] to [[Category:$2]]',
'cat-a-lot-summary-remove' : 'Removing from [[Category:$1]]',
'cat-a-lot-prefix-summary' : '', // Some text to prepend to the edit summary. Set this to an empty string if you use 'using'.
'cat-a-lot-using-summary' : ' using [[c:Help:Cat-a-lot|Cat-a-lot]]' // Some text to append to the edit summary. Set this to an empty string if you use 'prefix'.
});
}
//</nowiki>