jenkins-bot has submitted this change and it was merged. Change subject: Migrate to JSON i18n ......................................................................
Migrate to JSON i18n Procedure per https://www.mediawiki.org/wiki/Manual:GenerateJsonI18n.php with shim. Change-Id: I5d353a26afd4727093ce97bedb600dc3672c9fb2 --- M SearchExtraNS.i18n.php M SearchExtraNS.php A i18n/ast.json A i18n/cs.json A i18n/de.json A i18n/en.json A i18n/es.json A i18n/fa.json A i18n/fr.json A i18n/gl.json A i18n/he.json A i18n/hsb.json A i18n/it.json A i18n/ja.json A i18n/ko.json A i18n/lb.json A i18n/mk.json A i18n/ms.json A i18n/nl.json A i18n/oc.json A i18n/qqq.json A i18n/roa-tara.json A i18n/ru.json A i18n/sco.json A i18n/sv.json A i18n/uk.json A i18n/vi.json A i18n/zh-hans.json 28 files changed, 234 insertions(+), 181 deletions(-) Approvals: Nikerabbit: Looks good to me, approved jenkins-bot: Verified diff --git a/SearchExtraNS.i18n.php b/SearchExtraNS.i18n.php index 2e968e6..eeb2776 100644 --- a/SearchExtraNS.i18n.php +++ b/SearchExtraNS.i18n.php @@ -1,186 +1,31 @@ <?php /** - Internationalization file for extension SearchExtraNS + * This is a backwards-compatibility shim, generated by: + * https://git.wikimedia.org/blob/mediawiki%2Fcore.git/HEAD/maintenance%2FgenerateJsonI18n.php + * + * Beginning with MediaWiki 1.23, translation strings are stored in json files, + * and the EXTENSION.i18n.php file only exists to provide compatibility with + * older releases of MediaWiki. For more information about this migration, see: + * https://www.mediawiki.org/wiki/Requests_for_comment/Localisation_format + * + * This shim maintains compatibility back to MediaWiki 1.17. */ - $messages = array(); +$GLOBALS['wgHooks']['LocalisationCacheRecache'][] = function ( $cache, $code, &$cachedData ) { + $codeSequence = array_merge( array( $code ), $cachedData['fallbackSequence'] ); + foreach ( $codeSequence as $csCode ) { + $fileName = __DIR__ . "/i18n/$csCode.json"; + if ( is_readable( $fileName ) ) { + $data = FormatJson::decode( file_get_contents( $fileName ), true ); + foreach ( array_keys( $data ) as $key ) { + if ( $key === '' || $key[0] === '@' ) { + unset( $data[$key] ); + } + } + $cachedData['messages'] = array_merge( $data, $cachedData['messages'] ); + } -$messages['en'] = array( - 'searchextrans-desc' => 'Searches extra specified namespaces if no direct match is found' -); - -/** Message documentation (Message documentation) - * @author Raymond - * @author Shirayuki - */ -$messages['qqq'] = array( - 'searchextrans-desc' => '{{desc|name=Search Extra NS|url=http://www.mediawiki.org/wiki/Extension:SearchExtraNS}}', -); - -/** Asturian (asturianu) - * @author Xuacu - */ -$messages['ast'] = array( - 'searchextrans-desc' => "Gueta nos espacios de nomes estra conseñaos si nun s'alcuentra una coincidencia direuta", -); - -/** Czech (čeština) - * @author Mormegil - */ -$messages['cs'] = array( - 'searchextrans-desc' => 'Pokud není nalezena přímá shoda, prohledává další uvedené jmenné prostory', -); - -/** German (Deutsch) - * @author Metalhead64 - */ -$messages['de'] = array( - 'searchextrans-desc' => 'Ermöglicht das Durchsuchen zusätzlicher angegebener Namensräume, falls keine direkten Treffer gefunden werden können', -); - -/** Spanish (español) - * @author Fitoschido - */ -$messages['es'] = array( - 'searchextrans-desc' => 'Busca espacios de nombres específicos adicionales si no se encuentra una coincidencia directa', -); - -/** Persian (فارسی) - * @author Armin1392 - */ -$messages['fa'] = array( - 'searchextrans-desc' => 'اگر هیچ تطبیق راهنمایی پیدا نشود،جستجوهای اضافی فضاهای نام را مشخص کردهاند.', -); - -/** French (français) - * @author Gomoko - */ -$messages['fr'] = array( - 'searchextrans-desc' => 'Recherche dans les espaces de nom supplémentaires spécifiés si aucune correspondance directe n’est trouvée', -); - -/** Galician (galego) - * @author Toliño - */ -$messages['gl'] = array( - 'searchextrans-desc' => 'Procura nos espazos de nomes adicionais especificados se non se atopa unha coincidencia directa', -); - -/** Hebrew (עברית) - * @author Amire80 - */ -$messages['he'] = array( - 'searchextrans-desc' => 'חיפוש במרחבי שמות נוספים אם לא נמצאה התאמה ישירה', -); - -/** Upper Sorbian (hornjoserbsce) - * @author Michawiki - */ -$messages['hsb'] = array( - 'searchextrans-desc' => 'Pyta přidatnje podate mjenowe rumy, jeli žadyn direktny wotpowědnik njeje so namakał', -); - -/** Italian (italiano) - * @author Beta16 - */ -$messages['it'] = array( - 'searchextrans-desc' => 'Cerca in altri namespace specificati, se non viene trovata alcuna corrispondenza diretta', -); - -/** Japanese (日本語) - * @author Shirayuki - */ -$messages['ja'] = array( - 'searchextrans-desc' => '完全一致するものが見つからない場合に、指定した名前空間をさらに検索する', -); - -/** Korean (한국어) - * @author 아라 - */ -$messages['ko'] = array( - 'searchextrans-desc' => '완전히 일치하는 것이 없으면 지정한 이름공간을 더 검색합니다', -); - -/** Luxembourgish (Lëtzebuergesch) - * @author Robby - */ -$messages['lb'] = array( - 'searchextrans-desc' => 'Sicht an de spezifizéierten Nummräim wa keen direkten Treffer fonnt gouf', -); - -/** Macedonian (македонски) - * @author Bjankuloski06 - */ -$messages['mk'] = array( - 'searchextrans-desc' => 'Пребарува по други укажани именски простори ако нема непосредно совпаѓање', -); - -/** Malay (Bahasa Melayu) - * @author Anakmalaysia - */ -$messages['ms'] = array( - 'searchextrans-desc' => 'Mencari ruang nama tambahan yang tertentu jika padanan langsung tidak dijumpai', -); - -/** Dutch (Nederlands) - * @author Siebrand - */ -$messages['nl'] = array( - 'searchextrans-desc' => 'Doorzoekt extra ingestelde naamruimten als er geen direct resultaat is gevonden', -); - -/** Occitan (occitan) - * @author Cedric31 - */ -$messages['oc'] = array( - 'searchextrans-desc' => 'Recèrca dins los espacis de nom suplementaris especificats se cap de correspondéncia dirècta es pas trobada', -); - -/** tarandíne (tarandíne) - * @author Joetaras - */ -$messages['roa-tara'] = array( - 'searchextrans-desc' => "Cerche namespace specifeche extra ce non ge ste 'nu combronde dirette", -); - -/** Russian (русский) - * @author Okras - */ -$messages['ru'] = array( - 'searchextrans-desc' => 'Ищет дополнительно указанные пространства имён, если точного совпадения не было найдено.', -); - -/** Scots (Scots) - * @author John Reid - */ -$messages['sco'] = array( - 'searchextrans-desc' => 'Rakes eixtra speceefied namespaces gif nae direct match is foond', -); - -/** Swedish (svenska) - * @author Lokal Profil - */ -$messages['sv'] = array( - 'searchextrans-desc' => 'Söker i extra specificerade namnrymder om ingen exakt träff hittas', -); - -/** Ukrainian (українська) - * @author Ата - */ -$messages['uk'] = array( - 'searchextrans-desc' => 'Шукає додаткові вказані простори імен, якщо не знайдено прямого співпадіння', -); - -/** Vietnamese (Tiếng Việt) - * @author Minh Nguyen - */ -$messages['vi'] = array( - 'searchextrans-desc' => 'Tìm kiếm trong các không gian tên thay thế nếu không tìm thấy kết quả trong các không gian tên mặc định', -); - -/** Simplified Chinese (中文(简体)) - * @author Yfdyh000 - */ -$messages['zh-hans'] = array( - 'searchextrans-desc' => '如果没有直接匹配到结果,搜索更多指定的命名空间', -); + $cachedData['deps'][] = new FileDependency( $fileName ); + } + return true; +}; diff --git a/SearchExtraNS.php b/SearchExtraNS.php index fec7a6e..cd85906 100644 --- a/SearchExtraNS.php +++ b/SearchExtraNS.php @@ -12,6 +12,7 @@ 'author' => array( 'Roland Unger', 'Hans Musil' ), ); +$wgMessagesDirs['SearchExtraNS'] = __DIR__ . '/i18n'; $wgExtensionMessagesFiles['SearchExtraNS'] = __DIR__ . '/SearchExtraNS.i18n.php'; $wgSearchExtraNamespaces = false; diff --git a/i18n/ast.json b/i18n/ast.json new file mode 100644 index 0000000..5a75053 --- /dev/null +++ b/i18n/ast.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Xuacu" + ] + }, + "searchextrans-desc": "Gueta nos espacios de nomes estra conseñaos si nun s'alcuentra una coincidencia direuta" +} \ No newline at end of file diff --git a/i18n/cs.json b/i18n/cs.json new file mode 100644 index 0000000..967750c --- /dev/null +++ b/i18n/cs.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Mormegil" + ] + }, + "searchextrans-desc": "Pokud není nalezena přímá shoda, prohledává další uvedené jmenné prostory" +} \ No newline at end of file diff --git a/i18n/de.json b/i18n/de.json new file mode 100644 index 0000000..d598902 --- /dev/null +++ b/i18n/de.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Metalhead64" + ] + }, + "searchextrans-desc": "Ermöglicht das Durchsuchen zusätzlicher angegebener Namensräume, falls keine direkten Treffer gefunden werden können" +} \ No newline at end of file diff --git a/i18n/en.json b/i18n/en.json new file mode 100644 index 0000000..8788859 --- /dev/null +++ b/i18n/en.json @@ -0,0 +1,6 @@ +{ + "@metadata": { + "authors": [] + }, + "searchextrans-desc": "Searches extra specified namespaces if no direct match is found" +} \ No newline at end of file diff --git a/i18n/es.json b/i18n/es.json new file mode 100644 index 0000000..7fdb913 --- /dev/null +++ b/i18n/es.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Fitoschido" + ] + }, + "searchextrans-desc": "Busca espacios de nombres específicos adicionales si no se encuentra una coincidencia directa" +} \ No newline at end of file diff --git a/i18n/fa.json b/i18n/fa.json new file mode 100644 index 0000000..278264b --- /dev/null +++ b/i18n/fa.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Armin1392" + ] + }, + "searchextrans-desc": "اگر هیچ تطبیق راهنمایی پیدا نشود،جستجوهای اضافی فضاهای نام را مشخص کردهاند." +} \ No newline at end of file diff --git a/i18n/fr.json b/i18n/fr.json new file mode 100644 index 0000000..ff510ce --- /dev/null +++ b/i18n/fr.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Gomoko" + ] + }, + "searchextrans-desc": "Recherche dans les espaces de nom supplémentaires spécifiés si aucune correspondance directe n’est trouvée" +} \ No newline at end of file diff --git a/i18n/gl.json b/i18n/gl.json new file mode 100644 index 0000000..ed55380 --- /dev/null +++ b/i18n/gl.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Toliño" + ] + }, + "searchextrans-desc": "Procura nos espazos de nomes adicionais especificados se non se atopa unha coincidencia directa" +} \ No newline at end of file diff --git a/i18n/he.json b/i18n/he.json new file mode 100644 index 0000000..3e75bc3 --- /dev/null +++ b/i18n/he.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Amire80" + ] + }, + "searchextrans-desc": "חיפוש במרחבי שמות נוספים אם לא נמצאה התאמה ישירה" +} \ No newline at end of file diff --git a/i18n/hsb.json b/i18n/hsb.json new file mode 100644 index 0000000..76f6dc9 --- /dev/null +++ b/i18n/hsb.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Michawiki" + ] + }, + "searchextrans-desc": "Pyta přidatnje podate mjenowe rumy, jeli žadyn direktny wotpowědnik njeje so namakał" +} \ No newline at end of file diff --git a/i18n/it.json b/i18n/it.json new file mode 100644 index 0000000..56da5c4 --- /dev/null +++ b/i18n/it.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Beta16" + ] + }, + "searchextrans-desc": "Cerca in altri namespace specificati, se non viene trovata alcuna corrispondenza diretta" +} \ No newline at end of file diff --git a/i18n/ja.json b/i18n/ja.json new file mode 100644 index 0000000..73f27c2 --- /dev/null +++ b/i18n/ja.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Shirayuki" + ] + }, + "searchextrans-desc": "完全一致するものが見つからない場合に、指定した名前空間をさらに検索する" +} \ No newline at end of file diff --git a/i18n/ko.json b/i18n/ko.json new file mode 100644 index 0000000..bc0f03b --- /dev/null +++ b/i18n/ko.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "아라" + ] + }, + "searchextrans-desc": "완전히 일치하는 것이 없으면 지정한 이름공간을 더 검색합니다" +} \ No newline at end of file diff --git a/i18n/lb.json b/i18n/lb.json new file mode 100644 index 0000000..5b83c7b --- /dev/null +++ b/i18n/lb.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Robby" + ] + }, + "searchextrans-desc": "Sicht an de spezifizéierten Nummräim wa keen direkten Treffer fonnt gouf" +} \ No newline at end of file diff --git a/i18n/mk.json b/i18n/mk.json new file mode 100644 index 0000000..11768a4 --- /dev/null +++ b/i18n/mk.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Bjankuloski06" + ] + }, + "searchextrans-desc": "Пребарува по други укажани именски простори ако нема непосредно совпаѓање" +} \ No newline at end of file diff --git a/i18n/ms.json b/i18n/ms.json new file mode 100644 index 0000000..72115f7 --- /dev/null +++ b/i18n/ms.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Anakmalaysia" + ] + }, + "searchextrans-desc": "Mencari ruang nama tambahan yang tertentu jika padanan langsung tidak dijumpai" +} \ No newline at end of file diff --git a/i18n/nl.json b/i18n/nl.json new file mode 100644 index 0000000..8ffceb6 --- /dev/null +++ b/i18n/nl.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Siebrand" + ] + }, + "searchextrans-desc": "Doorzoekt extra ingestelde naamruimten als er geen direct resultaat is gevonden" +} \ No newline at end of file diff --git a/i18n/oc.json b/i18n/oc.json new file mode 100644 index 0000000..f5b0e99 --- /dev/null +++ b/i18n/oc.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Cedric31" + ] + }, + "searchextrans-desc": "Recèrca dins los espacis de nom suplementaris especificats se cap de correspondéncia dirècta es pas trobada" +} \ No newline at end of file diff --git a/i18n/qqq.json b/i18n/qqq.json new file mode 100644 index 0000000..150f6fb --- /dev/null +++ b/i18n/qqq.json @@ -0,0 +1,9 @@ +{ + "@metadata": { + "authors": [ + "Raymond", + "Shirayuki" + ] + }, + "searchextrans-desc": "{{desc|name=Search Extra NS|url=http://www.mediawiki.org/wiki/Extension:SearchExtraNS}}" +} \ No newline at end of file diff --git a/i18n/roa-tara.json b/i18n/roa-tara.json new file mode 100644 index 0000000..204926e --- /dev/null +++ b/i18n/roa-tara.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Joetaras" + ] + }, + "searchextrans-desc": "Cerche namespace specifeche extra ce non ge ste 'nu combronde dirette" +} \ No newline at end of file diff --git a/i18n/ru.json b/i18n/ru.json new file mode 100644 index 0000000..5425374 --- /dev/null +++ b/i18n/ru.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Okras" + ] + }, + "searchextrans-desc": "Ищет дополнительно указанные пространства имён, если точного совпадения не было найдено." +} \ No newline at end of file diff --git a/i18n/sco.json b/i18n/sco.json new file mode 100644 index 0000000..0d2cb90 --- /dev/null +++ b/i18n/sco.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "John Reid" + ] + }, + "searchextrans-desc": "Rakes eixtra speceefied namespaces gif nae direct match is foond" +} \ No newline at end of file diff --git a/i18n/sv.json b/i18n/sv.json new file mode 100644 index 0000000..ed0a707 --- /dev/null +++ b/i18n/sv.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Lokal Profil" + ] + }, + "searchextrans-desc": "Söker i extra specificerade namnrymder om ingen exakt träff hittas" +} \ No newline at end of file diff --git a/i18n/uk.json b/i18n/uk.json new file mode 100644 index 0000000..7f7b57a --- /dev/null +++ b/i18n/uk.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Ата" + ] + }, + "searchextrans-desc": "Шукає додаткові вказані простори імен, якщо не знайдено прямого співпадіння" +} \ No newline at end of file diff --git a/i18n/vi.json b/i18n/vi.json new file mode 100644 index 0000000..3414632 --- /dev/null +++ b/i18n/vi.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Minh Nguyen" + ] + }, + "searchextrans-desc": "Tìm kiếm trong các không gian tên thay thế nếu không tìm thấy kết quả trong các không gian tên mặc định" +} \ No newline at end of file diff --git a/i18n/zh-hans.json b/i18n/zh-hans.json new file mode 100644 index 0000000..d6ebe4a --- /dev/null +++ b/i18n/zh-hans.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Yfdyh000" + ] + }, + "searchextrans-desc": "如果没有直接匹配到结果,搜索更多指定的命名空间" +} \ No newline at end of file -- To view, visit https://gerrit.wikimedia.org/r/121858 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I5d353a26afd4727093ce97bedb600dc3672c9fb2 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/SearchExtraNS Gerrit-Branch: master Gerrit-Owner: Siebrand <siebr...@kitano.nl> Gerrit-Reviewer: Nikerabbit <niklas.laxst...@gmail.com> Gerrit-Reviewer: Reedy <re...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits