Index: trunk/extensions/JS2Support/mwEmbed/jsScriptLoader.php |
— | — | @@ -51,7 +51,7 @@ |
52 | 52 | // The raw requested class |
53 | 53 | private static $rawClassList = ''; |
54 | 54 | |
55 | | - private static $includeAllMsgsRegEx = "/mw\.includeAllModuleMsgs\s*\(\s*\)\;?/"; |
| 55 | + private static $includeAllMsgsRegEx = "/mw\.includeAllModuleMessages\s*\(\s*\)\;?/"; |
56 | 56 | |
57 | 57 | /** |
58 | 58 | * Output the javascript from cache |
Index: trunk/extensions/JS2Support/README |
— | — | @@ -229,7 +229,7 @@ |
230 | 230 | Running the JS2Support maintenance script "mergeJavascriptMsgs.php" will sync javascript into phpt files. |
231 | 231 | |
232 | 232 | This is the most complicated setup, if your unsure use the first option and call: |
233 | | -mw.includeAllModuleMsgs(); |
| 233 | +mw.includeAllModuleMessages(); |
234 | 234 | In your primary library code javascript. |
235 | 235 | |
236 | 236 | === Accessing Msgs in Javascript === |
Index: trunk/extensions/UploadWizard/js/mw.UploadWizard.js |
— | — | @@ -1,115 +1,11 @@ |
2 | | -mw.addMessages( { |
3 | | - "mwe-upwiz-step-file": "1. Upload your files", |
4 | | - "mwe-upwiz-step-deeds": "2. Add licenses", |
5 | | - "mwe-upwiz-step-details": "3. Add descriptions", |
6 | | - "mwe-upwiz-step-thanks": "4. Use your files", |
7 | | - "mwe-upwiz-intro": "Welcome to Wikimedia Commons, a repository of images, sounds, and movies that anyone can freely download and use. Add to humanity's knowledge by uploading files that could be used for an educational purpose.", |
8 | 2 | |
9 | | - // XXX maybe use mediawiki PLURAL here |
10 | | - "mwe-upwiz-add-file-n": "Add another file", |
11 | | - "mwe-upwiz-add-file-0": "Click here to add a file for upload", |
12 | | - "mwe-upwiz-browse": "Browse...", |
13 | | - "mwe-upwiz-transported": "OK", |
14 | | - "mwe-upwiz-click-here": "Click here to select a file", |
15 | | - "mwe-upwiz-uploading": "uploading...", |
16 | | - "mwe-upwiz-editing": "editing...", |
17 | | - "mwe-upwiz-remove-upload": "Remove this file from the list of files to upload", |
18 | | - "mwe-upwiz-remove-description": "Remove this description", |
19 | | - "mwe-upwiz-upload": "Upload", |
20 | | - "mwe-upwiz-upload-count": "$1 {{PLURAL:$1|file|files}} of $2 uploaded", |
21 | | - "mwe-upwiz-progressbar-uploading": "uploading", |
22 | | - "mwe-upwiz-hrs-mins-secs-remaining": "$1 {{PLURAL:$1|hour|hours}}, $2 {{PLURAL:$2|minute|minutes}}, $3 {{PLURAL:$3|second|seconds}} remaining", |
23 | | - "mwe-upwiz-mins-secs-remaining": "$1 {{PLURAL:$1|minute|minutes}}, $2 {{PLURAL:$2|second|seconds}} remaining", |
24 | | - "mwe-upwiz-secs-remaining": "$1 {{PLURAL:$1|second|seconds}} remaining", |
25 | | - // XXX use mediawiki plurals |
26 | | - "mwe-upwiz-deeds-intro": "Thank you! Now we need to set a license for these files, so everyone can legally view or modify them. First, we'll have to know where you got them.", |
27 | | - // XXX use mediawiki plurals |
28 | | - "mwe-upwiz-details-intro": "Now we need some basic information about the files.", |
29 | | - "mwe-upwiz-source-ownwork": "This file is my own work.", |
30 | | - // XXX use mediawiki plurals |
31 | | - "mwe-upwiz-source-ownwork-plural": "These files are my own work.", |
32 | | - "mwe-upwiz-source-ownwork-assert": "I, $1, the copyright holder of this work, hereby grant anyone the right to use this work for any purpose, as long as they credit me and share derivative work under the same terms.", |
33 | | - "mwe-upwiz-source-ownwork-assert-plural": "I, $1, the copyright holder of these works, hereby grant anyone the right to use these works for any purpose, as long as they credit me and share derivative work under the same terms.", |
34 | | - "mwe-upwiz-source-ownwork-assert-custom": "I, $1, the copyright holder of this work, hereby publish this work under the following license(s):", |
35 | | - "mwe-upwiz-source-ownwork-assert-custom-plural": "I, $1, the copyright holder of these works, hereby publish these works under the following license(s):", |
36 | | - "mwe-upwiz-source-ownwork-assert-note": "This means you release your work under a double Creative Commons Attribution ShareAlike and GFDL license.", |
37 | | - "mwe-upwiz-source-permission": "Their author gave you explicit permission to upload them", |
38 | | - "mwe-upwiz-source-thirdparty": "This file is not my own work.", |
39 | | - // XXX use mediawiki plurals |
40 | | - "mwe-upwiz-source-thirdparty-plural": "These files are not my own work.", |
41 | | - "mwe-upwiz-source-thirdparty-intro" : "Please enter the address where you found each file.", |
42 | | - "mwe-upwiz-source-thirdparty-custom-plural-intro" : "If all files have the same source, author, and copyright status, you may enter them only once for all of them.", |
43 | | - "mwe-upwiz-source-thirdparty-license" : "The copyright holder of this work published it under the following license(s):", |
44 | | - // XXX use mediawiki plurals |
45 | | - "mwe-upwiz-source-thirdparty-license-plural" : "The copyright holder of these works published them under the following license(s):", |
46 | | - "mwe-upwiz-source-thirdparty-accept": "OK", |
47 | | - "mwe-upwiz-source-custom": "Did you know? You can <a href=\"$1\">customize</a> the default options you see here.", |
48 | | - "mwe-upwiz-more-options": "more options...", |
49 | | - "mwe-upwiz-fewer-options": "fewer options...", |
50 | | - "mwe-upwiz-desc": "Description in", |
51 | | - // XXX use mediawiki PLURAL |
52 | | - "mwe-upwiz-desc-add-n": "add a description in another language", |
53 | | - "mwe-upwiz-desc-add-0": "add a description", |
54 | | - "mwe-upwiz-title": "Title", |
55 | | - "mwe-upwiz-categories-intro": "Help people find your works by adding categories", |
56 | | - "mwe-upwiz-categories-another": "Add other categories", |
57 | | - "mwe-upwiz-previously-uploaded": "This file was previously uploaded to $1 and is already available <a href=\"$2\">here</a>.", |
58 | | - "mwe-upwiz-about-this-work": "About this work", |
59 | | - "mwe-upwiz-media-type": "Media type", |
60 | | - "mwe-upwiz-date-created": "Date created", |
61 | | - "mwe-upwiz-location": "Location", |
62 | | - "mwe-upwiz-copyright-info": "Copyright information", |
63 | | - "mwe-upwiz-author": "Author(s)", |
64 | | - "mwe-upwiz-license": "License", |
65 | | - "mwe-upwiz-about-format": "About the file", |
66 | | - "mwe-upwiz-autoconverted": "This file was automatically converted to the $1 format", |
67 | | - "mwe-upwiz-filename-tag": "File name:", |
68 | | - "mwe-upwiz-other": "Other information", |
69 | | - "mwe-upwiz-other-prefill": "Free wikitext field", |
70 | | - "mwe-upwiz-showall": "show all", |
71 | | - "mwe-upwiz-source": "Source", |
72 | | - "mwe-upwiz-macro-edit-intro": "Choose a license first above, then you can add some descriptions and other information to your uploads.", |
73 | | - "mwe-upwiz-macro-edit": "Update descriptions", |
74 | | - "mwe-upwiz-thanks-intro": "Thanks for uploading your works! You can now use your files on pages or link to them from elsewhere on the web.", |
75 | | - "mwe-upwiz-thanks-link": "This file is now available at <b><tt>$1</tt></b>.", |
76 | | - "mwe-upwiz-thanks-wikitext": "<b>To use the file</b>, copy this text into a page:", |
77 | | - "mwe-upwiz-thanks-url": "<b>To link to it in HTML</b>, copy this HTML code: ", |
| 3 | +/** |
| 4 | + * Include all the uploadWizard msgs |
| 5 | + */ |
78 | 6 | |
79 | | - "mwe-upwiz-upload-error-bad-filename-extension": "This wiki does not accept filenames with the extension \"$1\".", |
80 | | - "mwe-upwiz-upload-error-duplicate": "This file was previously uploaded to this wiki.", |
81 | | - "mwe-upwiz-upload-error-stashed-anyway": "Post anyway?", |
82 | | - "mwe-upwiz-ok": "OK", |
83 | | - "mwe-upwiz-cancel": "Cancel", |
84 | | - "mwe-upwiz-change": "(change)", |
| 7 | +mw.includeAllModuleMessages(); |
85 | 8 | |
86 | | - "mwe-upwiz-fileexists" : "A file with this name exists already. Please check <b><tt>$1<\/tt><\/b> if you are not sure if you want to replace it.", |
87 | | - "mwe-upwiz-thumbnail-more" : "Enlarge", |
88 | | - "mwe-upwiz-overwrite" : "Replace the file", |
89 | 9 | |
90 | | - "mwe-copyright-macro": "As above", |
91 | | - "mwe-copyright-custom": "Custom", |
92 | | - |
93 | | - "mwe-upwiz-next": "Next", |
94 | | - "mwe-upwiz-home": "Go to wiki home page", |
95 | | - "mwe-upwiz-upload-another": "Upload more files", |
96 | | - |
97 | | - "mwe-prevent-close": "Your files are still uploading. Are you sure you want to navigate away from this page?", |
98 | | - |
99 | | - "mwe-upwiz-files-complete": "Your files finished uploading!", |
100 | | - "mwe-upwiz-deeds-later": "Set deeds and licenses for each file individually on the next page", |
101 | | - |
102 | | - "mwe-upwiz-tooltip-author": "The name of the person who took the photo, or painted the picture, drew the drawing, etc.", |
103 | | - "mwe-upwiz-tooltip-source": "Where this digital file came from -- could be a URL, or a book or publication", |
104 | | - "mwe-upwiz-tooltip-sign": "You can use your wiki User name or your real name. In both cases, this will be linked to your wiki User page", |
105 | | - "mwe-upwiz-tooltip-title": "A short title for the image. You may use plain language with spaces, but no line breaks. This title must be unlike all other titles in this wiki.", |
106 | | - "mwe-upwiz-tooltip-description": "Briefly describe everything notable about the work. For a photo, mention the main things that are depicted, the occasion or the place.", |
107 | | - "mwe-upwiz-tooltip-other": "Any other information you want to include about this work. You may use wikitext code.", |
108 | | - |
109 | | - "mwe-upwiz-tooltip-more-info": "Learn more." |
110 | | - |
111 | | -} ); |
112 | | - |
113 | | - |
114 | 10 | /** |
115 | 11 | * |
116 | 12 | */ |