MediaWiki talk:Gadget-AjaxQuickDelete.js/translating.js
Jump to navigation
Jump to search
Update based on the current MediaWiki:Gadget-AjaxQuickDelete.js
[edit]// Invoke automated jsHint-validation on save: A feature on Wikimedia Commons // Interested? See [[:commons:MediaWiki:JSValidator.js]] or [[:commons:Help:JSValidator]]. // <nowiki> /*global $:false, mw:false*/ // Translatable strings // Based on MediaWiki:Gadget-AjaxQuickDelete.js version from 8 February 2016, 22:59 $.extend(true, window.AjaxQuickDelete.i18n, { toolboxLinkDelete: "Nominate for deletion", toolboxLinkDiscuss: "Nominate category for discussion", // GUI reason prompt form reasonForDeletion: "Why should this file be deleted?", reasonForDiscussion: "Why does this category need discussion?", moreInformation: "More information", loading: "Loading...", keptAfterDR: "This page was kept after a deletion request. Please contact the administrator who kept it before re-nominating.", hasTalkpage: "There is a talk page. Consider reading it or adding your remarks.", mentionedInDR: "Consider reading the deletion debate –%PAGE%– that links to this page.", mentionedInForum: "On %PAGE%, this page is part of a discussion.", // Labels previewLabel: "Preview:", submitButtonLabel: "Proceed", cancelButtonLabel: "Cancel", abortButtonLabel: "Abort", reportButtonLabel: "Report automatically", retryButtonLabel: "Retry", ignoreButtonLabel: "Ignore and continue", inverseButtonLabel: "Inverse. Keep this delete other", swapImagesButtonLabel: "Swap to compare", overlayButtonLabel: "Overlay to compare", expandToTextarea: "Expand to textarea", // GUI progress messages preparingToEdit: "Preparing to edit pages... ", creatingNomination: "Creating nomination page... ", listingNomination: "Adding nomination page to daily list... ", addingAnyTemplate: "Adding template to " + mw.config.get('wgCanonicalNamespace').toLowerCase() + " page... ", notifyingUploader: "Notifying %USER%... ", // Extended version toolboxLinkSource: "No source", toolboxLinkLicense: "No license", toolboxLinkPermission: "No permission", toolboxLinkCopyvio: "Report copyright violation", reasonForCopyvio: "Why is this file a copyright violation?", // For moving files notAllowed: "You do not have the neccessary rights to move files", reasonForMove: "Why do you want to move this file?", moveDestination: "What should be the new file name?", moveOtherDestination: "The name you have specified exists. Choose a new name, please.", checkFileExists: "Checking whether file exists", movingFile: "Moving file", replacingUsage: "Ordering CommonsDelinker to replace all usage", dropdownMove: "Move & Replace", leaveRedirect: "Leave a redirect behind:", moveAndReplace: "Move file and replace all usage", // For declining any request removingTemplate: "Removing template", declineRequest: "Why do you want to decline the request?", anyDecline: "Decline request", //For Duplicates useCORSForReplace: "Try to replace usage immediately using your user account:", deletingFile: "Deleting file", compareDetails: "Please compare the images before merging the descriptions. The image with the bold text will be deleted.", mergeDescription: "Please now merge the file descriptions", redirectingFile: "Redirecting file", savingDescription: "Saving new details", // Errors errorDlgTitle: "Error", genericFailure: "An error occurred while trying to do the requested action. ", taskFailure: { listUploaders: "An error occurred while determining the " + (mw.config.get('wgNamespaceNumber') === 6 ? " uploader(s) of this file" : "creator of this page") + ".", loadPages: "An error occurred while preparing to nominate this " + mw.config.get('wgCanonicalNamespace').toLowerCase() + " for deletion.", prependDeletionTemplate: "An error occurred while adding the {{delete}} template to this " + mw.config.get('wgCanonicalNamespace').toLowerCase() + ".", createRequestSubpage: "An error occurred while creating the request subpage.", listRequestSubpage: "An error occurred while adding the deletion request to today's log.", notifyUploaders: "An error occurred while notifying the " + (mw.config.get('wgNamespaceNumber') === 6 ? " uploader(s) of this file" : "creator of this page") + ".", movePage: "Error while moving the page.", deletePage: "Error deleting the page." }, addTemplateByHand: "To nominate this " + mw.config.get('wgCanonicalNamespace').toLowerCase() + " for deletion, please edit the page to add the {{delete}} template and follow the instructions shown on it.", completeRequestByHand: "Please follow the instructions on the deletion notice to complete the request.", errorDetails: "A detailed description of the error is shown below:", errorReport: "Manually report the error here or click on <tt>Report automatically</tt> to send an automatic error-report.", tagWas: "The tag to be inserted into this page was " }); $(document).triggerHandler('translationLoaded', ['AjaxQuickDelete', 'please subst. with your langcode']); // </nowiki>
{{Edit request}} --jdx Re: 06:42, 21 May 2016 (UTC)
- @Jdx The original uses
conf.wgCanonicalNamespace.toLowerCase()
Why not make also, for example:
(function () {
var cnNamespace = mw.config.get('wgCanonicalNamespace').toLowerCase();
var namespaceNr = mw.config.get('wgNamespaceNumber');
...
})();
Because it are 4 + 3 (get - 2 + toLowerCase -1 ) needless operations. ↔ User: Perhelion 15:12, 21 May 2016 (UTC)
- @Perhelion: You should rather address this question to @Rillke as he is the person who seems to be the current maintainer of Gadget-AjaxQuickDelete.js. I have just synchronized translating.js with Gadget-AjaxQuickDelete.js. I am not JavaScript expert (nor PHP, Ajax nor similar stuff). I am pure C and to some extent C++ guy. :-) --jdx Re: 05:38, 22 May 2016 (UTC)
- I'll let Rillke verify this change incase it causes collateral damage when translating later on. ~riley (talk) 06:09, 22 May 2016 (UTC)
- Done Awesome! Thank you! ~riley (talk) 18:49, 27 May 2016 (UTC)
Edit request
[edit]{{Edit request}}
Please change Please contact the administrator who kept it before re-nominating
to Please contact the user who kept it before re-nominating.
since also non-admins may keep pages requested be deleted.Jonteemil (talk) 20:43, 27 July 2022 (UTC)
- Also on User:Jon Kolbert/AQD.js, User:MTLskyline/monobook.js, User:Rots61/test.js and MediaWiki:Gadget-AjaxQuickDelete.js which also has the line.Jonteemil (talk) 20:45, 27 July 2022 (UTC)
- Done except for userspace scripts, which I'm leaving (if they wanted updates, they wouldn't have this in userspace) —Mdaniels5757 (talk • contribs) 14:56, 20 October 2022 (UTC)