Index: trunk/extensions/Configure/settings/Settings-ext.txt |
— | — | @@ -929,7 +929,6 @@ |
930 | 930 | url = http://www.mediawiki.org/wiki/Extension:Usage_Statistics |
931 | 931 | |
932 | 932 | UserContactLinks |
933 | | -file = UserSignature.php |
934 | 933 | url = http://www.mediawiki.org/wiki/Extension:User_Contact_Links |
935 | 934 | |
936 | 935 | UserImages |
Index: trunk/extensions/UserContactLinks/UserSignature.i18n.php |
— | — | @@ -1,605 +0,0 @@ |
2 | | -<?php |
3 | | -/** |
4 | | - * Internationalisation file for extension UserContactLinks. |
5 | | - * |
6 | | - * @addtogroup Extensions |
7 | | -*/ |
8 | | - |
9 | | -$messages = array(); |
10 | | - |
11 | | -$messages['en'] = array( |
12 | | - 'usercontactlink-baduser' => 'incorrect username', |
13 | | - 'usercontactlink-desc' => 'Provides the ability to simply and consistently add other user names using ^^^user^^^ syntax', |
14 | | -); |
15 | | - |
16 | | -/** Message documentation (Message documentation) |
17 | | - * @author Fryed-peach |
18 | | - * @author Jon Harald Søby |
19 | | - * @author Purodha |
20 | | - * @author Siebrand |
21 | | - */ |
22 | | -$messages['qqq'] = array( |
23 | | - 'usercontactlink-baduser' => '{{Identical|Incorrect username}}', |
24 | | - 'usercontactlink-desc' => '{{desc}}', |
25 | | -); |
26 | | - |
27 | | -/** Faeag Rotuma (Faeag Rotuma) |
28 | | - * @author Mattbray |
29 | | - */ |
30 | | -$messages['rtm'] = array( |
31 | | - 'usercontactlink-baduser' => 'Seseva', |
32 | | -); |
33 | | - |
34 | | -/** Afrikaans (Afrikaans) |
35 | | - * @author Naudefj |
36 | | - */ |
37 | | -$messages['af'] = array( |
38 | | - 'usercontactlink-baduser' => 'foutiewe gebruikersnaam', |
39 | | -); |
40 | | - |
41 | | -/** Arabic (العربية) |
42 | | - * @author Meno25 |
43 | | - */ |
44 | | -$messages['ar'] = array( |
45 | | - 'usercontactlink-baduser' => 'اسم مستخدم غير صحيح', |
46 | | - 'usercontactlink-desc' => 'يوفر القدرة على تبسيط وإضافة أسماء المستخدمين الآخرين باستخدام صياغة ^^^user^^^', |
47 | | -); |
48 | | - |
49 | | -/** Egyptian Spoken Arabic (مصرى) |
50 | | - * @author Ghaly |
51 | | - * @author Meno25 |
52 | | - */ |
53 | | -$messages['arz'] = array( |
54 | | - 'usercontactlink-baduser' => 'اسم يوزر مش صحيح', |
55 | | - 'usercontactlink-desc' => 'يوفر القدرة على تبسيط وإضافة أسماء اليوزرز التانيين باستخدام صياغة ^^^user^^^', |
56 | | -); |
57 | | - |
58 | | -/** Kotava (Kotava) |
59 | | - * @author Wikimistusik |
60 | | - */ |
61 | | -$messages['avk'] = array( |
62 | | - 'usercontactlink-baduser' => 'Favesikyoltaj', |
63 | | -); |
64 | | - |
65 | | -/** Bavarian (Boarisch) |
66 | | - * @author Man77 |
67 | | - */ |
68 | | -$messages['bar'] = array( |
69 | | - 'usercontactlink-baduser' => 'fåischa Benutzanãm', |
70 | | - 'usercontactlink-desc' => 'Eamöglicht, dass Benutzanãmen oafåch mid ^^^Benutza^^^ valinkt wean', |
71 | | -); |
72 | | - |
73 | | -/** Belarusian (Taraškievica orthography) (Беларуская (тарашкевіца)) |
74 | | - * @author EugeneZelenko |
75 | | - * @author Jim-by |
76 | | - */ |
77 | | -$messages['be-tarask'] = array( |
78 | | - 'usercontactlink-baduser' => 'няслушнае імя ўдзельніка', |
79 | | - 'usercontactlink-desc' => 'Дае магчымасьць простага даданьня подпісу ўдзельніка з дапамогай устаўкі ^^^user^^^', |
80 | | -); |
81 | | - |
82 | | -/** Bulgarian (Български) |
83 | | - * @author Spiritia |
84 | | - */ |
85 | | -$messages['bg'] = array( |
86 | | - 'usercontactlink-baduser' => 'Некоректно потребителско име', |
87 | | -); |
88 | | - |
89 | | -/** Bengali (বাংলা) |
90 | | - * @author Zaheen |
91 | | - */ |
92 | | -$messages['bn'] = array( |
93 | | - 'usercontactlink-baduser' => 'বেঠিক ব্যবহারকারী নাম', |
94 | | -); |
95 | | - |
96 | | -/** Breton (Brezhoneg) |
97 | | - * @author Fulup |
98 | | - */ |
99 | | -$messages['br'] = array( |
100 | | - 'usercontactlink-baduser' => 'Anv implijer faziek', |
101 | | - 'usercontactlink-desc' => 'Talvezout a ra da ouzhpennañ aes hag ingal anvioù implijer all en ur ober gant an ereadur ^^^user^^^', |
102 | | -); |
103 | | - |
104 | | -/** Bosnian (Bosanski) |
105 | | - * @author CERminator |
106 | | - */ |
107 | | -$messages['bs'] = array( |
108 | | - 'usercontactlink-baduser' => 'pogrešno korisničko ime', |
109 | | - 'usercontactlink-desc' => 'Daje mogućnost jednostavnog i konzistentnog dodavanja drugih korisničkih imena koristeći ^^^user^^^ sintaksu', |
110 | | -); |
111 | | - |
112 | | -/** Catalan (Català) |
113 | | - * @author Solde |
114 | | - * @author Ssola |
115 | | - */ |
116 | | -$messages['ca'] = array( |
117 | | - 'usercontactlink-baduser' => "nom d'usuari incorrecte", |
118 | | - 'usercontactlink-desc' => "Permet la capacitat d'afegir simplement i amb consistència altres noms d'usuari utilitzant la sintaxi ^^^user^^^", |
119 | | -); |
120 | | - |
121 | | -/** Sorani (Arabic script) (کوردی (عەرەبی)) |
122 | | - * @author Marmzok |
123 | | - */ |
124 | | -$messages['ckb-arab'] = array( |
125 | | - 'usercontactlink-baduser' => 'ناوی بەکارهێنەری هەڵە', |
126 | | -); |
127 | | - |
128 | | -/** Czech (Česky) |
129 | | - * @author Matěj Grabovský |
130 | | - */ |
131 | | -$messages['cs'] = array( |
132 | | - 'usercontactlink-baduser' => 'Nesprávné uživatelské jméno', |
133 | | - 'usercontactlink-desc' => 'Poskytuje možnost jednoduše a konzistetně přidávat jména ostatních uživatelů pomocí syntaxe ^^^uživatel^^^', |
134 | | -); |
135 | | - |
136 | | -/** German (Deutsch) |
137 | | - * @author ChrisiPK |
138 | | - */ |
139 | | -$messages['de'] = array( |
140 | | - 'usercontactlink-baduser' => 'falscher Benutzername', |
141 | | - 'usercontactlink-desc' => 'Macht es möglich, Benutzernamen einfach mit ^^^Benutzer^^^ zu verlinken', |
142 | | -); |
143 | | - |
144 | | -/** Lower Sorbian (Dolnoserbski) |
145 | | - * @author Michawiki |
146 | | - */ |
147 | | -$messages['dsb'] = array( |
148 | | - 'usercontactlink-baduser' => 'wopacne wužywarske mě', |
149 | | - 'usercontactlink-desc' => 'Dawa móžnosć jadnorje a konsistentnje druge wužywarske mjenja z pomocu syntakse ^^^wužywaŕ^^^ pśidaś', |
150 | | -); |
151 | | - |
152 | | -/** Greek (Ελληνικά) |
153 | | - * @author Omnipaedista |
154 | | - */ |
155 | | -$messages['el'] = array( |
156 | | - 'usercontactlink-baduser' => 'λανθασμένο όνομα χρήστη', |
157 | | - 'usercontactlink-desc' => 'Επιτρέπει στον χρήστη να προσθέτει με απλό τρόπο και συνέπεια άλλα ονόματα χρήστη χρησιμοποιώντας το συντακτικό ^^^user^^^', |
158 | | -); |
159 | | - |
160 | | -/** Esperanto (Esperanto) |
161 | | - * @author Yekrats |
162 | | - */ |
163 | | -$messages['eo'] = array( |
164 | | - 'usercontactlink-baduser' => 'malkorekta salutnomo', |
165 | | -); |
166 | | - |
167 | | -/** Spanish (Español) |
168 | | - * @author Sanbec |
169 | | - */ |
170 | | -$messages['es'] = array( |
171 | | - 'usercontactlink-baduser' => 'nombre de usuario incorrecto', |
172 | | - 'usercontactlink-desc' => 'Proporciona la capacidad para añadir sencilla y consistentemente otros usuarios usando la sintaxis ^^^user^^^', |
173 | | -); |
174 | | - |
175 | | -/** Basque (Euskara) |
176 | | - * @author An13sa |
177 | | - * @author Theklan |
178 | | - */ |
179 | | -$messages['eu'] = array( |
180 | | - 'usercontactlink-baduser' => 'Lankide izen okerra', |
181 | | - 'usercontactlink-desc' => '^^^lankidea^^^ sintaxia erabilita beste lankide baten erabiltzaile izena erabiltzea baimentzen du', |
182 | | -); |
183 | | - |
184 | | -/** Persian (فارسی) |
185 | | - * @author Huji |
186 | | - * @author Meisam |
187 | | - */ |
188 | | -$messages['fa'] = array( |
189 | | - 'usercontactlink-baduser' => 'نام کاربری نادرست', |
190 | | -); |
191 | | - |
192 | | -/** Finnish (Suomi) |
193 | | - * @author Cimon Avaro |
194 | | - * @author Nike |
195 | | - * @author Vililikku |
196 | | - */ |
197 | | -$messages['fi'] = array( |
198 | | - 'usercontactlink-baduser' => 'virheellinen käyttäjätunnus', |
199 | | - 'usercontactlink-desc' => 'Suo mahdollisuuden lisätä yksinkertaisesti ja yhdenmukaisesti muita käyttäjätunnuksia käyttäen ^^^user^^^ syntaksia', |
200 | | -); |
201 | | - |
202 | | -/** French (Français) |
203 | | - * @author Crochet.david |
204 | | - * @author Grondin |
205 | | - * @author PieRRoMaN |
206 | | - */ |
207 | | -$messages['fr'] = array( |
208 | | - 'usercontactlink-baduser' => 'nom d’utilisateur incorrect', |
209 | | - 'usercontactlink-desc' => 'Permet d’ajouter simplement et avec consistance d’autres noms d’utilisateurs en utilisant la syntaxe ^^^user^^^', |
210 | | -); |
211 | | - |
212 | | -/** Galician (Galego) |
213 | | - * @author Alma |
214 | | - * @author Toliño |
215 | | - */ |
216 | | -$messages['gl'] = array( |
217 | | - 'usercontactlink-baduser' => 'nome de usuario non correcto', |
218 | | - 'usercontactlink-desc' => 'Proporciona a capacidade de engadir sinxela e consistentemente outros nomes de usuario usando a sintaxe ^^^user^^^', |
219 | | -); |
220 | | - |
221 | | -/** Swiss German (Alemannisch) |
222 | | - * @author Als-Holder |
223 | | - */ |
224 | | -$messages['gsw'] = array( |
225 | | - 'usercontactlink-baduser' => 'falscher Benutzername', |
226 | | - 'usercontactlink-desc' => 'Macht s megli, Benutzername eifach mit ^^^Benutzer^^^ z vergleiche', |
227 | | -); |
228 | | - |
229 | | -/** Gujarati (ગુજરાતી) |
230 | | - * @author Ashok modhvadia |
231 | | - */ |
232 | | -$messages['gu'] = array( |
233 | | - 'usercontactlink-baduser' => 'ખોટું સભ્યનામ', |
234 | | - 'usercontactlink-desc' => '^^^સભ્ય^^^ વાક્ય રચના વાપરી અને સહેલાઇ અને સંગતતાથી અન્ય સભ્યનામો ઉમેરવાની ક્ષમતા પ્રદાન કરે છે', |
235 | | -); |
236 | | - |
237 | | -/** Hebrew (עברית) |
238 | | - * @author Rotemliss |
239 | | - * @author YaronSh |
240 | | - */ |
241 | | -$messages['he'] = array( |
242 | | - 'usercontactlink-baduser' => 'שם המשתמש שגוי', |
243 | | - 'usercontactlink-desc' => 'הוספת אפשרות להוסיף שמות משתמשים אחרים בפשטות ובעקביות באמצעות התחביר ^^^user^^^', |
244 | | -); |
245 | | - |
246 | | -/** Upper Sorbian (Hornjoserbsce) |
247 | | - * @author Michawiki |
248 | | - */ |
249 | | -$messages['hsb'] = array( |
250 | | - 'usercontactlink-baduser' => 'njekorektne wužiwarske mjeno', |
251 | | - 'usercontactlink-desc' => 'Skići móžnosć jednorje a konsistentnje druhe wužiwarske mjena z pomocu syntaksy ^^^wužiwar^^^ přidać', |
252 | | -); |
253 | | - |
254 | | -/** Hungarian (Magyar) |
255 | | - * @author Dani |
256 | | - */ |
257 | | -$messages['hu'] = array( |
258 | | - 'usercontactlink-baduser' => 'érvénytelen felhasználói név', |
259 | | - 'usercontactlink-desc' => 'Lehetővé teszi a szerkesztők neveire való gyors hivatkozást a ^^^szerkesztő^^^ kóddal', |
260 | | -); |
261 | | - |
262 | | -/** Interlingua (Interlingua) |
263 | | - * @author McDutchie |
264 | | - */ |
265 | | -$messages['ia'] = array( |
266 | | - 'usercontactlink-baduser' => 'nomine de usator incorrecte', |
267 | | - 'usercontactlink-desc' => 'Permitte adder simple- e consistentemente altere nomines de usator con le syntaxe ^^^user^^^', |
268 | | -); |
269 | | - |
270 | | -/** Indonesian (Bahasa Indonesia) |
271 | | - * @author Bennylin |
272 | | - */ |
273 | | -$messages['id'] = array( |
274 | | - 'usercontactlink-baduser' => 'nama pengguna salah', |
275 | | - 'usercontactlink-desc' => 'Memampukan untuk menambahkan nama pengguna lain secara konsisten dengan menggunakan sintaks ^^^pengguna^^^', |
276 | | -); |
277 | | - |
278 | | -/** Italian (Italiano) |
279 | | - * @author Darth Kule |
280 | | - */ |
281 | | -$messages['it'] = array( |
282 | | - 'usercontactlink-baduser' => 'nome utente errato', |
283 | | - 'usercontactlink-desc' => 'Permette di aggiungere semplicemente e coerentemente altri nomi utente usando la sintassi ^^^user^^^', |
284 | | -); |
285 | | - |
286 | | -/** Japanese (日本語) |
287 | | - * @author Mizusumashi |
288 | | - */ |
289 | | -$messages['ja'] = array( |
290 | | - 'usercontactlink-baduser' => '不正確な利用者名', |
291 | | - 'usercontactlink-desc' => '^^^user^^^という文法を利用して、簡単かつ一貫して他の利用者名を加えることができるようにする。', |
292 | | -); |
293 | | - |
294 | | -/** Javanese (Basa Jawa) |
295 | | - * @author Meursault2004 |
296 | | - * @author Pras |
297 | | - */ |
298 | | -$messages['jv'] = array( |
299 | | - 'usercontactlink-baduser' => 'jeneng panganggo ora bener', |
300 | | - 'usercontactlink-desc' => 'Mènèhi kamampuan kanggo sacara gampang lan konsisten nambah jeneng panganggo liya nganggo sintaks ^^^panganggo^^^', |
301 | | -); |
302 | | - |
303 | | -/** Khmer (ភាសាខ្មែរ) |
304 | | - * @author Chhorran |
305 | | - * @author Lovekhmer |
306 | | - * @author វ័ណថារិទ្ធ |
307 | | - */ |
308 | | -$messages['km'] = array( |
309 | | - 'usercontactlink-baduser' => 'ឈ្មោះអ្នកប្រើប្រាស់មិនត្រឹមត្រូវទេ', |
310 | | - 'usercontactlink-desc' => 'ផ្ដល់លទ្ធភាពក្នុងការសម្រួលនិងបន្ថែមឲ្យត្រឹមត្រូវឈ្មោះអ្នកប្រើប្រាស់ផ្សេងៗទៀត ដោយប្រើប្រាស់វាក្យសម្ពន្ធ ^^^user^^^', |
311 | | -); |
312 | | - |
313 | | -/** Ripoarisch (Ripoarisch) |
314 | | - * @author Purodha |
315 | | - */ |
316 | | -$messages['ksh'] = array( |
317 | | - 'usercontactlink-baduser' => 'verkeehte Metmaacher-Name', |
318 | | - 'usercontactlink-desc' => 'Määt et müjjelesch op en einfache un dorschjängeje Aat met ^^^user^^^ anderlüks Metmaacher-Name derbei ze donn.', |
319 | | -); |
320 | | - |
321 | | -/** Luxembourgish (Lëtzebuergesch) |
322 | | - * @author Robby |
323 | | - */ |
324 | | -$messages['lb'] = array( |
325 | | - 'usercontactlink-baduser' => 'falsche Benotzernumm', |
326 | | - 'usercontactlink-desc' => 'Erméiglecht et fir einfach an dauernd aner Benotzernimm mat Hëllef vun der Syntax ^^^user^^^ derbäizesetzen', |
327 | | -); |
328 | | - |
329 | | -/** Macedonian (Македонски) |
330 | | - * @author Brest |
331 | | - */ |
332 | | -$messages['mk'] = array( |
333 | | - 'usercontactlink-baduser' => 'погрешно корисничко име', |
334 | | - 'usercontactlink-desc' => 'Дава можност за едноставно и конзистентно додавање на другите кориснички имиња со користење на синтаксата ^^^корисник^^^', |
335 | | -); |
336 | | - |
337 | | -/** Malayalam (മലയാളം) |
338 | | - * @author Shijualex |
339 | | - */ |
340 | | -$messages['ml'] = array( |
341 | | - 'usercontactlink-baduser' => 'തെറ്റായ ഉപയോക്തൃനാമം', |
342 | | -); |
343 | | - |
344 | | -/** Marathi (मराठी) |
345 | | - * @author Kaustubh |
346 | | - */ |
347 | | -$messages['mr'] = array( |
348 | | - 'usercontactlink-baduser' => 'चुकीचे सदस्यनाव', |
349 | | -); |
350 | | - |
351 | | -/** Maltese (Malti) |
352 | | - * @author Chrisportelli |
353 | | - */ |
354 | | -$messages['mt'] = array( |
355 | | - 'usercontactlink-baduser' => "Isem ta' l-utent ħażin", |
356 | | - 'usercontactlink-desc' => "Jipprovdi l-abilità li jżid sempliċement u konstantament ismijiet ta' l-utent ġodda bl-użu tas-sintassi ^^^user^^^", |
357 | | -); |
358 | | - |
359 | | -/** Low German (Plattdüütsch) |
360 | | - * @author Slomox |
361 | | - */ |
362 | | -$messages['nds'] = array( |
363 | | - 'usercontactlink-baduser' => 'verkehrt Brukernaam', |
364 | | -); |
365 | | - |
366 | | -/** Dutch (Nederlands) |
367 | | - * @author SPQRobin |
368 | | - * @author Siebrand |
369 | | - */ |
370 | | -$messages['nl'] = array( |
371 | | - 'usercontactlink-baduser' => 'onjuiste gebruikersnaam', |
372 | | - 'usercontactlink-desc' => 'Maakt het mogelijk om eenvoudig en consistent andere gebruikersnamen toe te voegen met behulp van de syntaxis ^^^user^^^', |
373 | | -); |
374 | | - |
375 | | -/** Norwegian Nynorsk (Norsk (nynorsk)) |
376 | | - * @author Frokor |
377 | | - */ |
378 | | -$messages['nn'] = array( |
379 | | - 'usercontactlink-baduser' => 'ukorrekt brukernamn', |
380 | | - 'usercontactlink-desc' => 'Gjev høve til å lenke til andre brukernamn med syntaksen ^^^brukar^^^.', |
381 | | -); |
382 | | - |
383 | | -/** Norwegian (bokmål) (Norsk (bokmål)) |
384 | | - * @author Jon Harald Søby |
385 | | - */ |
386 | | -$messages['no'] = array( |
387 | | - 'usercontactlink-baduser' => 'ukorrekt brukernavn', |
388 | | - 'usercontactlink-desc' => 'Gir muligheten til å lenke til andre brukernavn med syntaksen ^^^bruker^^^.', |
389 | | -); |
390 | | - |
391 | | -/** Occitan (Occitan) |
392 | | - * @author Cedric31 |
393 | | - */ |
394 | | -$messages['oc'] = array( |
395 | | - 'usercontactlink-baduser' => 'nom d’utilizaire incorrècte', |
396 | | - 'usercontactlink-desc' => "Provesís la possibilitat d'ajustar simplament e amb consisténcia d'autres noms d'utilizaires en utilizant la sintaxi ^^^user^^^", |
397 | | -); |
398 | | - |
399 | | -/** Polish (Polski) |
400 | | - * @author Wpedzich |
401 | | - */ |
402 | | -$messages['pl'] = array( |
403 | | - 'usercontactlink-baduser' => 'Nieprawidłowa nazwa użytkownika', |
404 | | - 'usercontactlink-desc' => 'Umożliwia w prosty i logiczny sposób dodawanie nowych nazw użytkownika za pomocą polecenia ^^^user^^^.', |
405 | | -); |
406 | | - |
407 | | -/** Piedmontese (Piemontèis) |
408 | | - * @author Dragonòt |
409 | | - */ |
410 | | -$messages['pms'] = array( |
411 | | - 'usercontactlink-baduser' => 'Nòm utent nen giust', |
412 | | - 'usercontactlink-desc' => 'A dà la possibilità ëd gionté an manera sempia e coerenta àutri nòm utent an dovrand la sintass ^^^user^^^', |
413 | | -); |
414 | | - |
415 | | -/** Pashto (پښتو) |
416 | | - * @author Ahmed-Najib-Biabani-Ibrahimkhel |
417 | | - */ |
418 | | -$messages['ps'] = array( |
419 | | - 'usercontactlink-baduser' => 'ناسم کارن-نوم', |
420 | | - 'usercontactlink-desc' => 'د ^^^ کارن^^^ ژبرغښت په کارولو سره به په ساده او پرله پسې توګه د کارنانو د نومونو د ورګډولو توان پېدا شي', |
421 | | -); |
422 | | - |
423 | | -/** Portuguese (Português) |
424 | | - * @author Hamilton Abreu |
425 | | - * @author Malafaya |
426 | | - * @author Waldir |
427 | | - */ |
428 | | -$messages['pt'] = array( |
429 | | - 'usercontactlink-baduser' => 'nome de utilizador incorrecto', |
430 | | - 'usercontactlink-desc' => 'Fornece a possibilidade de adicionar de forma simples e consistente outros nomes de utilizador, usando a sintaxe ^^^user^^^', |
431 | | -); |
432 | | - |
433 | | -/** Brazilian Portuguese (Português do Brasil) |
434 | | - * @author Eduardo.mps |
435 | | - */ |
436 | | -$messages['pt-br'] = array( |
437 | | - 'usercontactlink-baduser' => 'nome de utilizador incorreto', |
438 | | - 'usercontactlink-desc' => 'Fornece a possibilidade de adicionar de forma simples e consistente outros nomes de utilizador, usando a sintaxe ^^^user^^^', |
439 | | -); |
440 | | - |
441 | | -/** Romanian (Română) |
442 | | - * @author KlaudiuMihaila |
443 | | - */ |
444 | | -$messages['ro'] = array( |
445 | | - 'usercontactlink-baduser' => 'nume de utilizator incorect', |
446 | | -); |
447 | | - |
448 | | -/** Tarandíne (Tarandíne) |
449 | | - * @author Joetaras |
450 | | - */ |
451 | | -$messages['roa-tara'] = array( |
452 | | - 'usercontactlink-baduser' => 'Nome utende sbagliate', |
453 | | - 'usercontactlink-desc' => "Te dè 'a possibbilità de aggiungere facile facile l'otre nome utinde ausanne 'a sindassi ^^^user^^^", |
454 | | -); |
455 | | - |
456 | | -/** Russian (Русский) |
457 | | - * @author Ferrer |
458 | | - * @author Александр Сигачёв |
459 | | - */ |
460 | | -$messages['ru'] = array( |
461 | | - 'usercontactlink-baduser' => 'некорректное имя участника', |
462 | | - 'usercontactlink-desc' => 'Предоставляет возможность легко добавить имена других участников с помощью синтаксиса ^^^участник^^^', |
463 | | -); |
464 | | - |
465 | | -/** Sinhala (සිංහල) |
466 | | - * @author Calcey |
467 | | - */ |
468 | | -$messages['si'] = array( |
469 | | - 'usercontactlink-baduser' => 'වැරදි පරිශීලක නාමය', |
470 | | - 'usercontactlink-desc' => '^^^user^^^ වාග් රීතිය භාවිතා කරමින් සරලව හා ස්ථායීව අනෙක් පරිශීලකයින් එකතු කිරීමට හැකියාව සලසයි', |
471 | | -); |
472 | | - |
473 | | -/** Slovak (Slovenčina) |
474 | | - * @author Helix84 |
475 | | - */ |
476 | | -$messages['sk'] = array( |
477 | | - 'usercontactlink-baduser' => 'nesprávne meno používateľa', |
478 | | - 'usercontactlink-desc' => 'Poskytuje možnosť jednoducho a konzistentne pridávať mená ostatných používateľov pomocou syntaxe ^^^používateľ^^^', |
479 | | -); |
480 | | - |
481 | | -/** Lower Silesian (Schläsch) |
482 | | - * @author Jonny84 |
483 | | - * @author Schläsinger |
484 | | - */ |
485 | | -$messages['sli'] = array( |
486 | | - 'usercontactlink-baduser' => 'foalscher Nutzernoame', |
487 | | - 'usercontactlink-desc' => 'Macht es möglich, Benutzernamen einfach mit ^^^Benutzer^^^ zu verlinken', |
488 | | -); |
489 | | - |
490 | | -/** Albanian (Shqip) |
491 | | - * @author Puntori |
492 | | - */ |
493 | | -$messages['sq'] = array( |
494 | | - 'usercontactlink-baduser' => 'llogari jo korrekte', |
495 | | -); |
496 | | - |
497 | | -/** Serbian Cyrillic ekavian (Српски (ћирилица)) |
498 | | - * @author Михајло Анђелковић |
499 | | - */ |
500 | | -$messages['sr-ec'] = array( |
501 | | - 'usercontactlink-baduser' => 'неправилно корисничко име', |
502 | | - 'usercontactlink-desc' => 'Пружа могућност једноставног и непрекидног додавања других корисничких имена, коришћењем ^^^user^^^ синтаксе', |
503 | | -); |
504 | | - |
505 | | -/** Serbian Latin ekavian (Srpski (latinica)) |
506 | | - * @author Michaello |
507 | | - */ |
508 | | -$messages['sr-el'] = array( |
509 | | - 'usercontactlink-baduser' => 'nepravilno korisničko ime', |
510 | | - 'usercontactlink-desc' => 'Pruža mogućnost jednostavnog i neprekidnog dodavanja drugih korisničkih imena, korišćenjem ^^^user^^^ sintakse', |
511 | | -); |
512 | | - |
513 | | -/** Seeltersk (Seeltersk) |
514 | | - * @author Pyt |
515 | | - */ |
516 | | -$messages['stq'] = array( |
517 | | - 'usercontactlink-baduser' => 'falsken Benutsernoome', |
518 | | - 'usercontactlink-desc' => 'Moaket et muugelk, Benutsernoomen eenfach mäd ^^^Benutser^^^ tou ferlinkjen', |
519 | | -); |
520 | | - |
521 | | -/** Swedish (Svenska) |
522 | | - * @author Lejonel |
523 | | - * @author M.M.S. |
524 | | - */ |
525 | | -$messages['sv'] = array( |
526 | | - 'usercontactlink-baduser' => 'felaktigt användarnamn', |
527 | | - 'usercontactlink-desc' => 'Ger möjligheten att länka till andra användarnamn med syntaxen ^^^användare^^^.', |
528 | | -); |
529 | | - |
530 | | -/** Telugu (తెలుగు) |
531 | | - * @author Kiranmayee |
532 | | - * @author Veeven |
533 | | - */ |
534 | | -$messages['te'] = array( |
535 | | - 'usercontactlink-baduser' => 'తప్పుడు వాడుకరిపేరు', |
536 | | - 'usercontactlink-desc' => '^^^వాడుకరి^^^ నమూనా ద్వారా మిగతా వాడుకరుల పేర్లను తేలికగా మరియు నిర్ణీత పద్ధతిలో కలుపు వీలును కలిగించును', |
537 | | -); |
538 | | - |
539 | | -/** Tajik (Cyrillic) (Тоҷикӣ (Cyrillic)) |
540 | | - * @author Ibrahim |
541 | | - */ |
542 | | -$messages['tg-cyrl'] = array( |
543 | | - 'usercontactlink-baduser' => 'номи корбарии нодуруст', |
544 | | -); |
545 | | - |
546 | | -/** Tajik (Latin) (Тоҷикӣ (Latin)) |
547 | | - * @author Liangent |
548 | | - */ |
549 | | -$messages['tg-latn'] = array( |
550 | | - 'usercontactlink-baduser' => 'nomi korbariji nodurust', |
551 | | -); |
552 | | - |
553 | | -/** Tagalog (Tagalog) |
554 | | - * @author AnakngAraw |
555 | | - */ |
556 | | -$messages['tl'] = array( |
557 | | - 'usercontactlink-baduser' => 'hindi tamang pangalan ng tagagamit', |
558 | | - 'usercontactlink-desc' => 'Nagbibigay ng kakayahan upang payak at parating makapagdagdag ng iba pang mga pangalan ng tagagamit na ginagamitan ng palaugnayang ^^^tagagamit^^^', |
559 | | -); |
560 | | - |
561 | | -/** Turkish (Türkçe) |
562 | | - * @author Karduelis |
563 | | - * @author Vito Genovese |
564 | | - */ |
565 | | -$messages['tr'] = array( |
566 | | - 'usercontactlink-baduser' => 'Hatalı kullanıcı adı', |
567 | | - 'usercontactlink-desc' => '^^^Kullanıcı^^^ sözdizimi kullanılarak basit ve sürekli bir şekilde diğer kullanıcı adlarını ekleme imkanı sağlar', |
568 | | -); |
569 | | - |
570 | | -/** Vèneto (Vèneto) |
571 | | - * @author Candalua |
572 | | - */ |
573 | | -$messages['vec'] = array( |
574 | | - 'usercontactlink-baduser' => 'nome utente mia justo', |
575 | | -); |
576 | | - |
577 | | -/** Vietnamese (Tiếng Việt) |
578 | | - * @author Minh Nguyen |
579 | | - * @author Vinhtantran |
580 | | - */ |
581 | | -$messages['vi'] = array( |
582 | | - 'usercontactlink-baduser' => 'tên hiệu không đúng', |
583 | | - 'usercontactlink-desc' => 'Cung cấp khả năng thêm tên thành viên khác một cách đơn giản và nhất quán sử dụng cú pháp ^^^user^^^', |
584 | | -); |
585 | | - |
586 | | -/** Volapük (Volapük) |
587 | | - * @author Smeira |
588 | | - */ |
589 | | -$messages['vo'] = array( |
590 | | - 'usercontactlink-baduser' => 'gebananem neveräton', |
591 | | -); |
592 | | - |
593 | | -/** Simplified Chinese (中文(简体)) |
594 | | - * @author Gzdavidwong |
595 | | - */ |
596 | | -$messages['zh-hans'] = array( |
597 | | - 'usercontactlink-baduser' => '用户名不正确', |
598 | | -); |
599 | | - |
600 | | -/** Traditional Chinese (中文(繁體)) |
601 | | - * @author Wrightbus |
602 | | - */ |
603 | | -$messages['zh-hant'] = array( |
604 | | - 'usercontactlink-baduser' => '使用者名稱錯誤', |
605 | | -); |
606 | | - |
Index: trunk/extensions/UserContactLinks/UserSignature.php |
— | — | @@ -1,103 +0,0 @@ |
2 | | -<?php |
3 | | - |
4 | | -/* |
5 | | -This program is free software; you can redistribute it and/or |
6 | | -modify it under the terms of the GNU General Public License |
7 | | -as published by the Free Software Foundation, version 2 |
8 | | -of the License. |
9 | | - |
10 | | -This program is distributed in the hope that it will be useful, |
11 | | -but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | | -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | | -GNU General Public License for more details. |
14 | | - |
15 | | -You should have received a copy of the GNU General Public License |
16 | | -along with this program; if not, write to the Free Software |
17 | | -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
18 | | -*/ |
19 | | - |
20 | | -global $wgHooks, $wgOut; |
21 | | -$wgHooks['ParserAfterStrip'][] = 'parseUserSignatures'; |
22 | | -$wgExtensionCredits['parserhook'][] = array( |
23 | | - 'path' => __FILE__, |
24 | | - 'version' => '0.4.1', |
25 | | - 'name' => 'UserSignature', |
26 | | - 'author' => 'Paul Grinberg', |
27 | | - 'email' => 'gri6507 at yahoo dot com', |
28 | | - 'url' => 'http://www.mediawiki.org/wiki/Extension:User_Contact_Links', |
29 | | - 'descriptionmsg' => 'usercontactlink-desc', |
30 | | -); |
31 | | - |
32 | | -$dir = dirname(__FILE__) . '/'; |
33 | | -$wgExtensionMessagesFiles['UserContactLinks'] = $dir . 'UserSignature.i18n.php'; |
34 | | - |
35 | | -function parseUserSignatures(&$parser, &$text, &$strip_state) { |
36 | | - wfLoadExtensionMessages( 'UserContactLinks' ); |
37 | | - while (preg_match('/\^\^\^(.+?)\^\^\^/', $text, $matches)) { |
38 | | - $userid = getUserIDFromUserText($matches[1]); |
39 | | - if ($userid != 0) { // successfully found the user based on first word |
40 | | - $u = newFromId($userid); |
41 | | - $text = str_replace("^^^$matches[1]^^^", "[[:user:" . $u->getName() . "|" . $u->getRealName() . "]]", $text); |
42 | | - } else { |
43 | | - $text = str_replace("^^^$matches[1]^^^", "'''{". wfMsg('usercontactlink-baduser') ."}'''", $text); |
44 | | - } |
45 | | - } |
46 | | - |
47 | | - return true; |
48 | | -} |
49 | | - |
50 | | -function newFromId( $id ) { |
51 | | - $u = new User; |
52 | | - $u->mId = $id; |
53 | | - $u->mFrom = 'id'; |
54 | | - return $u; |
55 | | -} |
56 | | - |
57 | | -# only create the following function if it was not already installed with the Todo Tasks extension |
58 | | -if (!function_exists('getUserIDFromUserText')) { |
59 | | - function getUserIDFromUserText($user) { |
60 | | - $dbr = wfGetDB( DB_SLAVE ); |
61 | | - $userid = 0; |
62 | | - |
63 | | - if (preg_match('/^\s*(.*?)\s*$/', $user, $matches)) |
64 | | - $user = $matches[1]; |
65 | | - |
66 | | - $u = User::newFromName($user); |
67 | | - if ($u) { |
68 | | - $userid = $u->idForName(); // valid userName |
69 | | - } |
70 | | - if (!$userid) { // if not a valid userName, try as a userRealName |
71 | | - $userid = $dbr->selectField( 'user', 'user_id', array( 'user_real_name' => $user ), 'renderTodo' ); |
72 | | - if (!$userid) { // if not valid userRealName, try case insensitive userRealName |
73 | | - $sql = "SELECT user_id FROM ". $dbr->tableName('user') ." WHERE UPPER(user_real_name) LIKE '%" . strtoupper($user) . "%'"; |
74 | | - $res = $dbr->query( $sql, __METHOD__ ); |
75 | | - if ($dbr->numRows($res)) { |
76 | | - $row = $dbr->fetchRow($res); |
77 | | - $userid = $row[0]; |
78 | | - } |
79 | | - $dbr->freeResult($res); |
80 | | - if (!$userid) { // if not case insensitive userRealName, try case insensitive lastname |
81 | | - $first = ""; |
82 | | - $last = ""; |
83 | | - $fullname = array(); |
84 | | - $fullname = preg_split('/\s+/', $user); |
85 | | - if (count($fullname) > 0) |
86 | | - $first=$fullname[0]; |
87 | | - if (count($fullname) > 1) |
88 | | - $last=$fullname[1]; |
89 | | - |
90 | | - if ($last != '') { |
91 | | - $sql = "SELECT user_id FROM ". $dbr->tableName('user') ." WHERE UPPER(user_real_name) LIKE '%" . strtoupper($last) . "%'"; |
92 | | - $res = $dbr->query( $sql, __METHOD__ ); |
93 | | - if ($dbr->numRows($res)) { |
94 | | - $row = $dbr->fetchRow($res); |
95 | | - $userid = $row[0]; |
96 | | - } |
97 | | - $dbr->freeResult($res); |
98 | | - } |
99 | | - } |
100 | | - } |
101 | | - } |
102 | | - return $userid; |
103 | | - } |
104 | | -} |
Index: trunk/extensions/UserContactLinks/UserContactLinks.i18n.php |
— | — | @@ -0,0 +1,605 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Internationalisation file for extension UserContactLinks. |
| 5 | + * |
| 6 | + * @addtogroup Extensions |
| 7 | +*/ |
| 8 | + |
| 9 | +$messages = array(); |
| 10 | + |
| 11 | +$messages['en'] = array( |
| 12 | + 'usercontactlink-baduser' => 'incorrect username', |
| 13 | + 'usercontactlinks-desc' => 'Provides the ability to simply and consistently add other user names using ^^^user^^^ syntax', |
| 14 | +); |
| 15 | + |
| 16 | +/** Message documentation (Message documentation) |
| 17 | + * @author Fryed-peach |
| 18 | + * @author Jon Harald Søby |
| 19 | + * @author Purodha |
| 20 | + * @author Siebrand |
| 21 | + */ |
| 22 | +$messages['qqq'] = array( |
| 23 | + 'usercontactlink-baduser' => '{{Identical|Incorrect username}}', |
| 24 | + 'usercontactlinks-desc' => '{{desc}}', |
| 25 | +); |
| 26 | + |
| 27 | +/** Faeag Rotuma (Faeag Rotuma) |
| 28 | + * @author Mattbray |
| 29 | + */ |
| 30 | +$messages['rtm'] = array( |
| 31 | + 'usercontactlink-baduser' => 'Seseva', |
| 32 | +); |
| 33 | + |
| 34 | +/** Afrikaans (Afrikaans) |
| 35 | + * @author Naudefj |
| 36 | + */ |
| 37 | +$messages['af'] = array( |
| 38 | + 'usercontactlink-baduser' => 'foutiewe gebruikersnaam', |
| 39 | +); |
| 40 | + |
| 41 | +/** Arabic (العربية) |
| 42 | + * @author Meno25 |
| 43 | + */ |
| 44 | +$messages['ar'] = array( |
| 45 | + 'usercontactlink-baduser' => 'اسم مستخدم غير صحيح', |
| 46 | + 'usercontactlinks-desc' => 'يوفر القدرة على تبسيط وإضافة أسماء المستخدمين الآخرين باستخدام صياغة ^^^user^^^', |
| 47 | +); |
| 48 | + |
| 49 | +/** Egyptian Spoken Arabic (مصرى) |
| 50 | + * @author Ghaly |
| 51 | + * @author Meno25 |
| 52 | + */ |
| 53 | +$messages['arz'] = array( |
| 54 | + 'usercontactlink-baduser' => 'اسم يوزر مش صحيح', |
| 55 | + 'usercontactlinks-desc' => 'يوفر القدرة على تبسيط وإضافة أسماء اليوزرز التانيين باستخدام صياغة ^^^user^^^', |
| 56 | +); |
| 57 | + |
| 58 | +/** Kotava (Kotava) |
| 59 | + * @author Wikimistusik |
| 60 | + */ |
| 61 | +$messages['avk'] = array( |
| 62 | + 'usercontactlink-baduser' => 'Favesikyoltaj', |
| 63 | +); |
| 64 | + |
| 65 | +/** Bavarian (Boarisch) |
| 66 | + * @author Man77 |
| 67 | + */ |
| 68 | +$messages['bar'] = array( |
| 69 | + 'usercontactlink-baduser' => 'fåischa Benutzanãm', |
| 70 | + 'usercontactlinks-desc' => 'Eamöglicht, dass Benutzanãmen oafåch mid ^^^Benutza^^^ valinkt wean', |
| 71 | +); |
| 72 | + |
| 73 | +/** Belarusian (Taraškievica orthography) (Беларуская (тарашкевіца)) |
| 74 | + * @author EugeneZelenko |
| 75 | + * @author Jim-by |
| 76 | + */ |
| 77 | +$messages['be-tarask'] = array( |
| 78 | + 'usercontactlink-baduser' => 'няслушнае імя ўдзельніка', |
| 79 | + 'usercontactlinks-desc' => 'Дае магчымасьць простага даданьня подпісу ўдзельніка з дапамогай устаўкі ^^^user^^^', |
| 80 | +); |
| 81 | + |
| 82 | +/** Bulgarian (Български) |
| 83 | + * @author Spiritia |
| 84 | + */ |
| 85 | +$messages['bg'] = array( |
| 86 | + 'usercontactlink-baduser' => 'Некоректно потребителско име', |
| 87 | +); |
| 88 | + |
| 89 | +/** Bengali (বাংলা) |
| 90 | + * @author Zaheen |
| 91 | + */ |
| 92 | +$messages['bn'] = array( |
| 93 | + 'usercontactlink-baduser' => 'বেঠিক ব্যবহারকারী নাম', |
| 94 | +); |
| 95 | + |
| 96 | +/** Breton (Brezhoneg) |
| 97 | + * @author Fulup |
| 98 | + */ |
| 99 | +$messages['br'] = array( |
| 100 | + 'usercontactlink-baduser' => 'Anv implijer faziek', |
| 101 | + 'usercontactlinks-desc' => 'Talvezout a ra da ouzhpennañ aes hag ingal anvioù implijer all en ur ober gant an ereadur ^^^user^^^', |
| 102 | +); |
| 103 | + |
| 104 | +/** Bosnian (Bosanski) |
| 105 | + * @author CERminator |
| 106 | + */ |
| 107 | +$messages['bs'] = array( |
| 108 | + 'usercontactlink-baduser' => 'pogrešno korisničko ime', |
| 109 | + 'usercontactlinks-desc' => 'Daje mogućnost jednostavnog i konzistentnog dodavanja drugih korisničkih imena koristeći ^^^user^^^ sintaksu', |
| 110 | +); |
| 111 | + |
| 112 | +/** Catalan (Català) |
| 113 | + * @author Solde |
| 114 | + * @author Ssola |
| 115 | + */ |
| 116 | +$messages['ca'] = array( |
| 117 | + 'usercontactlink-baduser' => "nom d'usuari incorrecte", |
| 118 | + 'usercontactlinks-desc' => "Permet la capacitat d'afegir simplement i amb consistència altres noms d'usuari utilitzant la sintaxi ^^^user^^^", |
| 119 | +); |
| 120 | + |
| 121 | +/** Sorani (Arabic script) (کوردی (عەرەبی)) |
| 122 | + * @author Marmzok |
| 123 | + */ |
| 124 | +$messages['ckb-arab'] = array( |
| 125 | + 'usercontactlink-baduser' => 'ناوی بەکارهێنەری هەڵە', |
| 126 | +); |
| 127 | + |
| 128 | +/** Czech (Česky) |
| 129 | + * @author Matěj Grabovský |
| 130 | + */ |
| 131 | +$messages['cs'] = array( |
| 132 | + 'usercontactlink-baduser' => 'Nesprávné uživatelské jméno', |
| 133 | + 'usercontactlinks-desc' => 'Poskytuje možnost jednoduše a konzistetně přidávat jména ostatních uživatelů pomocí syntaxe ^^^uživatel^^^', |
| 134 | +); |
| 135 | + |
| 136 | +/** German (Deutsch) |
| 137 | + * @author ChrisiPK |
| 138 | + */ |
| 139 | +$messages['de'] = array( |
| 140 | + 'usercontactlink-baduser' => 'falscher Benutzername', |
| 141 | + 'usercontactlinks-desc' => 'Macht es möglich, Benutzernamen einfach mit ^^^Benutzer^^^ zu verlinken', |
| 142 | +); |
| 143 | + |
| 144 | +/** Lower Sorbian (Dolnoserbski) |
| 145 | + * @author Michawiki |
| 146 | + */ |
| 147 | +$messages['dsb'] = array( |
| 148 | + 'usercontactlink-baduser' => 'wopacne wužywarske mě', |
| 149 | + 'usercontactlinks-desc' => 'Dawa móžnosć jadnorje a konsistentnje druge wužywarske mjenja z pomocu syntakse ^^^wužywaŕ^^^ pśidaś', |
| 150 | +); |
| 151 | + |
| 152 | +/** Greek (Ελληνικά) |
| 153 | + * @author Omnipaedista |
| 154 | + */ |
| 155 | +$messages['el'] = array( |
| 156 | + 'usercontactlink-baduser' => 'λανθασμένο όνομα χρήστη', |
| 157 | + 'usercontactlinks-desc' => 'Επιτρέπει στον χρήστη να προσθέτει με απλό τρόπο και συνέπεια άλλα ονόματα χρήστη χρησιμοποιώντας το συντακτικό ^^^user^^^', |
| 158 | +); |
| 159 | + |
| 160 | +/** Esperanto (Esperanto) |
| 161 | + * @author Yekrats |
| 162 | + */ |
| 163 | +$messages['eo'] = array( |
| 164 | + 'usercontactlink-baduser' => 'malkorekta salutnomo', |
| 165 | +); |
| 166 | + |
| 167 | +/** Spanish (Español) |
| 168 | + * @author Sanbec |
| 169 | + */ |
| 170 | +$messages['es'] = array( |
| 171 | + 'usercontactlink-baduser' => 'nombre de usuario incorrecto', |
| 172 | + 'usercontactlinks-desc' => 'Proporciona la capacidad para añadir sencilla y consistentemente otros usuarios usando la sintaxis ^^^user^^^', |
| 173 | +); |
| 174 | + |
| 175 | +/** Basque (Euskara) |
| 176 | + * @author An13sa |
| 177 | + * @author Theklan |
| 178 | + */ |
| 179 | +$messages['eu'] = array( |
| 180 | + 'usercontactlink-baduser' => 'Lankide izen okerra', |
| 181 | + 'usercontactlinks-desc' => '^^^lankidea^^^ sintaxia erabilita beste lankide baten erabiltzaile izena erabiltzea baimentzen du', |
| 182 | +); |
| 183 | + |
| 184 | +/** Persian (فارسی) |
| 185 | + * @author Huji |
| 186 | + * @author Meisam |
| 187 | + */ |
| 188 | +$messages['fa'] = array( |
| 189 | + 'usercontactlink-baduser' => 'نام کاربری نادرست', |
| 190 | +); |
| 191 | + |
| 192 | +/** Finnish (Suomi) |
| 193 | + * @author Cimon Avaro |
| 194 | + * @author Nike |
| 195 | + * @author Vililikku |
| 196 | + */ |
| 197 | +$messages['fi'] = array( |
| 198 | + 'usercontactlink-baduser' => 'virheellinen käyttäjätunnus', |
| 199 | + 'usercontactlinks-desc' => 'Suo mahdollisuuden lisätä yksinkertaisesti ja yhdenmukaisesti muita käyttäjätunnuksia käyttäen ^^^user^^^ syntaksia', |
| 200 | +); |
| 201 | + |
| 202 | +/** French (Français) |
| 203 | + * @author Crochet.david |
| 204 | + * @author Grondin |
| 205 | + * @author PieRRoMaN |
| 206 | + */ |
| 207 | +$messages['fr'] = array( |
| 208 | + 'usercontactlink-baduser' => 'nom d’utilisateur incorrect', |
| 209 | + 'usercontactlinks-desc' => 'Permet d’ajouter simplement et avec consistance d’autres noms d’utilisateurs en utilisant la syntaxe ^^^user^^^', |
| 210 | +); |
| 211 | + |
| 212 | +/** Galician (Galego) |
| 213 | + * @author Alma |
| 214 | + * @author Toliño |
| 215 | + */ |
| 216 | +$messages['gl'] = array( |
| 217 | + 'usercontactlink-baduser' => 'nome de usuario non correcto', |
| 218 | + 'usercontactlinks-desc' => 'Proporciona a capacidade de engadir sinxela e consistentemente outros nomes de usuario usando a sintaxe ^^^user^^^', |
| 219 | +); |
| 220 | + |
| 221 | +/** Swiss German (Alemannisch) |
| 222 | + * @author Als-Holder |
| 223 | + */ |
| 224 | +$messages['gsw'] = array( |
| 225 | + 'usercontactlink-baduser' => 'falscher Benutzername', |
| 226 | + 'usercontactlinks-desc' => 'Macht s megli, Benutzername eifach mit ^^^Benutzer^^^ z vergleiche', |
| 227 | +); |
| 228 | + |
| 229 | +/** Gujarati (ગુજરાતી) |
| 230 | + * @author Ashok modhvadia |
| 231 | + */ |
| 232 | +$messages['gu'] = array( |
| 233 | + 'usercontactlink-baduser' => 'ખોટું સભ્યનામ', |
| 234 | + 'usercontactlinks-desc' => '^^^સભ્ય^^^ વાક્ય રચના વાપરી અને સહેલાઇ અને સંગતતાથી અન્ય સભ્યનામો ઉમેરવાની ક્ષમતા પ્રદાન કરે છે', |
| 235 | +); |
| 236 | + |
| 237 | +/** Hebrew (עברית) |
| 238 | + * @author Rotemliss |
| 239 | + * @author YaronSh |
| 240 | + */ |
| 241 | +$messages['he'] = array( |
| 242 | + 'usercontactlink-baduser' => 'שם המשתמש שגוי', |
| 243 | + 'usercontactlinks-desc' => 'הוספת אפשרות להוסיף שמות משתמשים אחרים בפשטות ובעקביות באמצעות התחביר ^^^user^^^', |
| 244 | +); |
| 245 | + |
| 246 | +/** Upper Sorbian (Hornjoserbsce) |
| 247 | + * @author Michawiki |
| 248 | + */ |
| 249 | +$messages['hsb'] = array( |
| 250 | + 'usercontactlink-baduser' => 'njekorektne wužiwarske mjeno', |
| 251 | + 'usercontactlinks-desc' => 'Skići móžnosć jednorje a konsistentnje druhe wužiwarske mjena z pomocu syntaksy ^^^wužiwar^^^ přidać', |
| 252 | +); |
| 253 | + |
| 254 | +/** Hungarian (Magyar) |
| 255 | + * @author Dani |
| 256 | + */ |
| 257 | +$messages['hu'] = array( |
| 258 | + 'usercontactlink-baduser' => 'érvénytelen felhasználói név', |
| 259 | + 'usercontactlinks-desc' => 'Lehetővé teszi a szerkesztők neveire való gyors hivatkozást a ^^^szerkesztő^^^ kóddal', |
| 260 | +); |
| 261 | + |
| 262 | +/** Interlingua (Interlingua) |
| 263 | + * @author McDutchie |
| 264 | + */ |
| 265 | +$messages['ia'] = array( |
| 266 | + 'usercontactlink-baduser' => 'nomine de usator incorrecte', |
| 267 | + 'usercontactlinks-desc' => 'Permitte adder simple- e consistentemente altere nomines de usator con le syntaxe ^^^user^^^', |
| 268 | +); |
| 269 | + |
| 270 | +/** Indonesian (Bahasa Indonesia) |
| 271 | + * @author Bennylin |
| 272 | + */ |
| 273 | +$messages['id'] = array( |
| 274 | + 'usercontactlink-baduser' => 'nama pengguna salah', |
| 275 | + 'usercontactlinks-desc' => 'Memampukan untuk menambahkan nama pengguna lain secara konsisten dengan menggunakan sintaks ^^^pengguna^^^', |
| 276 | +); |
| 277 | + |
| 278 | +/** Italian (Italiano) |
| 279 | + * @author Darth Kule |
| 280 | + */ |
| 281 | +$messages['it'] = array( |
| 282 | + 'usercontactlink-baduser' => 'nome utente errato', |
| 283 | + 'usercontactlinks-desc' => 'Permette di aggiungere semplicemente e coerentemente altri nomi utente usando la sintassi ^^^user^^^', |
| 284 | +); |
| 285 | + |
| 286 | +/** Japanese (日本語) |
| 287 | + * @author Mizusumashi |
| 288 | + */ |
| 289 | +$messages['ja'] = array( |
| 290 | + 'usercontactlink-baduser' => '不正確な利用者名', |
| 291 | + 'usercontactlinks-desc' => '^^^user^^^という文法を利用して、簡単かつ一貫して他の利用者名を加えることができるようにする。', |
| 292 | +); |
| 293 | + |
| 294 | +/** Javanese (Basa Jawa) |
| 295 | + * @author Meursault2004 |
| 296 | + * @author Pras |
| 297 | + */ |
| 298 | +$messages['jv'] = array( |
| 299 | + 'usercontactlink-baduser' => 'jeneng panganggo ora bener', |
| 300 | + 'usercontactlinks-desc' => 'Mènèhi kamampuan kanggo sacara gampang lan konsisten nambah jeneng panganggo liya nganggo sintaks ^^^panganggo^^^', |
| 301 | +); |
| 302 | + |
| 303 | +/** Khmer (ភាសាខ្មែរ) |
| 304 | + * @author Chhorran |
| 305 | + * @author Lovekhmer |
| 306 | + * @author វ័ណថារិទ្ធ |
| 307 | + */ |
| 308 | +$messages['km'] = array( |
| 309 | + 'usercontactlink-baduser' => 'ឈ្មោះអ្នកប្រើប្រាស់មិនត្រឹមត្រូវទេ', |
| 310 | + 'usercontactlinks-desc' => 'ផ្ដល់លទ្ធភាពក្នុងការសម្រួលនិងបន្ថែមឲ្យត្រឹមត្រូវឈ្មោះអ្នកប្រើប្រាស់ផ្សេងៗទៀត ដោយប្រើប្រាស់វាក្យសម្ពន្ធ ^^^user^^^', |
| 311 | +); |
| 312 | + |
| 313 | +/** Ripoarisch (Ripoarisch) |
| 314 | + * @author Purodha |
| 315 | + */ |
| 316 | +$messages['ksh'] = array( |
| 317 | + 'usercontactlink-baduser' => 'verkeehte Metmaacher-Name', |
| 318 | + 'usercontactlinks-desc' => 'Määt et müjjelesch op en einfache un dorschjängeje Aat met ^^^user^^^ anderlüks Metmaacher-Name derbei ze donn.', |
| 319 | +); |
| 320 | + |
| 321 | +/** Luxembourgish (Lëtzebuergesch) |
| 322 | + * @author Robby |
| 323 | + */ |
| 324 | +$messages['lb'] = array( |
| 325 | + 'usercontactlink-baduser' => 'falsche Benotzernumm', |
| 326 | + 'usercontactlinks-desc' => 'Erméiglecht et fir einfach an dauernd aner Benotzernimm mat Hëllef vun der Syntax ^^^user^^^ derbäizesetzen', |
| 327 | +); |
| 328 | + |
| 329 | +/** Macedonian (Македонски) |
| 330 | + * @author Brest |
| 331 | + */ |
| 332 | +$messages['mk'] = array( |
| 333 | + 'usercontactlink-baduser' => 'погрешно корисничко име', |
| 334 | + 'usercontactlinks-desc' => 'Дава можност за едноставно и конзистентно додавање на другите кориснички имиња со користење на синтаксата ^^^корисник^^^', |
| 335 | +); |
| 336 | + |
| 337 | +/** Malayalam (മലയാളം) |
| 338 | + * @author Shijualex |
| 339 | + */ |
| 340 | +$messages['ml'] = array( |
| 341 | + 'usercontactlink-baduser' => 'തെറ്റായ ഉപയോക്തൃനാമം', |
| 342 | +); |
| 343 | + |
| 344 | +/** Marathi (मराठी) |
| 345 | + * @author Kaustubh |
| 346 | + */ |
| 347 | +$messages['mr'] = array( |
| 348 | + 'usercontactlink-baduser' => 'चुकीचे सदस्यनाव', |
| 349 | +); |
| 350 | + |
| 351 | +/** Maltese (Malti) |
| 352 | + * @author Chrisportelli |
| 353 | + */ |
| 354 | +$messages['mt'] = array( |
| 355 | + 'usercontactlink-baduser' => "Isem ta' l-utent ħażin", |
| 356 | + 'usercontactlinks-desc' => "Jipprovdi l-abilità li jżid sempliċement u konstantament ismijiet ta' l-utent ġodda bl-użu tas-sintassi ^^^user^^^", |
| 357 | +); |
| 358 | + |
| 359 | +/** Low German (Plattdüütsch) |
| 360 | + * @author Slomox |
| 361 | + */ |
| 362 | +$messages['nds'] = array( |
| 363 | + 'usercontactlink-baduser' => 'verkehrt Brukernaam', |
| 364 | +); |
| 365 | + |
| 366 | +/** Dutch (Nederlands) |
| 367 | + * @author SPQRobin |
| 368 | + * @author Siebrand |
| 369 | + */ |
| 370 | +$messages['nl'] = array( |
| 371 | + 'usercontactlink-baduser' => 'onjuiste gebruikersnaam', |
| 372 | + 'usercontactlinks-desc' => 'Maakt het mogelijk om eenvoudig en consistent andere gebruikersnamen toe te voegen met behulp van de syntaxis ^^^user^^^', |
| 373 | +); |
| 374 | + |
| 375 | +/** Norwegian Nynorsk (Norsk (nynorsk)) |
| 376 | + * @author Frokor |
| 377 | + */ |
| 378 | +$messages['nn'] = array( |
| 379 | + 'usercontactlink-baduser' => 'ukorrekt brukernamn', |
| 380 | + 'usercontactlinks-desc' => 'Gjev høve til å lenke til andre brukernamn med syntaksen ^^^brukar^^^.', |
| 381 | +); |
| 382 | + |
| 383 | +/** Norwegian (bokmål) (Norsk (bokmål)) |
| 384 | + * @author Jon Harald Søby |
| 385 | + */ |
| 386 | +$messages['no'] = array( |
| 387 | + 'usercontactlink-baduser' => 'ukorrekt brukernavn', |
| 388 | + 'usercontactlinks-desc' => 'Gir muligheten til å lenke til andre brukernavn med syntaksen ^^^bruker^^^.', |
| 389 | +); |
| 390 | + |
| 391 | +/** Occitan (Occitan) |
| 392 | + * @author Cedric31 |
| 393 | + */ |
| 394 | +$messages['oc'] = array( |
| 395 | + 'usercontactlink-baduser' => 'nom d’utilizaire incorrècte', |
| 396 | + 'usercontactlinks-desc' => "Provesís la possibilitat d'ajustar simplament e amb consisténcia d'autres noms d'utilizaires en utilizant la sintaxi ^^^user^^^", |
| 397 | +); |
| 398 | + |
| 399 | +/** Polish (Polski) |
| 400 | + * @author Wpedzich |
| 401 | + */ |
| 402 | +$messages['pl'] = array( |
| 403 | + 'usercontactlink-baduser' => 'Nieprawidłowa nazwa użytkownika', |
| 404 | + 'usercontactlinks-desc' => 'Umożliwia w prosty i logiczny sposób dodawanie nowych nazw użytkownika za pomocą polecenia ^^^user^^^.', |
| 405 | +); |
| 406 | + |
| 407 | +/** Piedmontese (Piemontèis) |
| 408 | + * @author Dragonòt |
| 409 | + */ |
| 410 | +$messages['pms'] = array( |
| 411 | + 'usercontactlink-baduser' => 'Nòm utent nen giust', |
| 412 | + 'usercontactlinks-desc' => 'A dà la possibilità ëd gionté an manera sempia e coerenta àutri nòm utent an dovrand la sintass ^^^user^^^', |
| 413 | +); |
| 414 | + |
| 415 | +/** Pashto (پښتو) |
| 416 | + * @author Ahmed-Najib-Biabani-Ibrahimkhel |
| 417 | + */ |
| 418 | +$messages['ps'] = array( |
| 419 | + 'usercontactlink-baduser' => 'ناسم کارن-نوم', |
| 420 | + 'usercontactlinks-desc' => 'د ^^^ کارن^^^ ژبرغښت په کارولو سره به په ساده او پرله پسې توګه د کارنانو د نومونو د ورګډولو توان پېدا شي', |
| 421 | +); |
| 422 | + |
| 423 | +/** Portuguese (Português) |
| 424 | + * @author Hamilton Abreu |
| 425 | + * @author Malafaya |
| 426 | + * @author Waldir |
| 427 | + */ |
| 428 | +$messages['pt'] = array( |
| 429 | + 'usercontactlink-baduser' => 'nome de utilizador incorrecto', |
| 430 | + 'usercontactlinks-desc' => 'Fornece a possibilidade de adicionar de forma simples e consistente outros nomes de utilizador, usando a sintaxe ^^^user^^^', |
| 431 | +); |
| 432 | + |
| 433 | +/** Brazilian Portuguese (Português do Brasil) |
| 434 | + * @author Eduardo.mps |
| 435 | + */ |
| 436 | +$messages['pt-br'] = array( |
| 437 | + 'usercontactlink-baduser' => 'nome de utilizador incorreto', |
| 438 | + 'usercontactlinks-desc' => 'Fornece a possibilidade de adicionar de forma simples e consistente outros nomes de utilizador, usando a sintaxe ^^^user^^^', |
| 439 | +); |
| 440 | + |
| 441 | +/** Romanian (Română) |
| 442 | + * @author KlaudiuMihaila |
| 443 | + */ |
| 444 | +$messages['ro'] = array( |
| 445 | + 'usercontactlink-baduser' => 'nume de utilizator incorect', |
| 446 | +); |
| 447 | + |
| 448 | +/** Tarandíne (Tarandíne) |
| 449 | + * @author Joetaras |
| 450 | + */ |
| 451 | +$messages['roa-tara'] = array( |
| 452 | + 'usercontactlink-baduser' => 'Nome utende sbagliate', |
| 453 | + 'usercontactlinks-desc' => "Te dè 'a possibbilità de aggiungere facile facile l'otre nome utinde ausanne 'a sindassi ^^^user^^^", |
| 454 | +); |
| 455 | + |
| 456 | +/** Russian (Русский) |
| 457 | + * @author Ferrer |
| 458 | + * @author Александр Сигачёв |
| 459 | + */ |
| 460 | +$messages['ru'] = array( |
| 461 | + 'usercontactlink-baduser' => 'некорректное имя участника', |
| 462 | + 'usercontactlinks-desc' => 'Предоставляет возможность легко добавить имена других участников с помощью синтаксиса ^^^участник^^^', |
| 463 | +); |
| 464 | + |
| 465 | +/** Sinhala (සිංහල) |
| 466 | + * @author Calcey |
| 467 | + */ |
| 468 | +$messages['si'] = array( |
| 469 | + 'usercontactlink-baduser' => 'වැරදි පරිශීලක නාමය', |
| 470 | + 'usercontactlinks-desc' => '^^^user^^^ වාග් රීතිය භාවිතා කරමින් සරලව හා ස්ථායීව අනෙක් පරිශීලකයින් එකතු කිරීමට හැකියාව සලසයි', |
| 471 | +); |
| 472 | + |
| 473 | +/** Slovak (Slovenčina) |
| 474 | + * @author Helix84 |
| 475 | + */ |
| 476 | +$messages['sk'] = array( |
| 477 | + 'usercontactlink-baduser' => 'nesprávne meno používateľa', |
| 478 | + 'usercontactlinks-desc' => 'Poskytuje možnosť jednoducho a konzistentne pridávať mená ostatných používateľov pomocou syntaxe ^^^používateľ^^^', |
| 479 | +); |
| 480 | + |
| 481 | +/** Lower Silesian (Schläsch) |
| 482 | + * @author Jonny84 |
| 483 | + * @author Schläsinger |
| 484 | + */ |
| 485 | +$messages['sli'] = array( |
| 486 | + 'usercontactlink-baduser' => 'foalscher Nutzernoame', |
| 487 | + 'usercontactlinks-desc' => 'Macht es möglich, Benutzernamen einfach mit ^^^Benutzer^^^ zu verlinken', |
| 488 | +); |
| 489 | + |
| 490 | +/** Albanian (Shqip) |
| 491 | + * @author Puntori |
| 492 | + */ |
| 493 | +$messages['sq'] = array( |
| 494 | + 'usercontactlink-baduser' => 'llogari jo korrekte', |
| 495 | +); |
| 496 | + |
| 497 | +/** Serbian Cyrillic ekavian (Српски (ћирилица)) |
| 498 | + * @author Михајло Анђелковић |
| 499 | + */ |
| 500 | +$messages['sr-ec'] = array( |
| 501 | + 'usercontactlink-baduser' => 'неправилно корисничко име', |
| 502 | + 'usercontactlinks-desc' => 'Пружа могућност једноставног и непрекидног додавања других корисничких имена, коришћењем ^^^user^^^ синтаксе', |
| 503 | +); |
| 504 | + |
| 505 | +/** Serbian Latin ekavian (Srpski (latinica)) |
| 506 | + * @author Michaello |
| 507 | + */ |
| 508 | +$messages['sr-el'] = array( |
| 509 | + 'usercontactlink-baduser' => 'nepravilno korisničko ime', |
| 510 | + 'usercontactlinks-desc' => 'Pruža mogućnost jednostavnog i neprekidnog dodavanja drugih korisničkih imena, korišćenjem ^^^user^^^ sintakse', |
| 511 | +); |
| 512 | + |
| 513 | +/** Seeltersk (Seeltersk) |
| 514 | + * @author Pyt |
| 515 | + */ |
| 516 | +$messages['stq'] = array( |
| 517 | + 'usercontactlink-baduser' => 'falsken Benutsernoome', |
| 518 | + 'usercontactlinks-desc' => 'Moaket et muugelk, Benutsernoomen eenfach mäd ^^^Benutser^^^ tou ferlinkjen', |
| 519 | +); |
| 520 | + |
| 521 | +/** Swedish (Svenska) |
| 522 | + * @author Lejonel |
| 523 | + * @author M.M.S. |
| 524 | + */ |
| 525 | +$messages['sv'] = array( |
| 526 | + 'usercontactlink-baduser' => 'felaktigt användarnamn', |
| 527 | + 'usercontactlinks-desc' => 'Ger möjligheten att länka till andra användarnamn med syntaxen ^^^användare^^^.', |
| 528 | +); |
| 529 | + |
| 530 | +/** Telugu (తెలుగు) |
| 531 | + * @author Kiranmayee |
| 532 | + * @author Veeven |
| 533 | + */ |
| 534 | +$messages['te'] = array( |
| 535 | + 'usercontactlink-baduser' => 'తప్పుడు వాడుకరిపేరు', |
| 536 | + 'usercontactlinks-desc' => '^^^వాడుకరి^^^ నమూనా ద్వారా మిగతా వాడుకరుల పేర్లను తేలికగా మరియు నిర్ణీత పద్ధతిలో కలుపు వీలును కలిగించును', |
| 537 | +); |
| 538 | + |
| 539 | +/** Tajik (Cyrillic) (Тоҷикӣ (Cyrillic)) |
| 540 | + * @author Ibrahim |
| 541 | + */ |
| 542 | +$messages['tg-cyrl'] = array( |
| 543 | + 'usercontactlink-baduser' => 'номи корбарии нодуруст', |
| 544 | +); |
| 545 | + |
| 546 | +/** Tajik (Latin) (Тоҷикӣ (Latin)) |
| 547 | + * @author Liangent |
| 548 | + */ |
| 549 | +$messages['tg-latn'] = array( |
| 550 | + 'usercontactlink-baduser' => 'nomi korbariji nodurust', |
| 551 | +); |
| 552 | + |
| 553 | +/** Tagalog (Tagalog) |
| 554 | + * @author AnakngAraw |
| 555 | + */ |
| 556 | +$messages['tl'] = array( |
| 557 | + 'usercontactlink-baduser' => 'hindi tamang pangalan ng tagagamit', |
| 558 | + 'usercontactlinks-desc' => 'Nagbibigay ng kakayahan upang payak at parating makapagdagdag ng iba pang mga pangalan ng tagagamit na ginagamitan ng palaugnayang ^^^tagagamit^^^', |
| 559 | +); |
| 560 | + |
| 561 | +/** Turkish (Türkçe) |
| 562 | + * @author Karduelis |
| 563 | + * @author Vito Genovese |
| 564 | + */ |
| 565 | +$messages['tr'] = array( |
| 566 | + 'usercontactlink-baduser' => 'Hatalı kullanıcı adı', |
| 567 | + 'usercontactlinks-desc' => '^^^Kullanıcı^^^ sözdizimi kullanılarak basit ve sürekli bir şekilde diğer kullanıcı adlarını ekleme imkanı sağlar', |
| 568 | +); |
| 569 | + |
| 570 | +/** Vèneto (Vèneto) |
| 571 | + * @author Candalua |
| 572 | + */ |
| 573 | +$messages['vec'] = array( |
| 574 | + 'usercontactlink-baduser' => 'nome utente mia justo', |
| 575 | +); |
| 576 | + |
| 577 | +/** Vietnamese (Tiếng Việt) |
| 578 | + * @author Minh Nguyen |
| 579 | + * @author Vinhtantran |
| 580 | + */ |
| 581 | +$messages['vi'] = array( |
| 582 | + 'usercontactlink-baduser' => 'tên hiệu không đúng', |
| 583 | + 'usercontactlinks-desc' => 'Cung cấp khả năng thêm tên thành viên khác một cách đơn giản và nhất quán sử dụng cú pháp ^^^user^^^', |
| 584 | +); |
| 585 | + |
| 586 | +/** Volapük (Volapük) |
| 587 | + * @author Smeira |
| 588 | + */ |
| 589 | +$messages['vo'] = array( |
| 590 | + 'usercontactlink-baduser' => 'gebananem neveräton', |
| 591 | +); |
| 592 | + |
| 593 | +/** Simplified Chinese (中文(简体)) |
| 594 | + * @author Gzdavidwong |
| 595 | + */ |
| 596 | +$messages['zh-hans'] = array( |
| 597 | + 'usercontactlink-baduser' => '用户名不正确', |
| 598 | +); |
| 599 | + |
| 600 | +/** Traditional Chinese (中文(繁體)) |
| 601 | + * @author Wrightbus |
| 602 | + */ |
| 603 | +$messages['zh-hant'] = array( |
| 604 | + 'usercontactlink-baduser' => '使用者名稱錯誤', |
| 605 | +); |
| 606 | + |
Property changes on: trunk/extensions/UserContactLinks/UserContactLinks.i18n.php |
___________________________________________________________________ |
Name: svn:eol-style |
1 | 607 | + native |
Index: trunk/extensions/UserContactLinks/UserContactLinks.php |
— | — | @@ -0,0 +1,103 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +/* |
| 5 | +This program is free software; you can redistribute it and/or |
| 6 | +modify it under the terms of the GNU General Public License |
| 7 | +as published by the Free Software Foundation, version 2 |
| 8 | +of the License. |
| 9 | + |
| 10 | +This program is distributed in the hope that it will be useful, |
| 11 | +but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | +GNU General Public License for more details. |
| 14 | + |
| 15 | +You should have received a copy of the GNU General Public License |
| 16 | +along with this program; if not, write to the Free Software |
| 17 | +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 18 | +*/ |
| 19 | + |
| 20 | +global $wgHooks, $wgOut; |
| 21 | +$wgHooks['ParserAfterStrip'][] = 'parseUserSignatures'; |
| 22 | +$wgExtensionCredits['parserhook'][] = array( |
| 23 | + 'path' => __FILE__, |
| 24 | + 'version' => '0.5.0', |
| 25 | + 'name' => 'UserContactLinks', |
| 26 | + 'author' => 'Paul Grinberg', |
| 27 | + 'email' => 'gri6507 at yahoo dot com', |
| 28 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:User_Contact_Links', |
| 29 | + 'descriptionmsg' => 'usercontactlinks-desc', |
| 30 | +); |
| 31 | + |
| 32 | +$dir = dirname(__FILE__) . '/'; |
| 33 | +$wgExtensionMessagesFiles['UserContactLinks'] = $dir . 'UserContactLinks.i18n.php'; |
| 34 | + |
| 35 | +function parseUserSignatures(&$parser, &$text, &$strip_state) { |
| 36 | + wfLoadExtensionMessages( 'UserContactLinks' ); |
| 37 | + while (preg_match('/\^\^\^(.+?)\^\^\^/', $text, $matches)) { |
| 38 | + $userid = getUserIDFromUserText($matches[1]); |
| 39 | + if ($userid != 0) { // successfully found the user based on first word |
| 40 | + $u = newFromId($userid); |
| 41 | + $text = str_replace("^^^$matches[1]^^^", "[[:user:" . $u->getName() . "|" . $u->getRealName() . "]]", $text); |
| 42 | + } else { |
| 43 | + $text = str_replace("^^^$matches[1]^^^", "'''{". wfMsg('usercontactlink-baduser') ."}'''", $text); |
| 44 | + } |
| 45 | + } |
| 46 | + |
| 47 | + return true; |
| 48 | +} |
| 49 | + |
| 50 | +function newFromId( $id ) { |
| 51 | + $u = new User; |
| 52 | + $u->mId = $id; |
| 53 | + $u->mFrom = 'id'; |
| 54 | + return $u; |
| 55 | +} |
| 56 | + |
| 57 | +# only create the following function if it was not already installed with the Todo Tasks extension |
| 58 | +if (!function_exists('getUserIDFromUserText')) { |
| 59 | + function getUserIDFromUserText($user) { |
| 60 | + $dbr = wfGetDB( DB_SLAVE ); |
| 61 | + $userid = 0; |
| 62 | + |
| 63 | + if (preg_match('/^\s*(.*?)\s*$/', $user, $matches)) |
| 64 | + $user = $matches[1]; |
| 65 | + |
| 66 | + $u = User::newFromName($user); |
| 67 | + if ($u) { |
| 68 | + $userid = $u->idForName(); // valid userName |
| 69 | + } |
| 70 | + if (!$userid) { // if not a valid userName, try as a userRealName |
| 71 | + $userid = $dbr->selectField( 'user', 'user_id', array( 'user_real_name' => $user ), 'renderTodo' ); |
| 72 | + if (!$userid) { // if not valid userRealName, try case insensitive userRealName |
| 73 | + $sql = "SELECT user_id FROM ". $dbr->tableName('user') ." WHERE UPPER(user_real_name) LIKE '%" . strtoupper($user) . "%'"; |
| 74 | + $res = $dbr->query( $sql, __METHOD__ ); |
| 75 | + if ($dbr->numRows($res)) { |
| 76 | + $row = $dbr->fetchRow($res); |
| 77 | + $userid = $row[0]; |
| 78 | + } |
| 79 | + $dbr->freeResult($res); |
| 80 | + if (!$userid) { // if not case insensitive userRealName, try case insensitive lastname |
| 81 | + $first = ""; |
| 82 | + $last = ""; |
| 83 | + $fullname = array(); |
| 84 | + $fullname = preg_split('/\s+/', $user); |
| 85 | + if (count($fullname) > 0) |
| 86 | + $first=$fullname[0]; |
| 87 | + if (count($fullname) > 1) |
| 88 | + $last=$fullname[1]; |
| 89 | + |
| 90 | + if ($last != '') { |
| 91 | + $sql = "SELECT user_id FROM ". $dbr->tableName('user') ." WHERE UPPER(user_real_name) LIKE '%" . strtoupper($last) . "%'"; |
| 92 | + $res = $dbr->query( $sql, __METHOD__ ); |
| 93 | + if ($dbr->numRows($res)) { |
| 94 | + $row = $dbr->fetchRow($res); |
| 95 | + $userid = $row[0]; |
| 96 | + } |
| 97 | + $dbr->freeResult($res); |
| 98 | + } |
| 99 | + } |
| 100 | + } |
| 101 | + } |
| 102 | + return $userid; |
| 103 | + } |
| 104 | +} |
Property changes on: trunk/extensions/UserContactLinks/UserContactLinks.php |
___________________________________________________________________ |
Name: svn:eol-style |
1 | 105 | + native |
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt |
— | — | @@ -1344,8 +1344,6 @@ |
1345 | 1345 | aliasfile = UsageStatistics/UsageStatistics.alias.php |
1346 | 1346 | |
1347 | 1347 | User Contact Links |
1348 | | -file = UserContactLinks/UserSignature.i18n.php |
1349 | | -descmsg = usercontactlink-desc |
1350 | 1348 | |
1351 | 1349 | User Images |
1352 | 1350 | |