Index: Cite.i18n.php
===================================================================
--- Cite.i18n.php (revision 28557)
+++ Cite.i18n.php (working copy)
@@ -5,31 +5,29 @@
* @addtogroup Extensions
*/
-$wgCiteMessages = array();
+$messages = array();
-$wgCiteMessages['en'] = array(
+$messages['en'] = array(
/*
Debug and errors
*/
# Internal errors
- 'cite_croak' => 'Cite croaked; $1: $2',
+ 'cite_croak' => 'Cite croaked; $1: $2',
+ 'cite_error_key_str_invalid' => 'Internal error; invalid $str and/or $key. This should never occur.',
+ 'cite_error_stack_invalid_input' => 'Internal error; invalid stack key. This should never occur.',
- 'cite_error_' . CITE_ERROR_KEY_STR_INVALID => 'Internal error; invalid $str and/or $key. This should never occur.',
- 'cite_error_' . CITE_ERROR_STACK_INVALID_INPUT => 'Internal error; invalid stack key. This should never occur.',
-
# User errors
- 'cite_error' => 'Cite error $1; $2',
-
- 'cite_error_' . CITE_ERROR_REF_NUMERIC_KEY => 'Invalid <ref> tag; name cannot be a simple integer, use a descriptive title',
- 'cite_error_' . CITE_ERROR_REF_NO_KEY => 'Invalid <ref> tag; refs with no content must have a name',
- 'cite_error_' . CITE_ERROR_REF_TOO_MANY_KEYS => 'Invalid <ref> tag; invalid names, e.g. too many',
- 'cite_error_' . CITE_ERROR_REF_NO_INPUT => 'Invalid <ref> tag; refs with no name must have content',
- 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_INPUT => 'Invalid <references> tag; no input is allowed, use
+ 'cite_error' => 'Cite error: $1',
+ 'cite_error_ref_numeric_key' => 'Invalid <ref> tag; name cannot be a simple integer, use a descriptive title',
+ 'cite_error_ref_no_key' => 'Invalid <ref> tag; refs with no content must have a name',
+ 'cite_error_ref_too_many_keys' => 'Invalid <ref> tag; invalid names, e.g. too many',
+ 'cite_error_ref_no_input' => 'Invalid <ref> tag; refs with no name must have content',
+ 'cite_error_references_invalid_input' => 'Invalid <references> tag; no input is allowed, use
<references />',
- 'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Invalid <references> tag; no parameters are allowed, use <references />',
- '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",
- 'cite_error_' . CITE_ERROR_REFERENCES_NO_TEXT => 'No text given.',
+ 'cite_error_references_invalid_parameters' => 'Invalid <references> tag; no parameters are allowed, use <references />',
+ 'cite_error_references_no_backlink_label' => "Ran out of custom backlink labels, define more in the \"''cite_references_link_many_format_backlink_labels''\" message",
+ 'cite_error_references_no_text' => 'No text given.',
/*
Output formatting
@@ -56,7 +54,7 @@
'cite_references_prefix' => '
wird verwendet, ohne definiert worden zu sein.',
);
-$wgCiteMessages['fr'] = array(
+$messages['fr'] = array(
# Internal errors
'cite_croak' => 'Citation corrompue ; $1 : $2',
'cite_error_' . CITE_ERROR_KEY_STR_INVALID => 'Erreur interne ; $str attendue',
@@ -119,7 +117,7 @@
'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 »",
'cite_error_' . CITE_ERROR_REFERENCES_NO_TEXT => 'Aucun texte indiqué.',
);
-$wgCiteMessages['he'] = array(
+$messages['he'] = array(
/*
Debug and errors
*/
@@ -142,7 +140,7 @@
'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "נגמרו תוויות הקישורים המותאמים אישית, אנא הגדירו נוספים בהודעת המערכת \"''cite_references_link_many_format_backlink_labels''\"",
'cite_error_' . CITE_ERROR_REFERENCES_NO_TEXT => 'לא נכתב טקסט.',
);
-$wgCiteMessages['id'] = array(
+$messages['id'] = array(
# Internal errors
'cite_croak' => 'Kegagalan pengutipan; $1: $2',
'cite_error_' . CITE_ERROR_KEY_STR_INVALID => 'Kesalahan internal; $str tak sah',
@@ -158,7 +156,7 @@
'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Paramater tak sah; seharusnya tidak ada',
'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "Kehabisan label pralana balik, tambakan pada pesan sistem \"''cite_references_link_many_format_backlink_labels''\"",
);
-$wgCiteMessages['it'] = array(
+$messages['it'] = array(
# Internal errors
'cite_croak' => 'Errore nella citazione: $1: $2',
@@ -178,7 +176,7 @@
);
-$wgCiteMessages['ja'] = array(
+$messages['ja'] = array(
# Internal errors
'cite_croak' => '引用タグ機能の重大なエラー; $1: $2',
@@ -198,7 +196,7 @@
'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "バックリンクラベルが使用できる個数を超えました。\"''cite_references_link_many_format_backlink_labels''\" メッセージでの定義を増やしてください。",
);
-$wgCiteMessages['kk-kz'] = array(
+$messages['kk-kz'] = array(
/*
Debug and errors
*/
@@ -220,7 +218,7 @@
'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Жарамсыз <references> белгіше; еш баптар рұқсат етілмейді, былай <references /> қолданыңыз',
'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => 'Қосымша белгілердің саны бітті, одан әрі көбірек «\'\'cite_references_link_many_format_backlink_labels\'\'» жүйе хабарында белгілеңіз',
);
-$wgCiteMessages['kk-tr'] = array(
+$messages['kk-tr'] = array(
/*
Debug and errors
*/
@@ -242,7 +240,7 @@
'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Jaramsız <references> belgişe; eş baptar ruqsat etilmeýdi, bılaý <references /> qoldanıñız',
'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',
);
-$wgCiteMessages['kk-cn'] = array(
+$messages['kk-cn'] = array(
/*
Debug and errors
*/
@@ -264,8 +262,8 @@
'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'جارامسىز <references> بەلگٸشە; ەش باپتار رۇقسات ەتٸلمەيدٸ, بىلاي <references /> قولدانىڭىز',
'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => 'قوسىمشا بەلگٸلەردٸڭ سانى بٸتتٸ, ودان ٵرٸ كٶبٸرەك «\'\'cite_references_link_many_format_backlink_labels\'\'» جٷيە حابارىندا بەلگٸلەڭٸز',
);
-$wgCiteMessages['kk'] = $wgCiteMessages['kk-kz'];
-$wgCiteMessages['lt'] = array(
+$messages['kk'] = $messages['kk-kz'];
+$messages['lt'] = array(
# Internal errors
'cite_croak' => 'Cituoti nepavyko; $1: $2',
'cite_error_' . CITE_ERROR_KEY_STR_INVALID => 'Vidinė klaida; neleistinas $str',
@@ -281,7 +279,7 @@
'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Neleistina <references> gairė; neleidžiami jokie parametrai, naudokite <references />',
'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "Baigėsi antraštės, nurodykite daugiau \"''cite_references_link_many_format_backlink_labels''\" sisteminiame tekste",
);
-$wgCiteMessages['nl'] = array(
+$messages['nl'] = array(
/*
Debug and errors
*/
@@ -303,7 +301,7 @@
'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Onjuiste tag <references>; parameters zijn niet toegestaan, gebruik <references />',
'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",
);
-$wgCiteMessages['pt'] = array(
+$messages['pt'] = array(
/*
Debug and errors
*/
@@ -326,7 +324,7 @@
'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Código <references> inválido; não são permitidos parâmetros. Utilize como <references />',
'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",
);
-$wgCiteMessages['ru'] = array(
+$messages['ru'] = array(
/*
Debug and errors
*/
@@ -353,7 +351,7 @@
*/
'cite_references_link_many_format_backlink_labels' => 'а б в г д е ё ж з и й к л м н о п р с т у ф х ц ч ш щ ъ ы ь э ю я',
);
-$wgCiteMessages['sk'] = array(
+$messages['sk'] = array(
/*
Debug and errors
*/
@@ -375,7 +373,7 @@
'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => 'Neplatné parametre; neočakávli sa žiadne',
'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''\"",
);
-$wgCiteMessages['yue'] = array(
+$messages['yue'] = array(
/*
Debug and errors
*/
@@ -397,7 +395,7 @@
'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => '無效嘅參數; 唔需要有嘢',
'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "用晒啲自定返回標籤, 響 \"''cite_references_link_many_format_backlink_labels''\" 信息再整多啲",
);
-$wgCiteMessages['zh-hans'] = array(
+$messages['zh-hans'] = array(
/*
Debug and errors
*/
@@ -419,7 +417,7 @@
'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => '非法参数;需求为空',
'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "自定义后退标签已经用完了,现在可在标签 \"''cite_references_link_many_format_backlink_labels''\" 定义更多信息",
);
-$wgCiteMessages['zh-hant'] = array(
+$messages['zh-hant'] = array(
/*
Debug and errors
*/
@@ -441,9 +439,9 @@
'cite_error_' . CITE_ERROR_REFERENCES_INVALID_PARAMETERS => '非法參數;需求為空',
'cite_error_' . CITE_ERROR_REFERENCES_NO_BACKLINK_LABEL => "自訂後退標籤已經用完了,現在可在標籤 \"''cite_references_link_many_format_backlink_labels''\" 定義更多信息",
);
-$wgCiteMessages['zh'] = $wgCiteMessages['zh-hans'];
-$wgCiteMessages['zh-cn'] = $wgCiteMessages['zh-hans'];
-$wgCiteMessages['zh-hk'] = $wgCiteMessages['zh-hant'];
-$wgCiteMessages['zh-sg'] = $wgCiteMessages['zh-hans'];
-$wgCiteMessages['zh-tw'] = $wgCiteMessages['zh-hant'];
-$wgCiteMessages['zh-yue'] = $wgCiteMessages['yue'];
+$messages['zh'] = $messages['zh-hans'];
+$messages['zh-cn'] = $messages['zh-hans'];
+$messages['zh-hk'] = $messages['zh-hant'];
+$messages['zh-sg'] = $messages['zh-hans'];
+$messages['zh-tw'] = $messages['zh-hant'];
+$messages['zh-yue'] = $messages['yue'];
Index: citeParserTests.txt
===================================================================
--- citeParserTests.txt (revision 28557)
+++ citeParserTests.txt (working copy)
@@ -207,18 +207,18 @@
Cite error 1; Invalid <ref> tag; name cannot be a simple integer, use a descriptive title
+
Cite error: Invalid <ref> tag; name cannot be a simple integer, use a descriptive title
[1] -
Cite error 2; Invalid <ref> tag; refs with no content must have a name
+
Cite error: Invalid <ref> tag; refs with no content must have a name
[3] -
Cite error 5; Invalid <references> tag; no input is allowed, use
+
Cite error: Invalid <references> tag; no input is allowed, use
<references />
-
Cite error 6; Invalid <references> tag; no parameters are allowed, use <references />
+
Cite error: Invalid <references> tag; no parameters are allowed, use <references />