r104974 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104973‎ | r104974 | r104975 >
Date:16:34, 2 December 2011
Author:reedy
Status:ok (Comments)
Tags:
Comment:
Followup r104973, use those messages in this file

I know, they still need exporting, but I've still not finished changing them over
Modified paths:
  • /trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.defaultOptions.js (modified) (history)

Diff [purge]

Index: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.defaultOptions.js
@@ -17,225 +17,225 @@
1818 // example type, could be removed later
1919 'barnstar': {
2020 name: mw.msg( 'wikilove-type-barnstars' ), // name of the type (appears in the types menu)
21 - select: 'Select a barnstar:', // subtype select label
 21+ select: mw.msg( 'wikilove-barnstar-select' ), // subtype select label
2222 subtypes: { // some different subtypes
2323 // note that when not using subtypes you should use these subtype options
2424 // for the top-level type
2525 'original': {
2626 fields: [ 'message' ], // fields to ask for in form
27 - option: 'Original Barnstar', // option listed in the select list
28 - descr: 'This barnstar is given to recognize particularly fine contributions to Wikipedia, to let people know that their hard work is seen and appreciated.', // description
29 - header: 'A barnstar for you!', // header that appears at the top of the talk page post (optional)
30 - title: 'The Original Barnstar', // title that appears inside the award box (optional)
 27+ option: mw.msg( 'wikilove-barnstar-admin-' ), // option listed in the select list
 28+ descr: mw.msg( 'wikilove-barnstar-admin-' ), // description
 29+ header: mw.msg( 'wikilove-barnstar-header' ), // header that appears at the top of the talk page post (optional)
 30+ title: mw.msg( 'wikilove-barnstar-admin-' ), // title that appears inside the award box (optional)
3131 image: 'Original Barnstar Hires.png' // image for the award
3232 },
3333 'admins': {
3434 fields: [ 'message' ],
35 - option: 'Admin\'s Barnstar',
36 - descr: 'The Admin\'s Barnstar may be awarded to an administrator who made a particularly difficult decision or performed a tedious but needed admin task.',
37 - header: 'A barnstar for you!',
38 - title: 'The Admin\'s Barnstar',
 35+ option: mw.msg( 'wikilove-barnstar-admins-option' ),
 36+ descr: mw.msg( 'wikilove-barnstar-admins-desc' ),
 37+ header: mw.msg( 'wikilove-barnstar-header' ),
 38+ title: mw.msg( 'wikilove-barnstar-admins-title' ),
3939 image: 'Administrator Barnstar Hires.png'
4040 },
4141 'antivandalism': {
4242 fields: [ 'message' ],
43 - option: 'Anti-Vandalism Barnstar',
44 - descr: 'The Anti-Vandalism Barnstar may be awarded to those who show great contributions to protecting and reverting attacks of vandalism on Wikipedia.',
45 - header: 'A barnstar for you!',
46 - title: 'The Anti-Vandalism Barnstar',
 43+ option: mw.msg( 'wikilove-barnstar-antivandalism-option' ),
 44+ descr: mw.msg( 'wikilove-barnstar-antivandalism-desc' ),
 45+ header: mw.msg( 'wikilove-barnstar-header' ),
 46+ title: mw.msg( 'wikilove-barnstar-antivandalism-title' ),
4747 image: 'Barnstar of Reversion Hires.png'
4848 },
4949 'diligence': {
5050 fields: [ 'message' ],
51 - option: 'Barnstar of Diligence',
52 - descr: 'The Barnstar of Diligence may be awarded in recognition of a combination of extraordinary scrutiny, precision and community service.',
53 - header: 'A barnstar for you!',
54 - title: 'The Barnstar of Diligence',
 51+ option: mw.msg( 'wikilove-barnstar-diligence-option' ),
 52+ descr: mw.msg( 'wikilove-barnstar-diligence-desc' ),
 53+ header: mw.msg( 'wikilove-barnstar-header' ),
 54+ title: mw.msg( 'wikilove-barnstar-diligence-title' ),
5555 image: 'Barnstar of Diligence Hires.png'
5656 },
5757 'diplomacy': {
5858 fields: [ 'message' ],
59 - option: 'Barnstar of Diplomacy',
60 - descr: 'The Barnstar of Diplomacy is awarded to users who have helped to resolve, peacefully, conflicts on Wikipedia.',
61 - header: 'A barnstar for you!',
62 - title: 'The Barnstar of Diplomacy',
 59+ option: mw.msg( 'wikilove-barnstar-diplomacy-option' ),
 60+ descr: mw.msg( 'wikilove-barnstar-diplomacy-desc' ),
 61+ header: mw.msg( 'wikilove-barnstar-header' ),
 62+ title: mw.msg( 'wikilove-barnstar-diplomacy-title' ),
6363 image: 'Peace Barnstar Hires.png'
6464 },
6565 'goodhumor': {
6666 fields: [ 'message' ],
67 - option: 'Barnstar of Good Humor',
68 - descr: 'The Barnstar of Good Humor may be awarded to Wikipedians who consistently lighten the mood, defuse conflicts, and make Wikipedia a better place to be.',
69 - header: 'A barnstar for you!',
70 - title: 'The Barnstar of Good Humor',
 67+ option: mw.msg( 'wikilove-barnstar-goodhumor-option' ),
 68+ descr: mw.msg( 'wikilove-barnstar-goodhumor-desc' ),
 69+ header: mw.msg( 'wikilove-barnstar-header' ),
 70+ title: mw.msg( 'wikilove-barnstar-goodhumor-title' ),
7171 image: 'Barnstar of Humour Hires.png'
7272 },
7373 'brilliant': {
7474 fields: [ 'message' ],
75 - option: 'Brilliant Idea Barnstar',
76 - descr: 'The Brilliant Idea Barnstar may be awarded to a user who figures out an elegant solution to a particularly difficult problem.',
77 - header: 'A barnstar for you!',
78 - title: 'The Brilliant Idea Barnstar',
 75+ option: mw.msg( 'wikilove-barnstar-brilliant-option' ),
 76+ descr: mw.msg( 'wikilove-barnstar-brilliant-desc' ),
 77+ header: mw.msg( 'wikilove-barnstar-header' ),
 78+ title: mw.msg( 'wikilove-barnstar-brilliant-title' ),
7979 image: 'Brilliant Idea Barnstar Hires.png'
8080 },
8181 'citation': {
8282 fields: [ 'message' ],
83 - option: 'Citation Barnstar',
84 - descr: 'The Citation Barnstar is awarded to users who provide references and in-line citations to previously unsourced articles.',
85 - header: 'A barnstar for you!',
86 - title: 'The Citation Barnstar',
 83+ option: mw.msg( 'wikilove-barnstar-citation-option' ),
 84+ descr: mw.msg( 'wikilove-barnstar-citation-desc' ),
 85+ header: mw.msg( 'wikilove-barnstar-header' ),
 86+ title: mw.msg( 'wikilove-barnstar-citation-title' ),
8787 image: 'Citation Barnstar Hires.png'
8888 },
8989 'civility': {
9090 fields: [ 'message' ],
91 - option: 'Civility Barnstar',
92 - descr: 'The Civility Barnstar may be awarded to any user who excels at maintaining civility in the midst of contentious situations.',
93 - header: 'A barnstar for you!',
94 - title: 'The Civility Barnstar',
 91+ option: mw.msg( 'wikilove-barnstar-civility-option' ),
 92+ descr: mw.msg( 'wikilove-barnstar-civility-desc' ),
 93+ header: mw.msg( 'wikilove-barnstar-header' ),
 94+ title: mw.msg( 'wikilove-barnstar-civility-title' ),
9595 image: 'Civility Barnstar Hires.png'
9696 },
9797 'copyeditor': {
9898 fields: [ 'message' ],
99 - option: 'Copyeditor\'s Barnstar',
100 - descr: 'The Copyeditor\'s Barnstar is awarded for excellence in correcting spelling, grammar, punctuation, and style issues.',
101 - header: 'A barnstar for you!',
102 - title: 'The Copyeditor\'s Barnstar',
 99+ option: mw.msg( 'wikilove-barnstar-copyeditor-option' ),
 100+ descr: mw.msg( 'wikilove-barnstar-copyeditor-desc' ),
 101+ header: mw.msg( 'wikilove-barnstar-header' ),
 102+ title: mw.msg( 'wikilove-barnstar-copyeditor-title' ),
103103 image: 'Copyeditor Barnstar Hires.png'
104104 },
105105 'defender': {
106106 fields: [ 'message' ],
107 - option: 'Defender of the Wiki Barnstar',
108 - descr: 'The Defender of the Wiki may be awarded to those who have gone above and beyond to prevent Wikipedia from being used for fraudulent purposes.',
109 - header: 'A barnstar for you!',
110 - title: 'The Defender of the Wiki Barnstar',
 107+ option: mw.msg( 'wikilove-barnstar-defender-option' ),
 108+ descr: mw.msg( 'wikilove-barnstar-defender-desc' ),
 109+ header: mw.msg( 'wikilove-barnstar-header' ),
 110+ title: mw.msg( 'wikilove-barnstar-defender-title' ),
111111 image: 'WikiDefender Barnstar Hires.png'
112112 },
113113 'editors': {
114114 fields: [ 'message' ],
115 - option: 'Editor\'s Barnstar',
116 - descr: 'The Editor\'s Barnstar is awarded to individuals who display particularly fine decisions in general editing.',
117 - header: 'A barnstar for you!',
118 - title: 'The Editor\'s Barnstar',
 115+ option: mw.msg( 'wikilove-barnstar-editors-option' ),
 116+ descr: mw.msg( 'wikilove-barnstar-editors-desc' ),
 117+ header: mw.msg( 'wikilove-barnstar-header' ),
 118+ title: mw.msg( 'wikilove-barnstar-editors-title' ),
119119 image: 'Editors Barnstar Hires.png'
120120 },
121121 'designers': {
122122 fields: [ 'message' ],
123 - option: 'Graphic Designer\'s Barnstar',
124 - descr: 'The Graphic Designer\'s Barnstar may be awarded to those who work tirelessly to provide Wikipedia with free, high-quality graphics.',
125 - header: 'A barnstar for you!',
126 - title: 'The Graphic Designer\'s Barnstar',
 123+ option: mw.msg( 'wikilove-barnstar-designers-option' ),
 124+ descr: mw.msg( 'wikilove-barnstar-designers-desc' ),
 125+ header: mw.msg( 'wikilove-barnstar-header' ),
 126+ title: mw.msg( 'wikilove-barnstar-designers-title' ),
127127 image: 'Graphic Designer Barnstar Hires.png'
128128 },
129129 'half': {
130130 fields: [ 'message' ],
131 - option: 'Half Barnstar',
132 - descr: 'The Half Barnstar is awarded for excellence in cooperation, especially for productive editing with someone who holds an opposing viewpoint.',
133 - header: 'A barnstar for you!',
134 - title: 'The Half Barnstar',
 131+ option: mw.msg( 'wikilove-barnstar-half-option' ),
 132+ descr: mw.msg( 'wikilove-barnstar-half-desc' ),
 133+ header: mw.msg( 'wikilove-barnstar-header' ),
 134+ title: mw.msg( 'wikilove-barnstar-half-title' ),
135135 image: 'Halfstar Hires.png',
136136 imageSize: '60px'
137137 },
138138 'minor': {
139139 fields: [ 'message' ],
140 - option: 'Minor Barnstar',
141 - descr: 'Minor edits are often overlooked, but are essential contributions to Wikipedia. The Minor Barnstar is awarded for making minor edits of the utmost quality.',
142 - header: 'A barnstar for you!',
143 - title: 'The Minor barnstar',
 140+ option: mw.msg( 'wikilove-barnstar-minor-option' ),
 141+ descr: mw.msg( 'wikilove-barnstar-minor-desc' ),
 142+ header: mw.msg( 'wikilove-barnstar-header' ),
 143+ title: mw.msg( 'wikilove-barnstar-minor-title' ),
144144 image: 'Minor Barnstar Hires.png'
145145 },
146146 'antispam': {
147147 fields: [ 'message' ],
148 - option: 'No Spam Barnstar',
149 - descr: 'The Anti-Spam Barnstar is awarded to users who do an exceptional job fighting against spam on Wikipedia.',
150 - header: 'A barnstar for you!',
151 - title: 'The No Spam Barnstar',
 148+ option: mw.msg( 'wikilove-barnstar-antispam-option' ),
 149+ descr: mw.msg( 'wikilove-barnstar-antispam-desc' ),
 150+ header: mw.msg( 'wikilove-barnstar-header' ),
 151+ title: mw.msg( 'wikilove-barnstar-antispam-title' ),
152152 image: 'No Spam Barnstar Hires.png'
153153 },
154154 'photographers': {
155155 fields: [ 'message' ],
156 - option: 'Photographer\'s Barnstar',
157 - descr: 'The Photographer\'s Barnstar is awarded to those individuals who tirelessly improve the Wikipedia with their photographic skills and contributions.',
158 - header: 'A barnstar for you!',
159 - title: 'The Photographer\'s Barnstar',
 156+ option: mw.msg( 'wikilove-barnstar-photographers-option' ),
 157+ descr: mw.msg( 'wikilove-barnstar-photographers-desc' ),
 158+ header: mw.msg( 'wikilove-barnstar-header' ),
 159+ title: mw.msg( 'wikilove-barnstar-photographers-title' ),
160160 image: 'Camera Barnstar Hires.png'
161161 },
162162 'kindness': {
163163 fields: [ 'message' ],
164 - option: 'Random Acts of Kindness Barnstar',
165 - descr: 'The Random Acts of Kindness Barnstar may be awarded to those that show a pattern of going the extra mile to be nice, without being asked.',
166 - header: 'A barnstar for you!',
167 - title: 'The Random Acts of Kindness Barnstar',
 164+ option: mw.msg( 'wikilove-barnstar-kindness-option' ),
 165+ descr: mw.msg( 'wikilove-barnstar-kindness-desc' ),
 166+ header: mw.msg( 'wikilove-barnstar-header' ),
 167+ title: mw.msg( 'wikilove-barnstar-kindness-title' ),
168168 image: 'Kindness Barnstar Hires.png'
169169 },
170170 'reallife': {
171171 fields: [ 'message' ],
172 - option: 'Real Life Barnstar',
173 - descr: 'The Real Life Barnstar is awarded to editors who make contributions both online and offline, by organizing wiki-related real-life events.',
174 - header: 'A barnstar for you!',
175 - title: 'The Real Life Barnstar',
 172+ option: mw.msg( 'wikilove-barnstar-reallife-option' ),
 173+ descr: mw.msg( 'wikilove-barnstar-reallife-desc' ),
 174+ header: mw.msg( 'wikilove-barnstar-header' ),
 175+ title: mw.msg( 'wikilove-barnstar-reallife-title' ),
176176 image: 'Real Life Barnstar.jpg'
177177 },
178178 'resilient': {
179179 fields: [ 'message' ],
180 - option: 'Resilient Barnstar',
181 - descr: 'The Resilient Barnstar may be given to any editor who learns and improves from criticisms, never letting mistakes impede their growth as a Wikipedian.',
182 - header: 'A barnstar for you!',
183 - title: 'The Resilient Barnstar',
 180+ option: mw.msg( 'wikilove-barnstar-resilient-option' ),
 181+ descr: mw.msg( 'wikilove-barnstar-resilient-desc' ),
 182+ header: mw.msg( 'wikilove-barnstar-header' ),
 183+ title: mw.msg( 'wikilove-barnstar-resilient-title' ),
184184 image: 'Resilient Barnstar Hires.png'
185185 },
186186 'rosetta': {
187187 fields: [ 'message' ],
188 - option: 'Rosetta Barnstar',
189 - descr: 'The Rosetta Barnstar may be given to any editor who exhibits outstanding translation efforts on Wikipedia.',
190 - header: 'A barnstar for you!',
191 - title: 'The Rosetta Barnstar',
 188+ option: mw.msg( 'wikilove-barnstar-rosetta-option' ),
 189+ descr: mw.msg( 'wikilove-barnstar-rosetta-desc' ),
 190+ header: mw.msg( 'wikilove-barnstar-header' ),
 191+ title: mw.msg( 'wikilove-barnstar-rosetta-title' ),
192192 image: 'Rosetta Barnstar Hires.png'
193193 },
194194 'special': {
195195 fields: [ 'message' ],
196 - option: 'Special Barnstar',
197 - descr: 'The Special Barnstar may be awarded to a user as a gesture of appreciation when there is no other barnstar which would be appropriate.',
198 - header: 'A barnstar for you!',
199 - title: 'The Special Barnstar',
 196+ option: mw.msg( 'wikilove-barnstar-special-option' ),
 197+ descr: mw.msg( 'wikilove-barnstar-special-desc' ),
 198+ header: mw.msg( 'wikilove-barnstar-header' ),
 199+ title: mw.msg( 'wikilove-barnstar-special-title' ),
200200 image: 'Special Barnstar Hires.png'
201201 },
202202 'surreal': {
203203 fields: [ 'message' ],
204 - option: 'Surreal Barnstar',
205 - descr: 'The Surreal Barnstar may be awarded to any Wikipedian who adds "special flavor" to the community by acting as a sort of wildcard.',
206 - header: 'A barnstar for you!',
207 - title: 'The Surreal Barnstar',
 204+ option: mw.msg( 'wikilove-barnstar-surreal-option' ),
 205+ descr: mw.msg( 'wikilove-barnstar-surreal-desc' ),
 206+ header: mw.msg( 'wikilove-barnstar-header' ),
 207+ title: mw.msg( 'wikilove-barnstar-surreal-title' ),
208208 image: 'Surreal Barnstar Hires.png'
209209 },
210210 'teamwork': {
211211 fields: [ 'message' ],
212 - option: 'Teamwork Barnstar',
213 - descr: 'The Teamwork Barnstar may be awarded when several editors work together to improve an article.',
214 - header: 'A barnstar for you!',
215 - title: 'The Teamwork Barnstar',
 212+ option: mw.msg( 'wikilove-barnstar-teamwork-option' ),
 213+ descr: mw.msg( 'wikilove-barnstar-teamwork-desc' ),
 214+ header: mw.msg( 'wikilove-barnstar-header' ),
 215+ title: mw.msg( 'wikilove-barnstar-teamwork-title' ),
216216 image: 'Team Barnstar Hires.png'
217217 },
218218 'technical': {
219219 fields: [ 'message' ],
220 - option: 'Technical Barnstar',
221 - descr: 'The Technical Barnstar may be awarded to anyone who has enhanced Wikipedia through their technical work (programming, bot building, link repair, etc.).',
222 - header: 'A barnstar for you!',
223 - title: 'The Technical Barnstar',
 220+ option: mw.msg( 'wikilove-barnstar-technical-option' ),
 221+ descr: mw.msg( 'wikilove-barnstar-technical-desc' ),
 222+ header: mw.msg( 'wikilove-barnstar-header' ),
 223+ title: mw.msg( 'wikilove-barnstar-technical-title' ),
224224 image: 'Vitruvian Barnstar Hires.png'
225225 },
226226 'tireless': {
227227 fields: [ 'message' ],
228 - option: 'Tireless Contributor Barnstar',
229 - descr: 'The Tireless Contributor Barnstar is awarded to especially tireless Wikipedians who contribute an especially large body of work without sacrificing quality.',
230 - header: 'A barnstar for you!',
231 - title: 'The Tireless Contributor Barnstar',
 228+ option: mw.msg( 'wikilove-barnstar-tireless-option' ),
 229+ descr: mw.msg( 'wikilove-barnstar-tireless-desc' ),
 230+ header: mw.msg( 'wikilove-barnstar-header' ),
 231+ title: mw.msg( 'wikilove-barnstar-tireless-title' ),
232232 image: 'Tireless Contributor Barnstar Hires.gif'
233233 },
234234 'writers': {
235235 fields: [ 'message' ],
236 - option: 'Writer\'s Barnstar',
237 - descr: 'The Writer\'s Barnstar may be awarded to any user who has written a large number of articles or has contributed a large number of edits.',
238 - header: 'A barnstar for you!',
239 - title: 'The Writer\'s Barnstar',
 236+ option: mw.msg( 'wikilove-barnstar-writers-option' ),
 237+ descr: mw.msg( 'wikilove-barnstar-writers-desc' ),
 238+ header: mw.msg( 'wikilove-barnstar-header' ),
 239+ title: mw.msg( 'wikilove-barnstar-writers-title' ),
240240 image: 'Writers Barnstar Hires.png'
241241 }
242242 },
@@ -243,7 +243,7 @@
244244 },
245245 'food': {
246246 name: mw.msg( 'wikilove-type-food' ), // name of the type (appears in the types menu)
247 - select: 'Select food or drink item:', // subtype select label
 247+ select: mw.msg( 'wikilove-food-select' ), // subtype select label
248248 text: '{| style="background-color: $5; border: 1px solid $6;"\n\
249249 |style="vertical-align: middle; padding: 5px;" | [[$3|$4]]\n\
250250 |style="vertical-align: middle; padding: 3px;" | $1 ~~~~\n\
@@ -353,7 +353,7 @@
354354 'kitten': {
355355 name: mw.msg( 'wikilove-type-kittens' ),
356356 fields: [ 'header', 'message' ],
357 - header: 'A kitten for you!',
 357+ header: mw.msg( 'wikilove-kittens-header' ),
358358 text: '[[$3|left|150px]]\n$1\n\n~~~~\n<br style="clear: both"/>', // $3 is the image filename
359359 gallery: {
360360 imageList: [ 'Cucciolo gatto Bibo.jpg', 'Kitten (06) by Ron.jpg', 'Kitten-stare.jpg', 'Red Kitten 01.jpg', 'Kitten in a helmet.jpg', 'Cute grey kitten.jpg' ],

Follow-up revisions

RevisionCommit summaryAuthorDate
r105420Fix 3 message keys from r104974reedy11:04, 7 December 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r104973Start moving a ton of string from JS to i18nreedy16:28, 2 December 2011

Comments

#Comment by Reach Out to the Truth (talk | contribs)   06:06, 7 December 2011

Original Barnstar is broken.

mw.msg( 'wikilove-barnstar-admin-' )

Status & tagging log