Index: trunk/extensions/Cite/Cite.i18n.php |
— | — | @@ -5,31 +5,29 @@ |
6 | 6 | * @addtogroup Extensions |
7 | 7 | */ |
8 | 8 | |
9 | | -$wgCiteMessages = array(); |
| 9 | +$messages = array(); |
10 | 10 | |
11 | | -$wgCiteMessages['en'] = array( |
| 11 | +$messages['en'] = array( |
12 | 12 | /* |
13 | 13 | Debug and errors |
14 | 14 | */ |
15 | 15 | |
16 | 16 | # Internal errors |
17 | | - 'cite_croak' => 'Cite croaked; $1: $2', |
| 17 | + 'cite_croak' => 'Cite croaked; $1: $2', |
| 18 | + 'cite_error_key_str_invalid' => 'Internal error; invalid $str and/or $key. This should never occur.', |
| 19 | + 'cite_error_stack_invalid_input' => 'Internal error; invalid stack key. This should never occur.', |
18 | 20 | |
19 | | - 'cite_error_' . CITE_ERROR_KEY_STR_INVALID => 'Internal error; invalid $str and/or $key. This should never occur.', |
20 | | - 'cite_error_' . CITE_ERROR_STACK_INVALID_INPUT => 'Internal error; invalid stack key. This should never occur.', |
21 | | - |
22 | 21 | # User errors |
23 | | - 'cite_error' => 'Cite error $1; $2', |
24 | | - |
25 | | - 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => 'Invalid <code><ref></code> tag; name cannot be a simple integer, use a descriptive title', |
26 | | - 'cite_error_' . CITE_ERROR_REF_NO_KEY => 'Invalid <code><ref></code> tag; refs with no content must have a name', |
27 | | - 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => 'Invalid <code><ref></code> tag; invalid names, e.g. too many', |
28 | | - 'cite_error_' . CITE_ERROR_REF_NO_INPUT => 'Invalid <code><ref></code> tag; refs with no name must have content', |
29 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_INPUT => 'Invalid <code><references></code> tag; no input is allowed, use |
| 22 | + 'cite_error' => 'Cite error: $1', |
| 23 | + 'cite_error_ref_numeric_key' => 'Invalid <code><ref></code> tag; name cannot be a simple integer, use a descriptive title', |
| 24 | + 'cite_error_ref_no_key' => 'Invalid <code><ref></code> tag; refs with no content must have a name', |
| 25 | + 'cite_error_ref_too_many_keys' => 'Invalid <code><ref></code> tag; invalid names, e.g. too many', |
| 26 | + 'cite_error_ref_no_input' => 'Invalid <code><ref></code> tag; refs with no name must have content', |
| 27 | + 'cite_error_references_invalid_input' => 'Invalid <code><references></code> tag; no input is allowed, use |
30 | 28 | <code><references /></code>', |
31 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Invalid <code><references></code> tag; no parameters are allowed, use <code><references /></code>', |
32 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "Ran out of custom backlink labels, define more in the \"''cite_references_link_many_format_backlink_labels''\" message", |
33 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_TEXT => 'No text given.', |
| 29 | + 'cite_error_references_invalid_parameters' => 'Invalid <code><references></code> tag; no parameters are allowed, use <code><references /></code>', |
| 30 | + 'cite_error_references_no_backlink_label' => "Ran out of custom backlink labels, define more in the \"''cite_references_link_many_format_backlink_labels''\" message", |
| 31 | + 'cite_error_references_no_text' => 'No text given.', |
34 | 32 | |
35 | 33 | /* |
36 | 34 | Output formatting |
— | — | @@ -56,394 +54,285 @@ |
57 | 55 | 'cite_references_prefix' => '<ol class="references">', |
58 | 56 | 'cite_references_suffix' => '</ol>', |
59 | 57 | ); |
60 | | -$wgCiteMessages['cs'] = array( |
61 | | - /* |
62 | | - Debug and errors |
63 | | - */ |
64 | 58 | |
65 | | - # Internal errors |
66 | | - 'cite_croak' => 'Nefunkční citace; $1: $2', |
| 59 | +/** Czech (Česky) */ |
| 60 | +$messages['cs'] = array( |
| 61 | + 'cite_croak' => 'Nefunkční citace; $1: $2', |
| 62 | + 'cite_error_key_str_invalid' => 'Vnitřní chyba; neplatný $str', |
| 63 | + 'cite_error_stack_invalid_input' => 'Vnitřní chyba; neplatný klíč zásobníku', |
| 64 | + 'cite_error' => 'Chybná citace $1; $2', |
| 65 | + 'cite_error_ref_numeric_key' => 'Chyba v tagu <code><ref></code>; názvem nesmí být prosté číslo, použijte popisné označení', |
| 66 | + 'cite_error_ref_no_key' => 'Chyba v tagu <code><ref></code>; prázdné citace musí obsahovat název', |
| 67 | + 'cite_error_ref_too_many_keys' => 'Chyba v tagu <code><ref></code>; chybné názvy, např. je jich příliš mnoho', |
| 68 | + 'cite_error_ref_no_input' => 'Chyba v tagu <code><ref></code>; citace bez názvu musí mít vlastní obsah', |
| 69 | + 'cite_error_references_invalid_input' => 'Chyba v tagu <code><references></code>; zde není dovolen vstup, použijte <code><references /></code>', |
| 70 | + 'cite_error_references_no_backlink_label' => "Došla označení zpětných odkazů, přidejte jich několik do zprávy „''cite_references_link_many_format_backlink_labels''“", |
| 71 | +); |
67 | 72 | |
68 | | - 'cite_error_' . CITE_ERROR_KEY_STR_INVALID => 'Vnitřní chyba; neplatný $str', |
69 | | - 'cite_error_' . CITE_ERROR_STACK_INVALID_INPUT => 'Vnitřní chyba; neplatný klíč zásobníku', |
70 | | - |
71 | | - # User errors |
72 | | - 'cite_error' => 'Chybná citace $1; $2', |
73 | | - |
74 | | - 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => 'Chyba v tagu <code><ref></code>; názvem nesmí být prosté číslo, použijte popisné označení', |
75 | | - 'cite_error_' . CITE_ERROR_REF_NO_KEY => 'Chyba v tagu <code><ref></code>; prázdné citace musí obsahovat název', |
76 | | - 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => 'Chyba v tagu <code><ref></code>; chybné názvy, např. je jich příliš mnoho', |
77 | | - 'cite_error_' . CITE_ERROR_REF_NO_INPUT => 'Chyba v tagu <code><ref></code>; citace bez názvu musí mít vlastní obsah', |
78 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_INPUT => 'Chyba v tagu <code><references></code>; zde není dovolen vstup, použijte <code><references /></code>', |
79 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Invalid <code><references></code> tag; no parameters are allowed, use <code><references /></code>', |
80 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "Došla označení zpětných odkazů, přidejte jich několik do zprávy „''cite_references_link_many_format_backlink_labels''“", |
| 73 | +/** German (Deutsch) */ |
| 74 | +$messages['de'] = array( |
| 75 | + 'cite_croak' => 'Fehler im Referenz-System. $1: $2', |
| 76 | + 'cite_error_key_str_invalid' => 'Interner Fehler: ungültiger $str', |
| 77 | + 'cite_error_stack_invalid_input' => 'Interner Fehler: ungültiger „name“-stack', |
| 78 | + 'cite_error' => 'Referenz-Fehler $1: $2', |
| 79 | + 'cite_error_ref_numeric_key' => 'Ungültige <code><nowiki><ref></nowiki></code>-Verwendung: „name“ darf kein reiner Zahlenwert sein, benutze einen beschreibenden Namen.', |
| 80 | + 'cite_error_ref_no_key' => 'Ungültige <code><nowiki><ref></nowiki></code>-Verwendung: „ref“ ohne Inhalt muss einen Namen haben.', |
| 81 | + 'cite_error_ref_too_many_keys' => 'Ungültige <code><nowiki><ref></nowiki></code>-Verwendung: „name“ ist ungültig oder zu lang.', |
| 82 | + 'cite_error_ref_no_input' => 'Ungültige <code><nowiki><ref></nowiki></code>-Verwendung: „ref“ ohne Namen muss einen Inhalt haben.', |
| 83 | + 'cite_error_references_invalid_input' => 'Ungültige <code><nowiki><references></nowiki></code>-Verwendung: Es ist kein zusätzlicher Text erlaubt, verwende ausschließlich <code><nowiki><references /></nowiki></code>.', |
| 84 | + 'cite_error_references_invalid_parameters' => 'Ungültige <code><nowiki><reference></nowiki></code>-Verwendung: Es sind keine zusätzlichen Parameter erlaubt, verwende ausschließlich <code><nowiki><reference /></nowiki></code>.', |
| 85 | + 'cite_error_references_no_backlink_label' => 'Eine Referenz der Form <code><nowiki><ref name="…"/></nowiki></code> wird öfter benutzt als Buchstaben vorhanden sind. Ein Administrator muss <nowiki>[[MediaWiki:cite references link many format backlink labels]]</nowiki> um weitere Buchstaben/Zeichen ergänzen.', |
| 86 | + 'cite_error_references_no_text' => 'Eine Referenz der Form <code><nowiki><ref name="…"/></nowiki></code> wird verwendet, ohne definiert worden zu sein.', |
81 | 87 | ); |
82 | 88 | |
83 | | -$wgCiteMessages['de'] = array( |
84 | | - # Internal errors |
85 | | - 'cite_croak' => 'Fehler im Referenz-System. $1: $2', |
86 | | - 'cite_error' => 'Referenz-Fehler $1: $2', |
87 | | - 'cite_error_' . CITE_ERROR_KEY_STR_INVALID => 'Interner Fehler: ungültiger $str', |
88 | | - 'cite_error_' . CITE_ERROR_STACK_INVALID_INPUT => 'Interner Fehler: ungültiger „name“-stack', |
89 | | - |
90 | | - # User errors |
91 | | - 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => 'Ungültige <code><nowiki><ref></nowiki></code>-Verwendung: „name“ darf kein ' . |
92 | | - 'reiner Zahlenwert sein, benutze einen beschreibenden Namen.', |
93 | | - 'cite_error_' . CITE_ERROR_REF_NO_KEY => 'Ungültige <code><nowiki><ref></nowiki></code>-Verwendung: „ref“ ohne Inhalt muss einen Namen haben.', |
94 | | - 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => 'Ungültige <code><nowiki><ref></nowiki></code>-Verwendung: „name“ ist ungültig oder zu lang.', |
95 | | - 'cite_error_' . CITE_ERROR_REF_NO_INPUT => 'Ungültige <code><nowiki><ref></nowiki></code>-Verwendung: „ref“ ohne Namen muss einen Inhalt haben.', |
96 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_INPUT => 'Ungültige <code><nowiki><references></nowiki></code>-Verwendung: Es ist kein zusätzlicher Text erlaubt, ' . |
97 | | - 'verwende ausschließlich <code><nowiki><references /></nowiki></code>.', |
98 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Ungültige <code><nowiki><reference></nowiki></code>-Verwendung: Es sind keine ' . |
99 | | - 'zusätzlichen Parameter erlaubt, ' . |
100 | | - 'verwende ausschließlich <code><nowiki><reference /></nowiki></code>.', |
101 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => 'Eine Referenz der Form <code><nowiki><ref name="…"/></nowiki></code> wird öfter ' . |
102 | | - 'benutzt als Buchstaben vorhanden sind. Ein Administrator muss <nowiki>[[MediaWiki:cite references link many format backlink labels]]</nowiki> um weitere Buchstaben/Zeichen ergänzen.', |
103 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_TEXT => 'Eine Referenz der Form <code><nowiki><ref name="…"/></nowiki></code> wird verwendet, ohne definiert worden zu sein.', |
| 89 | +/** French (Français) */ |
| 90 | +$messages['fr'] = array( |
| 91 | + 'cite_croak' => 'Citation corrompue ; $1 : $2', |
| 92 | + 'cite_error_key_str_invalid' => 'Erreur interne ; $str attendue', |
| 93 | + 'cite_error_stack_invalid_input' => 'Erreur interne ; clé de pile invalide', |
| 94 | + 'cite_error' => 'Erreur de citation $1 ; $2', |
| 95 | + 'cite_error_ref_numeric_key' => 'Appel invalide ; clé non-intégrale attendue', |
| 96 | + 'cite_error_ref_no_key' => 'Appel invalide ; aucune clé spécifiée', |
| 97 | + 'cite_error_ref_too_many_keys' => 'Appel invalide ; clés invalides, par exemple, trop de clés spécifiées ou clé erronée', |
| 98 | + 'cite_error_ref_no_input' => 'Appel invalide ; aucune entrée spécifiée', |
| 99 | + 'cite_error_references_invalid_input' => 'Entrée invalide ; entrée attendue', |
| 100 | + 'cite_error_references_invalid_parameters' => 'Arguments invalides ; argument attendu', |
| 101 | + 'cite_error_references_no_backlink_label' => 'Exécution hors des étiquettes personnalisées, définissez plus dans le message « cite_references_link_many_format_backlink_labels »', |
| 102 | + 'cite_error_references_no_text' => 'Aucun texte indiqué.', |
104 | 103 | ); |
105 | 104 | |
106 | | -$wgCiteMessages['fr'] = array( |
107 | | - # Internal errors |
108 | | - 'cite_croak' => 'Citation corrompue ; $1 : $2', |
109 | | - 'cite_error_' . CITE_ERROR_KEY_STR_INVALID => 'Erreur interne ; $str attendue', |
110 | | - 'cite_error_' . CITE_ERROR_STACK_INVALID_INPUT => 'Erreur interne ; clé de pile invalide', |
111 | | - |
112 | | - # User errors |
113 | | - 'cite_error' => 'Erreur de citation $1 ; $2', |
114 | | - 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => 'Appel invalide ; clé non-intégrale attendue', |
115 | | - 'cite_error_' . CITE_ERROR_REF_NO_KEY => 'Appel invalide ; aucune clé spécifiée', |
116 | | - 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => 'Appel invalide ; clés invalides, par exemple, trop de clés spécifiées ou clé erronée', |
117 | | - 'cite_error_' . CITE_ERROR_REF_NO_INPUT => 'Appel invalide ; aucune entrée spécifiée', |
118 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_INPUT => 'Entrée invalide ; entrée attendue', |
119 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Arguments invalides ; argument attendu', |
120 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "Exécution hors des étiquettes personnalisées, définissez plus dans le message « cite_references_link_many_format_backlink_labels »", |
121 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_TEXT => 'Aucun texte indiqué.', |
| 105 | +/** Hebrew (עברית) */ |
| 106 | +$messages['he'] = array( |
| 107 | + 'cite_croak' => 'בהערה יש שגיאה; $1: $2', |
| 108 | + 'cite_error_key_str_invalid' => 'שגיאה פנימית; $str שגוי', |
| 109 | + 'cite_error_stack_invalid_input' => 'שגיאה פנימית; מפתח שגוי בערימה', |
| 110 | + 'cite_error' => 'שגיאת ציטוט $1; $2', |
| 111 | + 'cite_error_ref_numeric_key' => 'תגית <code><ref></code> שגויה; שם לא יכול להיות מספר פשוט, יש להשתמש בכותרת תיאורית', |
| 112 | + 'cite_error_ref_no_key' => 'תגית <code><ref></code> שגויה; להערות שוליים ללא תוכן חייב להיות שם', |
| 113 | + 'cite_error_ref_too_many_keys' => 'תגית <code><ref></code> שגויה; שמות שגויים, למשל, רבים מדי', |
| 114 | + 'cite_error_ref_no_input' => 'תגית <code><ref></code> שגויה; להערות שוליים ללא שם חייב להיות תוכן', |
| 115 | + 'cite_error_references_invalid_input' => 'תגית <code><references></code> שגויה; לא ניתן לכתוב תוכן, יש להשתמש בקוד <code><references /></code>', |
| 116 | + 'cite_error_references_invalid_parameters' => 'תגית <code><references></code> שגויה; לא ניתן להשתמש בפרמטרים, יש להשתמש בקוד <code><references /></code>', |
| 117 | + 'cite_error_references_no_backlink_label' => "נגמרו תוויות הקישורים המותאמים אישית, אנא הגדירו נוספים בהודעת המערכת \"''cite_references_link_many_format_backlink_labels''\"", |
| 118 | + 'cite_error_references_no_text' => 'לא נכתב טקסט.', |
122 | 119 | ); |
123 | | -$wgCiteMessages['he'] = array( |
124 | | - /* |
125 | | - Debug and errors |
126 | | - */ |
127 | 120 | |
128 | | - # Internal errors |
129 | | - 'cite_croak' => 'בהערה יש שגיאה; $1: $2', |
130 | | - |
131 | | - 'cite_error_' . CITE_ERROR_KEY_STR_INVALID => 'שגיאה פנימית; $str שגוי', |
132 | | - 'cite_error_' . CITE_ERROR_STACK_INVALID_INPUT => 'שגיאה פנימית; מפתח שגוי בערימה', |
133 | | - |
134 | | - # User errors |
135 | | - 'cite_error' => 'שגיאת ציטוט $1; $2', |
136 | | - |
137 | | - 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => 'תגית <code><ref></code> שגויה; שם לא יכול להיות מספר פשוט, יש להשתמש בכותרת תיאורית', |
138 | | - 'cite_error_' . CITE_ERROR_REF_NO_KEY => 'תגית <code><ref></code> שגויה; להערות שוליים ללא תוכן חייב להיות שם', |
139 | | - 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => 'תגית <code><ref></code> שגויה; שמות שגויים, למשל, רבים מדי', |
140 | | - 'cite_error_' . CITE_ERROR_REF_NO_INPUT => 'תגית <code><ref></code> שגויה; להערות שוליים ללא שם חייב להיות תוכן', |
141 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_INPUT => 'תגית <code><references></code> שגויה; לא ניתן לכתוב תוכן, יש להשתמש בקוד <code><references /></code>', |
142 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'תגית <code><references></code> שגויה; לא ניתן להשתמש בפרמטרים, יש להשתמש בקוד <code><references /></code>', |
143 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "נגמרו תוויות הקישורים המותאמים אישית, אנא הגדירו נוספים בהודעת המערכת \"''cite_references_link_many_format_backlink_labels''\"", |
144 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_TEXT => 'לא נכתב טקסט.', |
| 121 | +/** Indonesian (Bahasa Indonesia) */ |
| 122 | +$messages['id'] = array( |
| 123 | + 'cite_croak' => 'Kegagalan pengutipan; $1: $2', |
| 124 | + 'cite_error_key_str_invalid' => 'Kesalahan internal; $str tak sah', |
| 125 | + 'cite_error_stack_invalid_input' => 'Kesalahan internal; kunci stack tak sah', |
| 126 | + 'cite_error' => 'Kesalahan pengutipan $1; $2', |
| 127 | + 'cite_error_ref_numeric_key' => 'Kesalahan pemanggilan; diharapkan suatu kunci non-integer', |
| 128 | + 'cite_error_ref_no_key' => 'Kesalahan pemanggilan; tidak ada kunci yang dispesifikasikan', |
| 129 | + 'cite_error_ref_too_many_keys' => 'Kesalahan pemanggilan; kunci tak sah, contohnya karena terlalu banyak atau tidak ada kunci yang dispesifikasikan', |
| 130 | + 'cite_error_ref_no_input' => 'Kesalahan pemanggilan; tidak ada masukan yang dispesifikasikan', |
| 131 | + 'cite_error_references_invalid_input' => 'Kesalahan masukan; seharusnya tidak ada', |
| 132 | + 'cite_error_references_invalid_parameters' => 'Paramater tak sah; seharusnya tidak ada', |
| 133 | + 'cite_error_references_no_backlink_label' => "Kehabisan label pralana balik, tambakan pada pesan sistem \"''cite_references_link_many_format_backlink_labels''\"", |
145 | 134 | ); |
146 | | -$wgCiteMessages['id'] = array( |
147 | | - # Internal errors |
148 | | - 'cite_croak' => 'Kegagalan pengutipan; $1: $2', |
149 | | - 'cite_error_' . CITE_ERROR_KEY_STR_INVALID => 'Kesalahan internal; $str tak sah', |
150 | | - 'cite_error_' . CITE_ERROR_STACK_INVALID_INPUT => 'Kesalahan internal; kunci stack tak sah', |
151 | 135 | |
152 | | - # User errors |
153 | | - 'cite_error' => 'Kesalahan pengutipan $1; $2', |
154 | | - 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => 'Kesalahan pemanggilan; diharapkan suatu kunci non-integer', |
155 | | - 'cite_error_' . CITE_ERROR_REF_NO_KEY => 'Kesalahan pemanggilan; tidak ada kunci yang dispesifikasikan', |
156 | | - 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => 'Kesalahan pemanggilan; kunci tak sah, contohnya karena terlalu banyak atau tidak ada kunci yang dispesifikasikan', |
157 | | - 'cite_error_' . CITE_ERROR_REF_NO_INPUT => 'Kesalahan pemanggilan; tidak ada masukan yang dispesifikasikan', |
158 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_INPUT => 'Kesalahan masukan; seharusnya tidak ada', |
159 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Paramater tak sah; seharusnya tidak ada', |
160 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "Kehabisan label pralana balik, tambakan pada pesan sistem \"''cite_references_link_many_format_backlink_labels''\"", |
| 136 | +/** Italian (Italiano) */ |
| 137 | +$messages['it'] = array( |
| 138 | + 'cite_croak' => 'Errore nella citazione: $1: $2', |
| 139 | + 'cite_error_key_str_invalid' => 'Errore interno: $str errato', |
| 140 | + 'cite_error_stack_invalid_input' => 'Errore interno: chiave di stack errata', |
| 141 | + 'cite_error' => 'Errore nella funzione Cite $1: $2', |
| 142 | + 'cite_error_ref_numeric_key' => "Errore nell'uso del marcatore <code><ref></code>: il nome non può essere un numero intero. Usare un titolo esteso", |
| 143 | + 'cite_error_ref_no_key' => "Errore nell'uso del marcatore <code><ref></code>: i ref vuoti non possono essere privi di nome", |
| 144 | + 'cite_error_ref_too_many_keys' => "Errore nell'uso del marcatore <code><ref></code>: nomi non validi (ad es. numero troppo elevato)", |
| 145 | + 'cite_error_ref_no_input' => "Errore nell'uso del marcatore <code><ref></code>: i ref privi di nome non possono essere vuoti", |
| 146 | + 'cite_error_references_invalid_input' => "Errore nell'uso del marcatoree <code><references></code>: input non ammesso, usare il marcatore |
| 147 | +<code><references /></code>", |
| 148 | + 'cite_error_references_invalid_parameters' => "Errore nell'uso del marcatore <code><references></code>: parametri non ammessi, usare il marcatore <code><references /></code>", |
| 149 | + 'cite_error_references_no_backlink_label' => "Etichette di rimando personalizzate esaurite, aumentarne il numero nel messaggio \"''cite_references_link_many_format_backlink_labels''\"", |
161 | 150 | ); |
162 | | -$wgCiteMessages['it'] = array( |
163 | 151 | |
164 | | - # Internal errors |
165 | | - 'cite_croak' => 'Errore nella citazione: $1: $2', |
166 | | - 'cite_error_' . CITE_ERROR_KEY_STR_INVALID => 'Errore interno: $str errato', |
167 | | - 'cite_error_' . CITE_ERROR_STACK_INVALID_INPUT => 'Errore interno: chiave di stack errata', |
168 | | - |
169 | | - # User errors |
170 | | - 'cite_error' => 'Errore nella funzione Cite $1: $2', |
171 | | - 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => 'Errore nell\'uso del marcatore <code><ref></code>: il nome non può essere un numero intero. Usare un titolo esteso', |
172 | | - 'cite_error_' . CITE_ERROR_REF_NO_KEY => 'Errore nell\'uso del marcatore <code><ref></code>: i ref vuoti non possono essere privi di nome', |
173 | | - 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => 'Errore nell\'uso del marcatore <code><ref></code>: nomi non validi (ad es. numero troppo elevato)', |
174 | | - 'cite_error_' . CITE_ERROR_REF_NO_INPUT => 'Errore nell\'uso del marcatore <code><ref></code>: i ref privi di nome non possono essere vuoti', |
175 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_INPUT => 'Errore nell\'uso del marcatoree <code><references></code>: input non ammesso, usare il marcatore |
176 | | -<code><references /></code>', |
177 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Errore nell\'uso del marcatore <code><references></code>: parametri non ammessi, usare il marcatore <code><references /></code>', |
178 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "Etichette di rimando personalizzate esaurite, aumentarne il numero nel messaggio \"''cite_references_link_many_format_backlink_labels''\"", |
179 | | - |
| 152 | +/** Japanese (日本語) */ |
| 153 | +$messages['ja'] = array( |
| 154 | + 'cite_croak' => '引用タグ機能の重大なエラー; $1: $2', |
| 155 | + 'cite_error_key_str_invalid' => '内部エラー; 無効な $str', |
| 156 | + 'cite_error_stack_invalid_input' => '内部エラー; 無効なスタックキー', |
| 157 | + 'cite_error' => '引用エラー $1; $2', |
| 158 | + 'cite_error_ref_numeric_key' => '無効な <code><ref></code> タグ: 名前に単純な数値は使用できません。', |
| 159 | + 'cite_error_ref_no_key' => '無効な <code><ref></code> タグ: 引用句の内容がない場合には名前 (<code>name</code> 属性)が必要です', |
| 160 | + 'cite_error_ref_too_many_keys' => '無効な <code><ref></code> タグ: 無効な名前(多すぎる、もしくは誤った指定)', |
| 161 | + 'cite_error_ref_no_input' => '無効な <code><ref></code> タグ: 名前 (<code>name</code> 属性)がない場合には引用句の内容が必要です', |
| 162 | + 'cite_error_references_invalid_input' => '無効な <code><references></code> タグ: 内容のあるタグは使用できません。 <code><references /></code> を用いてください。', |
| 163 | + 'cite_error_references_invalid_parameters' => '無効な <code><references></code> タグ: 引数のあるタグは使用できません。 <code><references /></code> を用いてください。', |
| 164 | + 'cite_error_references_no_backlink_label' => "バックリンクラベルが使用できる個数を超えました。\"''cite_references_link_many_format_backlink_labels''\" メッセージでの定義を増やしてください。", |
180 | 165 | ); |
181 | 166 | |
182 | | -$wgCiteMessages['ja'] = array( |
183 | | - |
184 | | - # Internal errors |
185 | | - 'cite_croak' => '引用タグ機能の重大なエラー; $1: $2', |
186 | | - |
187 | | - 'cite_error_' . CITE_ERROR_KEY_STR_INVALID => '内部エラー; 無効な $str', |
188 | | - 'cite_error_' . CITE_ERROR_STACK_INVALID_INPUT => '内部エラー; 無効なスタックキー', |
189 | | - |
190 | | - # User errors |
191 | | - 'cite_error' => '引用エラー $1; $2', |
192 | | - |
193 | | - 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => '無効な <code><ref></code> タグ: 名前に単純な数値は使用できません。', |
194 | | - 'cite_error_' . CITE_ERROR_REF_NO_KEY => '無効な <code><ref></code> タグ: 引用句の内容がない場合には名前 (<code>name</code> 属性)が必要です', |
195 | | - 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => '無効な <code><ref></code> タグ: 無効な名前(多すぎる、もしくは誤った指定)', |
196 | | - 'cite_error_' . CITE_ERROR_REF_NO_INPUT => '無効な <code><ref></code> タグ: 名前 (<code>name</code> 属性)がない場合には引用句の内容が必要です', |
197 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_INPUT => '無効な <code><references></code> タグ: 内容のあるタグは使用できません。 <code><references /></code> を用いてください。', |
198 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => '無効な <code><references></code> タグ: 引数のあるタグは使用できません。 <code><references /></code> を用いてください。', |
199 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "バックリンクラベルが使用できる個数を超えました。\"''cite_references_link_many_format_backlink_labels''\" メッセージでの定義を増やしてください。", |
| 167 | +/** Қазақша (Қазақстан) (Қазақша (Қазақстан)) */ |
| 168 | +$messages['kk-kz'] = array( |
| 169 | + 'cite_croak' => 'Дәйексөз алу сәтсіз бітті; $1: $2 ', |
| 170 | + 'cite_error_key_str_invalid' => 'Ішкі қате; жарамсыз $str ', |
| 171 | + 'cite_error_stack_invalid_input' => 'Ішкі қате; жарамсыз стек кілті', |
| 172 | + 'cite_error' => 'Дәйексөз алу $1 қатесі; $2', |
| 173 | + 'cite_error_ref_numeric_key' => 'Жарамсыз <code><ref></code> белгішесі; атау кәдімгі бүтін сан болуы мүмкін емес, сиппатауыш атау қолданыңыз', |
| 174 | + 'cite_error_ref_no_key' => 'Жарамсыз <code><ref></code> белгішесі; мағлұматсыз түсініктемелерде атау болуы қажет', |
| 175 | + 'cite_error_ref_too_many_keys' => 'Жарамсыз <code><ref></code> белгіше; жарамсыз атаулар, мысалы, тым көп', |
| 176 | + 'cite_error_ref_no_input' => 'Жарамсыз <code><ref></code> белгіше; атаусыз түсініктемелерде мағлұматы болуы қажет', |
| 177 | + 'cite_error_references_invalid_input' => 'Жарамсыз <code><references></code> белгіше; еш кіріс рұқсат етілмейді, былай <code><references /></code> қолданыңыз', |
| 178 | + 'cite_error_references_invalid_parameters' => 'Жарамсыз <code><references></code> белгіше; еш баптар рұқсат етілмейді, былай <code><references /></code> қолданыңыз', |
| 179 | + 'cite_error_references_no_backlink_label' => "Қосымша белгілердің саны бітті, одан әрі көбірек «''cite_references_link_many_format_backlink_labels''» жүйе хабарында белгілеңіз", |
200 | 180 | ); |
201 | 181 | |
202 | | -$wgCiteMessages['kk-kz'] = array( |
203 | | - /* |
204 | | - Debug and errors |
205 | | - */ |
206 | | - |
207 | | - # Internal errors |
208 | | - 'cite_croak' => 'Дәйексөз алу сәтсіз бітті; $1: $2 ', |
209 | | - |
210 | | - 'cite_error_' . CITE_ERROR_KEY_STR_INVALID => 'Ішкі қате; жарамсыз $str ', |
211 | | - 'cite_error_' . CITE_ERROR_STACK_INVALID_INPUT => 'Ішкі қате; жарамсыз стек кілті', |
212 | | - |
213 | | - # User errors |
214 | | - 'cite_error' => 'Дәйексөз алу $1 қатесі; $2', |
215 | | - |
216 | | - 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => 'Жарамсыз <code><ref></code> белгішесі; атау кәдімгі бүтін сан болуы мүмкін емес, сиппатауыш атау қолданыңыз', |
217 | | - 'cite_error_' . CITE_ERROR_REF_NO_KEY => 'Жарамсыз <code><ref></code> белгішесі; мағлұматсыз түсініктемелерде атау болуы қажет', |
218 | | - 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => 'Жарамсыз <code><ref></code> белгіше; жарамсыз атаулар, мысалы, тым көп', |
219 | | - 'cite_error_' . CITE_ERROR_REF_NO_INPUT => 'Жарамсыз <code><ref></code> белгіше; атаусыз түсініктемелерде мағлұматы болуы қажет', |
220 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_INPUT => 'Жарамсыз <code><references></code> белгіше; еш кіріс рұқсат етілмейді, былай <code><references /></code> қолданыңыз', |
221 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Жарамсыз <code><references></code> белгіше; еш баптар рұқсат етілмейді, былай <code><references /></code> қолданыңыз', |
222 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => 'Қосымша белгілердің саны бітті, одан әрі көбірек «\'\'cite_references_link_many_format_backlink_labels\'\'» жүйе хабарында белгілеңіз', |
| 182 | +/** Qazaqşa (Türkïya) (Qazaqşa (Türkïya)) */ |
| 183 | +$messages['kk-tr'] = array( |
| 184 | + 'cite_croak' => 'Däýeksöz alw sätsiz bitti; $1: $2 ', |
| 185 | + 'cite_error_key_str_invalid' => 'İşki qate; jaramsız $str ', |
| 186 | + 'cite_error_stack_invalid_input' => 'İşki qate; jaramsız stek kilti', |
| 187 | + 'cite_error' => 'Däýeksöz alw $1 qatesi; $2', |
| 188 | + 'cite_error_ref_numeric_key' => 'Jaramsız <code><ref></code> belgişesi; ataw kädimgi bütin san bolwı mümkin emes, sïppatawış ataw qoldanıñız', |
| 189 | + 'cite_error_ref_no_key' => 'Jaramsız <code><ref></code> belgişesi; mağlumatsız tüsiniktemelerde ataw bolwı qajet', |
| 190 | + 'cite_error_ref_too_many_keys' => 'Jaramsız <code><ref></code> belgişe; jaramsız atawlar, mısalı, tım köp', |
| 191 | + 'cite_error_ref_no_input' => 'Jaramsız <code><ref></code> belgişe; atawsız tüsiniktemelerde mağlumatı bolwı qajet', |
| 192 | + 'cite_error_references_invalid_input' => 'Jaramsız <code><references></code> belgişe; eş kiris ruqsat etilmeýdi, bılaý <code><references /></code> qoldanıñız', |
| 193 | + 'cite_error_references_invalid_parameters' => 'Jaramsız <code><references></code> belgişe; eş baptar ruqsat etilmeýdi, bılaý <code><references /></code> qoldanıñız', |
| 194 | + 'cite_error_references_no_backlink_label' => "Qosımşa belgilerdiñ sanı bitti, odan äri köbirek «''cite_references_link_many_format_backlink_labels''» jüýe xabarında belgileñiz", |
223 | 195 | ); |
224 | | -$wgCiteMessages['kk-tr'] = array( |
225 | | - /* |
226 | | - Debug and errors |
227 | | - */ |
228 | 196 | |
229 | | - # Internal errors |
230 | | - 'cite_croak' => 'Däýeksöz alw sätsiz bitti; $1: $2 ', |
231 | | - |
232 | | - 'cite_error_' . CITE_ERROR_KEY_STR_INVALID => 'İşki qate; jaramsız $str ', |
233 | | - 'cite_error_' . CITE_ERROR_STACK_INVALID_INPUT => 'İşki qate; jaramsız stek kilti', |
234 | | - |
235 | | - # User errors |
236 | | - 'cite_error' => 'Däýeksöz alw $1 qatesi; $2', |
237 | | - |
238 | | - 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => 'Jaramsız <code><ref></code> belgişesi; ataw kädimgi bütin san bolwı mümkin emes, sïppatawış ataw qoldanıñız', |
239 | | - 'cite_error_' . CITE_ERROR_REF_NO_KEY => 'Jaramsız <code><ref></code> belgişesi; mağlumatsız tüsiniktemelerde ataw bolwı qajet', |
240 | | - 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => 'Jaramsız <code><ref></code> belgişe; jaramsız atawlar, mısalı, tım köp', |
241 | | - 'cite_error_' . CITE_ERROR_REF_NO_INPUT => 'Jaramsız <code><ref></code> belgişe; atawsız tüsiniktemelerde mağlumatı bolwı qajet', |
242 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_INPUT => 'Jaramsız <code><references></code> belgişe; eş kiris ruqsat etilmeýdi, bılaý <code><references /></code> qoldanıñız', |
243 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Jaramsız <code><references></code> belgişe; eş baptar ruqsat etilmeýdi, bılaý <code><references /></code> qoldanıñız', |
244 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => 'Qosımşa belgilerdiñ sanı bitti, odan äri köbirek «\'\'cite_references_link_many_format_backlink_labels\'\'» jüýe xabarında belgileñiz', |
| 197 | +/** قازاقشا (جۇنگو) (قازاقشا (جۇنگو)) */ |
| 198 | +$messages['kk-cn'] = array( |
| 199 | + 'cite_croak' => 'دٵيەكسٶز الۋ سٵتسٸز بٸتتٸ; $1: $2 ', |
| 200 | + 'cite_error_key_str_invalid' => 'ٸشكٸ قاتە; جارامسىز $str ', |
| 201 | + 'cite_error_stack_invalid_input' => 'ٸشكٸ قاتە; جارامسىز ستەك كٸلتٸ', |
| 202 | + 'cite_error' => 'دٵيەكسٶز الۋ $1 قاتەسٸ; $2', |
| 203 | + 'cite_error_ref_numeric_key' => 'جارامسىز <code><ref></code> بەلگٸشەسٸ; اتاۋ كٵدٸمگٸ بٷتٸن سان بولۋى مٷمكٸن ەمەس, سيپپاتاۋىش اتاۋ قولدانىڭىز', |
| 204 | + 'cite_error_ref_no_key' => 'جارامسىز <code><ref></code> بەلگٸشەسٸ; ماعلۇماتسىز تٷسٸنٸكتەمەلەردە اتاۋ بولۋى قاجەت', |
| 205 | + 'cite_error_ref_too_many_keys' => 'جارامسىز <code><ref></code> بەلگٸشە; جارامسىز اتاۋلار, مىسالى, تىم كٶپ', |
| 206 | + 'cite_error_ref_no_input' => 'جارامسىز <code><ref></code> بەلگٸشە; اتاۋسىز تٷسٸنٸكتەمەلەردە ماعلۇماتى بولۋى قاجەت', |
| 207 | + 'cite_error_references_invalid_input' => 'جارامسىز <code><references></code> بەلگٸشە; ەش كٸرٸس رۇقسات ەتٸلمەيدٸ, بىلاي <code><references /></code> قولدانىڭىز', |
| 208 | + 'cite_error_references_invalid_parameters' => 'جارامسىز <code><references></code> بەلگٸشە; ەش باپتار رۇقسات ەتٸلمەيدٸ, بىلاي <code><references /></code> قولدانىڭىز', |
| 209 | + 'cite_error_references_no_backlink_label' => "قوسىمشا بەلگٸلەردٸڭ سانى بٸتتٸ, ودان ٵرٸ كٶبٸرەك «''cite_references_link_many_format_backlink_labels''» جٷيە حابارىندا بەلگٸلەڭٸز", |
245 | 210 | ); |
246 | | -$wgCiteMessages['kk-cn'] = array( |
247 | | - /* |
248 | | - Debug and errors |
249 | | - */ |
250 | 211 | |
251 | | - # Internal errors |
252 | | - 'cite_croak' => 'دٵيەكسٶز الۋ سٵتسٸز بٸتتٸ; $1: $2 ', |
| 212 | +$messages['kk'] = $messages['kk-kz']; |
253 | 213 | |
254 | | - 'cite_error_' . CITE_ERROR_KEY_STR_INVALID => 'ٸشكٸ قاتە; جارامسىز $str ', |
255 | | - 'cite_error_' . CITE_ERROR_STACK_INVALID_INPUT => 'ٸشكٸ قاتە; جارامسىز ستەك كٸلتٸ', |
256 | | - |
257 | | - # User errors |
258 | | - 'cite_error' => 'دٵيەكسٶز الۋ $1 قاتەسٸ; $2', |
259 | | - |
260 | | - 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => 'جارامسىز <code><ref></code> بەلگٸشەسٸ; اتاۋ كٵدٸمگٸ بٷتٸن سان بولۋى مٷمكٸن ەمەس, سيپپاتاۋىش اتاۋ قولدانىڭىز', |
261 | | - 'cite_error_' . CITE_ERROR_REF_NO_KEY => 'جارامسىز <code><ref></code> بەلگٸشەسٸ; ماعلۇماتسىز تٷسٸنٸكتەمەلەردە اتاۋ بولۋى قاجەت', |
262 | | - 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => 'جارامسىز <code><ref></code> بەلگٸشە; جارامسىز اتاۋلار, مىسالى, تىم كٶپ', |
263 | | - 'cite_error_' . CITE_ERROR_REF_NO_INPUT => 'جارامسىز <code><ref></code> بەلگٸشە; اتاۋسىز تٷسٸنٸكتەمەلەردە ماعلۇماتى بولۋى قاجەت', |
264 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_INPUT => 'جارامسىز <code><references></code> بەلگٸشە; ەش كٸرٸس رۇقسات ەتٸلمەيدٸ, بىلاي <code><references /></code> قولدانىڭىز', |
265 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'جارامسىز <code><references></code> بەلگٸشە; ەش باپتار رۇقسات ەتٸلمەيدٸ, بىلاي <code><references /></code> قولدانىڭىز', |
266 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => 'قوسىمشا بەلگٸلەردٸڭ سانى بٸتتٸ, ودان ٵرٸ كٶبٸرەك «\'\'cite_references_link_many_format_backlink_labels\'\'» جٷيە حابارىندا بەلگٸلەڭٸز', |
| 214 | +/** Lietuvių (Lietuvių) */ |
| 215 | +$messages['lt'] = array( |
| 216 | + 'cite_croak' => 'Cituoti nepavyko; $1: $2', |
| 217 | + 'cite_error_key_str_invalid' => 'Vidinė klaida; neleistinas $str', |
| 218 | + 'cite_error_stack_invalid_input' => 'Vidinė klaida; neleistinas steko raktas', |
| 219 | + 'cite_error' => 'Citavimo klaida $1; $2', |
| 220 | + 'cite_error_ref_numeric_key' => 'Neleistina <code><ref></code> gairė; vardas negali būti tiesiog skaičius, naudokite tekstinį pavadinimą', |
| 221 | + 'cite_error_ref_no_key' => 'Neleistina <code><ref></code> gairė; nuorodos be turinio turi turėti vardą', |
| 222 | + 'cite_error_ref_too_many_keys' => 'Neleistina <code><ref></code> gairė; neleistini vardai, pvz., per daug', |
| 223 | + 'cite_error_ref_no_input' => 'Neleistina <code><ref></code> gairė; nuorodos be vardo turi turėti turinį', |
| 224 | + 'cite_error_references_invalid_input' => 'Neleistina <code><references></code> gairė; neleistina jokia įvestis, naudokite <code><references /></code>', |
| 225 | + 'cite_error_references_invalid_parameters' => 'Neleistina <code><references></code> gairė; neleidžiami jokie parametrai, naudokite <code><references /></code>', |
| 226 | + 'cite_error_references_no_backlink_label' => "Baigėsi antraštės, nurodykite daugiau \"''cite_references_link_many_format_backlink_labels''\" sisteminiame tekste", |
267 | 227 | ); |
268 | | -$wgCiteMessages['kk'] = $wgCiteMessages['kk-kz']; |
269 | | -$wgCiteMessages['lt'] = array( |
270 | | - # Internal errors |
271 | | - 'cite_croak' => 'Cituoti nepavyko; $1: $2', |
272 | | - 'cite_error_' . CITE_ERROR_KEY_STR_INVALID => 'Vidinė klaida; neleistinas $str', |
273 | | - 'cite_error_' . CITE_ERROR_STACK_INVALID_INPUT => 'Vidinė klaida; neleistinas steko raktas', |
274 | 228 | |
275 | | - # User errors |
276 | | - 'cite_error' => 'Citavimo klaida $1; $2', |
277 | | - 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => 'Neleistina <code><ref></code> gairė; vardas negali būti tiesiog skaičius, naudokite tekstinį pavadinimą', |
278 | | - 'cite_error_' . CITE_ERROR_REF_NO_KEY => 'Neleistina <code><ref></code> gairė; nuorodos be turinio turi turėti vardą', |
279 | | - 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => 'Neleistina <code><ref></code> gairė; neleistini vardai, pvz., per daug', |
280 | | - 'cite_error_' . CITE_ERROR_REF_NO_INPUT => 'Neleistina <code><ref></code> gairė; nuorodos be vardo turi turėti turinį', |
281 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_INPUT => 'Neleistina <code><references></code> gairė; neleistina jokia įvestis, naudokite <code><references /></code>', |
282 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Neleistina <code><references></code> gairė; neleidžiami jokie parametrai, naudokite <code><references /></code>', |
283 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "Baigėsi antraštės, nurodykite daugiau \"''cite_references_link_many_format_backlink_labels''\" sisteminiame tekste", |
| 229 | +/** Dutch (Nederlands) */ |
| 230 | +$messages['nl'] = array( |
| 231 | + 'cite_croak' => 'Probleem met Cite; $1: $2', |
| 232 | + 'cite_error_key_str_invalid' => 'Interne fout; onjuiste $str', |
| 233 | + 'cite_error_stack_invalid_input' => 'Interne fout; onjuiste stacksleutel', |
| 234 | + 'cite_error' => 'Citefout $1; $2', |
| 235 | + 'cite_error_ref_numeric_key' => 'Onjuiste tag <code><ref></code>; de naam kan geen simplele integer zijn, gebruik een beschrijvende titel', |
| 236 | + 'cite_error_ref_no_key' => 'Onjuiste tag <code><ref></code>; refs zonder inhoud moeten een naam hebben', |
| 237 | + 'cite_error_ref_too_many_keys' => 'Onjuiste tag <code><ref></code>; onjuiste namen, bijvoorbeeld te veel', |
| 238 | + 'cite_error_ref_no_input' => 'Onjuiste tag <code><ref></code>; refs zonder naam moeten inhoud hebben', |
| 239 | + 'cite_error_references_invalid_input' => 'Onjuiste tag <code><references></code>; invoer is niet toegestaan, gebruik <code><references /></code>', |
| 240 | + 'cite_error_references_invalid_parameters' => 'Onjuiste tag <code><references></code>; parameters zijn niet toegestaan, gebruik <code><references /></code>', |
284 | 241 | ); |
285 | | -$wgCiteMessages['nl'] = array( |
286 | | - /* |
287 | | - Debug and errors |
288 | | - */ |
289 | 242 | |
290 | | - # Internal errors |
291 | | - 'cite_croak' => 'Probleem met Cite; $1: $2', |
292 | | - |
293 | | - 'cite_error_' . CITE_ERROR_KEY_STR_INVALID => 'Interne fout; onjuiste $str', |
294 | | - 'cite_error_' . CITE_ERROR_STACK_INVALID_INPUT => 'Interne fout; onjuiste stacksleutel', |
295 | | - |
296 | | - # User errors |
297 | | - 'cite_error' => 'Citefout $1; $2', |
298 | | - |
299 | | - 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => 'Onjuiste tag <code><ref></code>; de naam kan geen simplele integer zijn, gebruik een beschrijvende titel', |
300 | | - 'cite_error_' . CITE_ERROR_REF_NO_KEY => 'Onjuiste tag <code><ref></code>; refs zonder inhoud moeten een naam hebben', |
301 | | - 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => 'Onjuiste tag <code><ref></code>; onjuiste namen, bijvoorbeeld te veel', |
302 | | - 'cite_error_' . CITE_ERROR_REF_NO_INPUT => 'Onjuiste tag <code><ref></code>; refs zonder naam moeten inhoud hebben', |
303 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_INPUT => 'Onjuiste tag <code><references></code>; invoer is niet toegestaan, gebruik <code><references /></code>', |
304 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Onjuiste tag <code><references></code>; parameters zijn niet toegestaan, gebruik <code><references /></code>', |
305 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "Ran out of custom backlink labels, define more in the \"''cite_references_link_many_format_backlink_labels''\" message", |
306 | | -); |
307 | | -$wgCiteMessages['pt'] = array( |
308 | | - /* |
309 | | - Debug and errors |
310 | | - */ |
311 | | - |
312 | | - # Internal errors |
313 | | - 'cite_croak' => 'Citação com problemas; $1: $2', |
314 | | - |
315 | | - 'cite_error_' . CITE_ERROR_KEY_STR_INVALID => 'Erro interno; $str inválido', |
316 | | - 'cite_error_' . CITE_ERROR_STACK_INVALID_INPUT => 'Erro interno; chave fixa inválida', |
317 | | - |
318 | | - # User errors |
319 | | - 'cite_error' => 'Erro de citação $1; $2', |
320 | | - |
321 | | - 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => 'Código <code><ref></code> inválido; o nome não pode ser um número. Utilize um nome descritivo', |
322 | | - 'cite_error_' . CITE_ERROR_REF_NO_KEY => 'Código <code><ref></code> inválido; refs sem conteúdo devem ter um parâmetro de nome', |
323 | | - 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => 'Código <code><ref></code> inválido; nomes inválidos (por exemplo, nome muito extenso)', |
324 | | - 'cite_error_' . CITE_ERROR_REF_NO_INPUT => 'Código <code><ref></code> inválido; refs sem parâmetro de nome devem possuir conteúdo a elas associado', |
325 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_INPUT => 'Código <code><references></code> inválido; no input is allowed, use |
| 243 | +/** Portuguese (Português) */ |
| 244 | +$messages['pt'] = array( |
| 245 | + 'cite_croak' => 'Citação com problemas; $1: $2', |
| 246 | + 'cite_error_key_str_invalid' => 'Erro interno; $str inválido', |
| 247 | + 'cite_error_stack_invalid_input' => 'Erro interno; chave fixa inválida', |
| 248 | + 'cite_error' => 'Erro de citação $1; $2', |
| 249 | + 'cite_error_ref_numeric_key' => 'Código <code><ref></code> inválido; o nome não pode ser um número. Utilize um nome descritivo', |
| 250 | + 'cite_error_ref_no_key' => 'Código <code><ref></code> inválido; refs sem conteúdo devem ter um parâmetro de nome', |
| 251 | + 'cite_error_ref_too_many_keys' => 'Código <code><ref></code> inválido; nomes inválidos (por exemplo, nome muito extenso)', |
| 252 | + 'cite_error_ref_no_input' => 'Código <code><ref></code> inválido; refs sem parâmetro de nome devem possuir conteúdo a elas associado', |
| 253 | + 'cite_error_references_invalid_input' => 'Código <code><references></code> inválido; no input is allowed, use |
326 | 254 | <code><references /></code>', |
327 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Código <code><references></code> inválido; não são permitidos parâmetros. Utilize como <code><references /></code>', |
328 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "Ran out of custom backlink labels, define more in the \"''cite_references_link_many_format_backlink_labels''\" message", |
| 255 | + 'cite_error_references_invalid_parameters' => 'Código <code><references></code> inválido; não são permitidos parâmetros. Utilize como <code><references /></code>', |
329 | 256 | ); |
330 | | -$wgCiteMessages['ru'] = array( |
331 | | - /* |
332 | | - Debug and errors |
333 | | - */ |
334 | 257 | |
335 | | - # Internal errors |
336 | | - 'cite_croak' => 'Цитата сдохла; $1: $2', |
337 | | - |
338 | | - 'cite_error_' . CITE_ERROR_KEY_STR_INVALID => 'Внутренняя ошибка: неверный $str', |
339 | | - 'cite_error_' . CITE_ERROR_STACK_INVALID_INPUT => 'Внутренняя ошибка: неверный ключ стека ', |
340 | | - |
341 | | - # User errors |
342 | | - 'cite_error' => 'Ошибка цитирования $1; $2', |
343 | | - |
344 | | - 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => 'Неправильный вызов: ожидался нечисловой ключ', |
345 | | - 'cite_error_' . CITE_ERROR_REF_NO_KEY => 'Неправильный вызов: ключ не был указан', |
346 | | - 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => 'Неправильный вызов: неверные ключи, например было указано слишком много ключей или ключ был неправильным', |
347 | | - 'cite_error_' . CITE_ERROR_REF_NO_INPUT => 'Неверный вызов: нет входных данных', |
348 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_INPUT => 'Входные данные недействительны, так как не предполагаются', |
349 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Переданы недействительные параметры; их вообще не предусмотрено.', |
350 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => 'Не хватает символов для возвратных гиперссылок; следует расширить системную переменную «cite_references_link_many_format_backlink_labels».', |
351 | | - |
352 | | - /* |
353 | | - Output formatting |
354 | | - */ |
| 258 | +/** Russian (Русский) */ |
| 259 | +$messages['ru'] = array( |
| 260 | + 'cite_croak' => 'Цитата сдохла; $1: $2', |
| 261 | + 'cite_error_key_str_invalid' => 'Внутренняя ошибка: неверный $str', |
| 262 | + 'cite_error_stack_invalid_input' => 'Внутренняя ошибка: неверный ключ стека ', |
| 263 | + 'cite_error' => 'Ошибка цитирования $1; $2', |
| 264 | + 'cite_error_ref_numeric_key' => 'Неправильный вызов: ожидался нечисловой ключ', |
| 265 | + 'cite_error_ref_no_key' => 'Неправильный вызов: ключ не был указан', |
| 266 | + 'cite_error_ref_too_many_keys' => 'Неправильный вызов: неверные ключи, например было указано слишком много ключей или ключ был неправильным', |
| 267 | + 'cite_error_ref_no_input' => 'Неверный вызов: нет входных данных', |
| 268 | + 'cite_error_references_invalid_input' => 'Входные данные недействительны, так как не предполагаются', |
| 269 | + 'cite_error_references_invalid_parameters' => 'Переданы недействительные параметры; их вообще не предусмотрено.', |
| 270 | + 'cite_error_references_no_backlink_label' => 'Не хватает символов для возвратных гиперссылок; следует расширить системную переменную «cite_references_link_many_format_backlink_labels».', |
355 | 271 | 'cite_references_link_many_format_backlink_labels' => 'а б в г д е ё ж з и й к л м н о п р с т у ф х ц ч ш щ ъ ы ь э ю я', |
356 | 272 | ); |
357 | | -$wgCiteMessages['sk'] = array( |
358 | | - /* |
359 | | - Debug and errors |
360 | | - */ |
361 | 273 | |
362 | | - # Internal errors |
363 | | - 'cite_croak' => 'Citát je už neaktuálny; $1: $2', |
364 | | - |
365 | | - 'cite_error_' . CITE_ERROR_KEY_STR_INVALID => 'Vnútorná chyba; neplatný $str', |
366 | | - 'cite_error_' . CITE_ERROR_STACK_INVALID_INPUT => 'Vnútorná chyba; neplatný kľúč zásobníka', |
367 | | - |
368 | | - # User errors |
369 | | - 'cite_error' => 'Chyba citácie $1; $2', |
370 | | - |
371 | | - 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => 'Neplatné volanie; očakáva sa neceločíselný typ kľúča', |
372 | | - 'cite_error_' . CITE_ERROR_REF_NO_KEY => 'Neplatné volanie; nebol špecifikovaný kľúč', |
373 | | - 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => 'Neplatné volanie; neplatné kľúče, napr. príliš veľa alebo nesprávne špecifikovaný kľúč', |
374 | | - 'cite_error_' . CITE_ERROR_REF_NO_INPUT => 'Neplatné volanie; nebol špecifikovaný vstup', |
375 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_INPUT => 'Neplatné volanie; neočakával sa vstup', |
376 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Neplatné parametre; neočakávli sa žiadne', |
377 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "Minuli sa generované návestia spätných odkazov, definujte viac v správe \"''cite_references_link_many_format_backlink_labels''\"", |
| 274 | +/** Slovak (Slovenčina) */ |
| 275 | +$messages['sk'] = array( |
| 276 | + 'cite_croak' => 'Citát je už neaktuálny; $1: $2', |
| 277 | + 'cite_error_key_str_invalid' => 'Vnútorná chyba; neplatný $str', |
| 278 | + 'cite_error_stack_invalid_input' => 'Vnútorná chyba; neplatný kľúč zásobníka', |
| 279 | + 'cite_error' => 'Chyba citácie $1; $2', |
| 280 | + 'cite_error_ref_numeric_key' => 'Neplatné volanie; očakáva sa neceločíselný typ kľúča', |
| 281 | + 'cite_error_ref_no_key' => 'Neplatné volanie; nebol špecifikovaný kľúč', |
| 282 | + 'cite_error_ref_too_many_keys' => 'Neplatné volanie; neplatné kľúče, napr. príliš veľa alebo nesprávne špecifikovaný kľúč', |
| 283 | + 'cite_error_ref_no_input' => 'Neplatné volanie; nebol špecifikovaný vstup', |
| 284 | + 'cite_error_references_invalid_input' => 'Neplatné volanie; neočakával sa vstup', |
| 285 | + 'cite_error_references_invalid_parameters' => 'Neplatné parametre; neočakávli sa žiadne', |
| 286 | + 'cite_error_references_no_backlink_label' => "Minuli sa generované návestia spätných odkazov, definujte viac v správe \"''cite_references_link_many_format_backlink_labels''\"", |
378 | 287 | ); |
379 | | -$wgCiteMessages['yue'] = array( |
380 | | - /* |
381 | | - Debug and errors |
382 | | - */ |
383 | 288 | |
384 | | - # Internal errors |
385 | | - 'cite_croak' => '引用阻塞咗; $1: $2', |
386 | | - |
387 | | - 'cite_error_' . CITE_ERROR_KEY_STR_INVALID => '內部錯誤; 無效嘅 $str', |
388 | | - 'cite_error_' . CITE_ERROR_STACK_INVALID_INPUT => '內部錯誤; 無效嘅堆疊匙', |
389 | | - |
390 | | - # User errors |
391 | | - 'cite_error' => '引用錯誤 $1; $2', |
392 | | - |
393 | | - 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => '無效嘅呼叫; 需要一個非整數嘅匙', |
394 | | - 'cite_error_' . CITE_ERROR_REF_NO_KEY => '無效嘅呼叫; 未指定匙', |
395 | | - 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => '無效嘅呼叫; 無效嘅匙, 例如: 太多或者指定咗一個錯咗嘅匙', |
396 | | - 'cite_error_' . CITE_ERROR_REF_NO_INPUT => '無效嘅呼叫; 未指定輸入', |
397 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_INPUT => '無效嘅輸入; 唔需要有嘢', |
398 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => '無效嘅參數; 唔需要有嘢', |
399 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "用晒啲自定返回標籤, 響 \"''cite_references_link_many_format_backlink_labels''\" 信息再整多啲", |
| 289 | +/** Kantonese (粵語) */ |
| 290 | +$messages['yue'] = array( |
| 291 | + 'cite_croak' => '引用阻塞咗; $1: $2', |
| 292 | + 'cite_error_key_str_invalid' => '內部錯誤; 無效嘅 $str', |
| 293 | + 'cite_error_stack_invalid_input' => '內部錯誤; 無效嘅堆疊匙', |
| 294 | + 'cite_error' => '引用錯誤 $1; $2', |
| 295 | + 'cite_error_ref_numeric_key' => '無效嘅呼叫; 需要一個非整數嘅匙', |
| 296 | + 'cite_error_ref_no_key' => '無效嘅呼叫; 未指定匙', |
| 297 | + 'cite_error_ref_too_many_keys' => '無效嘅呼叫; 無效嘅匙, 例如: 太多或者指定咗一個錯咗嘅匙', |
| 298 | + 'cite_error_ref_no_input' => '無效嘅呼叫; 未指定輸入', |
| 299 | + 'cite_error_references_invalid_input' => '無效嘅輸入; 唔需要有嘢', |
| 300 | + 'cite_error_references_invalid_parameters' => '無效嘅參數; 唔需要有嘢', |
| 301 | + 'cite_error_references_no_backlink_label' => "用晒啲自定返回標籤, 響 \"''cite_references_link_many_format_backlink_labels''\" 信息再整多啲", |
400 | 302 | ); |
401 | | -$wgCiteMessages['zh-hans'] = array( |
402 | | - /* |
403 | | - Debug and errors |
404 | | - */ |
405 | 303 | |
406 | | - # Internal errors |
407 | | - 'cite_croak' => '引用阻塞; $1: $2', |
408 | | - |
409 | | - 'cite_error_' . CITE_ERROR_KEY_STR_INVALID => '内部错误;非法的 $str', |
410 | | - 'cite_error_' . CITE_ERROR_STACK_INVALID_INPUT => '内部错误;非法堆栈键值', |
411 | | - |
412 | | - # User errors |
413 | | - 'cite_error' => '引用错误 $1; $2', |
414 | | - |
415 | | - 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => '无效呼叫;需要一个非整数的键值', |
416 | | - 'cite_error_' . CITE_ERROR_REF_NO_KEY => '无效呼叫;没有指定键值', |
417 | | - 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => '无效呼叫;非法键值,例如:过多或错误的指定键值', |
418 | | - 'cite_error_' . CITE_ERROR_REF_NO_INPUT => '无效呼叫;没有指定的输入', |
419 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_INPUT => '无效输入;需求为空', |
420 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => '非法参数;需求为空', |
421 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "自定义后退标签已经用完了,现在可在标签 \"''cite_references_link_many_format_backlink_labels''\" 定义更多信息", |
| 304 | +/** Simplified Chinese (中文(简体)) */ |
| 305 | +$messages['zh-hans'] = array( |
| 306 | + 'cite_croak' => '引用阻塞; $1: $2', |
| 307 | + 'cite_error_key_str_invalid' => '内部错误;非法的 $str', |
| 308 | + 'cite_error_stack_invalid_input' => '内部错误;非法堆栈键值', |
| 309 | + 'cite_error' => '引用错误 $1; $2', |
| 310 | + 'cite_error_ref_numeric_key' => '无效呼叫;需要一个非整数的键值', |
| 311 | + 'cite_error_ref_no_key' => '无效呼叫;没有指定键值', |
| 312 | + 'cite_error_ref_too_many_keys' => '无效呼叫;非法键值,例如:过多或错误的指定键值', |
| 313 | + 'cite_error_ref_no_input' => '无效呼叫;没有指定的输入', |
| 314 | + 'cite_error_references_invalid_input' => '无效输入;需求为空', |
| 315 | + 'cite_error_references_invalid_parameters' => '非法参数;需求为空', |
| 316 | + 'cite_error_references_no_backlink_label' => "自定义后退标签已经用完了,现在可在标签 \"''cite_references_link_many_format_backlink_labels''\" 定义更多信息", |
422 | 317 | ); |
423 | | -$wgCiteMessages['zh-hant'] = array( |
424 | | - /* |
425 | | - Debug and errors |
426 | | - */ |
427 | 318 | |
428 | | - # Internal errors |
429 | | - 'cite_croak' => '引用阻塞; $1: $2', |
430 | | - |
431 | | - 'cite_error_' . CITE_ERROR_KEY_STR_INVALID => '內部錯誤;非法的 $str', |
432 | | - 'cite_error_' . CITE_ERROR_STACK_INVALID_INPUT => '內部錯誤;非法堆疊鍵值', |
433 | | - |
434 | | - # User errors |
435 | | - 'cite_error' => '引用錯誤 $1; $2', |
436 | | - |
437 | | - 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => '無效呼叫;需要一個非整數的鍵', |
438 | | - 'cite_error_' . CITE_ERROR_REF_NO_KEY => '無效呼叫;沒有指定鍵', |
439 | | - 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => '無效呼叫;非法鍵值,例如:過多或錯誤的指定鍵', |
440 | | - 'cite_error_' . CITE_ERROR_REF_NO_INPUT => '無效呼叫;沒有指定的輸入', |
441 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_INPUT => '無效輸入;需求為空', |
442 | | - 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => '非法參數;需求為空', |
443 | | - 'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "自訂後退標籤已經用完了,現在可在標籤 \"''cite_references_link_many_format_backlink_labels''\" 定義更多信息", |
| 319 | +/** Traditional Chinese (中文(繁體)) */ |
| 320 | +$messages['zh-hant'] = array( |
| 321 | + 'cite_croak' => '引用阻塞; $1: $2', |
| 322 | + 'cite_error_key_str_invalid' => '內部錯誤;非法的 $str', |
| 323 | + 'cite_error_stack_invalid_input' => '內部錯誤;非法堆疊鍵值', |
| 324 | + 'cite_error' => '引用錯誤 $1; $2', |
| 325 | + 'cite_error_ref_numeric_key' => '無效呼叫;需要一個非整數的鍵', |
| 326 | + 'cite_error_ref_no_key' => '無效呼叫;沒有指定鍵', |
| 327 | + 'cite_error_ref_too_many_keys' => '無效呼叫;非法鍵值,例如:過多或錯誤的指定鍵', |
| 328 | + 'cite_error_ref_no_input' => '無效呼叫;沒有指定的輸入', |
| 329 | + 'cite_error_references_invalid_input' => '無效輸入;需求為空', |
| 330 | + 'cite_error_references_invalid_parameters' => '非法參數;需求為空', |
| 331 | + 'cite_error_references_no_backlink_label' => "自訂後退標籤已經用完了,現在可在標籤 \"''cite_references_link_many_format_backlink_labels''\" 定義更多信息", |
444 | 332 | ); |
445 | | -$wgCiteMessages['zh'] = $wgCiteMessages['zh-hans']; |
446 | | -$wgCiteMessages['zh-cn'] = $wgCiteMessages['zh-hans']; |
447 | | -$wgCiteMessages['zh-hk'] = $wgCiteMessages['zh-hant']; |
448 | | -$wgCiteMessages['zh-sg'] = $wgCiteMessages['zh-hans']; |
449 | | -$wgCiteMessages['zh-tw'] = $wgCiteMessages['zh-hant']; |
450 | | -$wgCiteMessages['zh-yue'] = $wgCiteMessages['yue']; |
| 333 | + |
| 334 | +$messages['zh'] = $messages['zh-hans']; |
| 335 | +$messages['zh-cn'] = $messages['zh-hans']; |
| 336 | +$messages['zh-hk'] = $messages['zh-hant']; |
| 337 | +$messages['zh-sg'] = $messages['zh-hans']; |
| 338 | +$messages['zh-tw'] = $messages['zh-hant']; |
| 339 | +$messages['zh-yue'] = $messages['yue']; |
Index: trunk/extensions/Cite/citeParserTests.txt |
— | — | @@ -207,18 +207,19 @@ |
208 | 208 | |
209 | 209 | <references /> |
210 | 210 | !! result |
211 | | -<p><strong class="error">Cite error 1; Invalid <code><ref></code> tag; name cannot be a simple integer, use a descriptive title</strong> |
| 211 | +<p><strong class="error">Cite error: Invalid <code><ref></code> tag; name cannot be a simple integer, use a descriptive title</strong> |
212 | 212 | </p><p><sup id="_ref-0" class="reference"><a href="#_note-0" title="">[1]</a></sup> |
213 | | -</p><p><strong class="error">Cite error 2; Invalid <code><ref></code> tag; refs with no content must have a name</strong> |
| 213 | +</p><p><strong class="error">Cite error: Invalid <code><ref></code> tag; refs with no content must have a name</strong> |
214 | 214 | </p><p><sup id="_ref-bar_0" class="reference"><a href="#_note-bar" title="">[2]</a></sup> |
215 | 215 | </p><p><sup id="_ref-blankwithnoreference_0" class="reference"><a href="#_note-blankwithnoreference" title="">[3]</a></sup> |
216 | | -</p><p><strong class="error">Cite error 5; Invalid <code><references></code> tag; no input is allowed, use |
| 216 | +</p><p><strong class="error">Cite error: Invalid <code><references></code> tag; no input is allowed, use |
217 | 217 | <code><references /></code></strong> |
218 | | -</p><p><strong class="error">Cite error 6; Invalid <code><references></code> tag; no parameters are allowed, use <code><references /></code></strong> |
| 218 | +</p><p><strong class="error">Cite error: Invalid <code><references></code> tag; no parameters are allowed, use <code><references /></code></strong> |
219 | 219 | </p> |
220 | 220 | <ol class="references"><li id="_note-0"><a href="#_ref-0" title="">↑</a> Also zero, but differently! (Normal ref)</li> |
221 | | -<li id="_note-bar"><a href="#_ref-bar_0" title="">↑</a> <strong class="error">Cite error 8; No text given.</strong></li> |
222 | | -<li id="_note-blankwithnoreference"><a href="#_ref-blankwithnoreference_0" title="">↑</a> <strong class="error">Cite error 8; No text given.</strong></li></ol> |
| 221 | +<li id="_note-bar"><a href="#_ref-bar_0" title="">↑</a> <strong class="error">Cite error: No text given.</strong></li> |
| 222 | +<li id="_note-blankwithnoreference"><a href="#_ref-blankwithnoreference_0" title="">↑</a> <strong class="error">Cite error: No text given.</strong></li></ol> |
223 | 223 | |
224 | 224 | !! end |
225 | 225 | |
| 226 | + |
Index: trunk/extensions/Cite/Cite.php |
— | — | @@ -26,44 +26,11 @@ |
27 | 27 | 'url' => 'http://www.mediawiki.org/wiki/Extension:Cite/Cite.php' |
28 | 28 | ); |
29 | 29 | $wgParserTestFiles[] = dirname( __FILE__ ) . "/citeParserTests.txt"; |
| 30 | +$wgExtensionMessagesFiles['Cite'] = dirname( __FILE__ ) . "/Cite.i18n.php"; |
30 | 31 | |
31 | | -/** |
32 | | - * Error codes, first array = internal errors; second array = user errors |
33 | | - */ |
34 | | -$wgCiteErrors = array( |
35 | | - 'system' => array( |
36 | | - 'CITE_ERROR_KEY_STR_INVALID', |
37 | | - 'CITE_ERROR_STACK_INVALID_INPUT' |
38 | | - ), |
39 | | - 'user' => array( |
40 | | - 'CITE_ERROR_REF_NUMERIC_KEY', |
41 | | - 'CITE_ERROR_REF_NO_KEY', |
42 | | - 'CITE_ERROR_REF_TOO_MANY_KEYS', |
43 | | - 'CITE_ERROR_REF_NO_INPUT', |
44 | | - 'CITE_ERROR_REFERENCES_INVALID_INPUT', |
45 | | - 'CITE_ERROR_REFERENCES_INVALID_PARAMETERS', |
46 | | - 'CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL', |
47 | | - 'CITE_ERROR_REFERENCES_NO_TEXT' |
48 | | - ) |
49 | | -); |
50 | | - |
51 | | -for ( $i = 0; $i < count( $wgCiteErrors['system'] ); ++$i ) |
52 | | - // System errors are negative integers |
53 | | - define( $wgCiteErrors['system'][$i], -($i + 1) ); |
54 | | -for ( $i = 0; $i < count( $wgCiteErrors['user'] ); ++$i ) |
55 | | - // User errors are positive integers |
56 | | - define( $wgCiteErrors['user'][$i], $i + 1 ); |
57 | | - |
58 | | -# Internationalisation file |
59 | | -require_once( dirname(__FILE__) . '/Cite.i18n.php' ); |
60 | | - |
61 | 32 | function wfCite() { |
62 | | - # Add messages |
63 | | - global $wgMessageCache, $wgCiteMessages; |
64 | | - foreach( $wgCiteMessages as $key => $value ) { |
65 | | - $wgMessageCache->addMessages( $wgCiteMessages[$key], $key ); |
66 | | - } |
67 | | - |
| 33 | + wfLoadExtensionMessages( 'Cite' ); |
| 34 | + |
68 | 35 | class Cite { |
69 | 36 | /**#@+ |
70 | 37 | * @access private |
— | — | @@ -179,17 +146,17 @@ |
180 | 147 | # <ref ...></ref>. This construct is always invalid: either |
181 | 148 | # it's a contentful ref, or it's a named duplicate and should |
182 | 149 | # be <ref ... />. |
183 | | - return $this->error( CITE_ERROR_REF_NO_INPUT ); |
| 150 | + return $this->error( 'cite_error_ref_no_input' ); |
184 | 151 | } |
185 | 152 | |
186 | 153 | if( $key === false ) { |
187 | 154 | # TODO: Comment this case; what does this condition mean? |
188 | | - return $this->error( CITE_ERROR_REF_TOO_MANY_KEYS ); |
| 155 | + return $this->error( 'cite_error_ref_too_many_keys' ); |
189 | 156 | } |
190 | 157 | |
191 | 158 | if( $str === null and $key === null ) { |
192 | 159 | # Something like <ref />; this makes no sense. |
193 | | - return $this->error( CITE_ERROR_REF_NO_KEY ); |
| 160 | + return $this->error( 'cite_error_ref_no_key' ); |
194 | 161 | } |
195 | 162 | |
196 | 163 | if( preg_match( '/[0-9]+/', $key ) ) { |
— | — | @@ -197,7 +164,7 @@ |
198 | 165 | # cing duplicate id's in the XHTML. The Right Thing To Do |
199 | 166 | # would be to mangle them, but it's not really high-priority |
200 | 167 | # (and would produce weird id's anyway). |
201 | | - return $this->error( CITE_ERROR_REF_NUMERIC_KEY ); |
| 168 | + return $this->error( 'cite_error_ref_numeric_key' ); |
202 | 169 | } |
203 | 170 | |
204 | 171 | if( is_string( $key ) or is_string( $str ) ) { |
— | — | @@ -211,7 +178,7 @@ |
212 | 179 | |
213 | 180 | # Not clear how we could get here, but something is probably |
214 | 181 | # wrong with the types. Let's fail fast. |
215 | | - $this->croak( CITE_ERROR_KEY_STR_INVALID, serialize( "$str; $key" ) ); |
| 182 | + $this->croak( 'cite_error_key_str_invalid', serialize( "$str; $key" ) ); |
216 | 183 | } |
217 | 184 | |
218 | 185 | /** |
— | — | @@ -224,7 +191,6 @@ |
225 | 192 | * input and null on no input |
226 | 193 | */ |
227 | 194 | function refArg( $argv ) { |
228 | | - |
229 | 195 | $cnt = count( $argv ); |
230 | 196 | |
231 | 197 | if ( $cnt > 1 ) |
— | — | @@ -308,7 +274,7 @@ |
309 | 275 | $this->mRefs[$key]['number'] |
310 | 276 | ); } |
311 | 277 | else |
312 | | - $this->croak( CITE_ERROR_STACK_INVALID_INPUT, serialize( array( $key, $str ) ) ); |
| 278 | + $this->croak( 'cite_error_stack_invalid_input', serialize( array( $key, $str ) ) ); |
313 | 279 | } |
314 | 280 | |
315 | 281 | /** |
— | — | @@ -336,9 +302,9 @@ |
337 | 303 | function guardedReferences( $str, $argv, $parser ) { |
338 | 304 | $this->mParser = $parser; |
339 | 305 | if ( $str !== null ) |
340 | | - return $this->error( CITE_ERROR_REFERENCES_INVALID_INPUT ); |
| 306 | + return $this->error( 'cite_error_references_invalid_input' ); |
341 | 307 | else if ( count( $argv ) ) |
342 | | - return $this->error( CITE_ERROR_REFERENCES_INVALID_PARAMETERS ); |
| 308 | + return $this->error( 'cite_error_references_invalid_parameters' ); |
343 | 309 | else |
344 | 310 | return $this->referencesFormat(); |
345 | 311 | } |
— | — | @@ -387,7 +353,7 @@ |
388 | 354 | 'cite_references_link_one', |
389 | 355 | $this->referencesKey( $key ), |
390 | 356 | $this->refKey( $key, $val['count'] ), |
391 | | - $this->error(CITE_ERROR_REFERENCES_NO_TEXT) |
| 357 | + $this->error( 'cite_error_references_no_text' ) |
392 | 358 | ); |
393 | 359 | // Standalone named reference, I want to format this like an |
394 | 360 | // anonymous reference because displaying "1. 1.1 Ref text" is |
— | — | @@ -399,7 +365,7 @@ |
400 | 366 | 'cite_references_link_one', |
401 | 367 | $this->referencesKey( $key ), |
402 | 368 | $this->refKey( $key, $val['count'] ), |
403 | | - ( $val['text'] != '' ? $val['text'] : $this->error( CITE_ERROR_REFERENCES_NO_TEXT ) ) |
| 369 | + ( $val['text'] != '' ? $val['text'] : $this->error( 'cite_error_references_no_text' ) ) |
404 | 370 | ); |
405 | 371 | // Named references with >1 occurrences |
406 | 372 | else { |
— | — | @@ -420,7 +386,7 @@ |
421 | 387 | wfMsgForContentNoTrans( 'cite_references_link_many', |
422 | 388 | $this->referencesKey( $key ), |
423 | 389 | $list, |
424 | | - ( $val['text'] != '' ? $val['text'] : $this->error( CITE_ERROR_REFERENCES_NO_TEXT ) ) |
| 390 | + ( $val['text'] != '' ? $val['text'] : $this->error( 'cite_error_references_no_text' ) ) |
425 | 391 | ); |
426 | 392 | } |
427 | 393 | } |
— | — | @@ -464,7 +430,7 @@ |
465 | 431 | return $this->mBacklinkLabels[$offset]; |
466 | 432 | } else { |
467 | 433 | // Feed me! |
468 | | - return $this->error( CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL ); |
| 434 | + return $this->error( 'cite_error_references_no_backlink_label' ); |
469 | 435 | } |
470 | 436 | } |
471 | 437 | |
— | — | @@ -653,20 +619,16 @@ |
654 | 620 | /** |
655 | 621 | * Return an error message based on an error ID |
656 | 622 | * |
657 | | - * @param int $id ID for the error |
| 623 | + * @param string $key Message name for the error |
658 | 624 | * @return string XHTML ready for output |
659 | 625 | */ |
660 | | - function error( $id ) { |
661 | | - if ( $id > 0 ) |
662 | | - // User errors are positive |
663 | | - return |
664 | | - $this->parse( |
665 | | - '<strong class="error">' . |
666 | | - wfMsg( 'cite_error', $id, wfMsg( "cite_error_$id" ) ) . |
667 | | - '</strong>' |
668 | | - ); |
669 | | - else if ( $id < 0 ) |
670 | | - return wfMsg( 'cite_error', $id ); |
| 626 | + function error( $key ) { |
| 627 | + return |
| 628 | + $this->parse( |
| 629 | + '<strong class="error">' . |
| 630 | + wfMsg( 'cite_error', wfMsg( $key ) ) . |
| 631 | + '</strong>' |
| 632 | + ); |
671 | 633 | } |
672 | 634 | |
673 | 635 | /** |
— | — | @@ -688,3 +650,4 @@ |
689 | 651 | |
690 | 652 | /**#@-*/ |
691 | 653 | |
| 654 | + |