Siebrand has uploaded a new change for review. https://gerrit.wikimedia.org/r/123307
Change subject: Migrate to JSON i18n ...................................................................... Migrate to JSON i18n Procedure per https://www.mediawiki.org/wiki/Manual:GenerateJsonI18n.php with shim. Change-Id: I7fd31fbecf19d1257facdea12ceae23713207d3a --- M SocialProfile.i18n.php M SocialProfile.php A i18n/ast.json A i18n/ce.json A i18n/cs.json A i18n/de.json A i18n/dsb.json A i18n/en.json A i18n/es.json A i18n/fa.json A i18n/fr.json A i18n/gl.json A i18n/hi.json A i18n/hsb.json A i18n/it.json A i18n/ja.json A i18n/ko.json A i18n/ksh.json A i18n/lb.json A i18n/mk.json A i18n/mr.json A i18n/ms.json A i18n/nl.json A i18n/oc.json A i18n/pl.json A i18n/qqq.json A i18n/ru.json A i18n/sco.json A i18n/sv.json A i18n/te.json A i18n/uk.json A i18n/zh-hans.json A i18n/zh-hant.json 33 files changed, 273 insertions(+), 217 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SocialProfile refs/changes/07/123307/1 diff --git a/SocialProfile.i18n.php b/SocialProfile.i18n.php index 154a453..eeb2776 100644 --- a/SocialProfile.i18n.php +++ b/SocialProfile.i18n.php @@ -1,220 +1,31 @@ <?php /** - * Internationalization file for the SocialProfile extension. + * 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'] ); + } -/** English */ -$messages['en'] = array( - 'socialprofile-desc' => 'A set of social tools for MediaWiki', -); - -/** Message documentation (Message documentation) - */ -$messages['qqq'] = array( - 'socialprofile-desc' => '{{desc|name=Social Profile|url=https://www.mediawiki.org/wiki/Extension:SocialProfile}}', -); - -/** Asturian (asturianu) - * @author Xuacu - */ -$messages['ast'] = array( - 'socialprofile-desc' => "Un conxuntu d'erbíes sociales pa MediaWiki", -); - -/** Chechen (нохчийн) - * @author Умар - */ -$messages['ce'] = array( - 'socialprofile-desc' => 'MediaWiki гӀирсийн гулам', -); - -/** Czech (čeština) - * @author Paxt - */ -$messages['cs'] = array( - 'socialprofile-desc' => 'Sociální nástroje pro MediaWiki', -); - -/** German (Deutsch) - * @author Metalhead64 - */ -$messages['de'] = array( - 'socialprofile-desc' => 'Ergänzt MediaWiki um einen Satz sozialer Werkzeuge', -); - -/** Lower Sorbian (dolnoserbski) - * @author Michawiki - */ -$messages['dsb'] = array( - 'socialprofile-desc' => 'Sajźba socialnych rědow za MediaWiki', -); - -/** Spanish (español) - * @author Fitoschido - */ -$messages['es'] = array( - 'socialprofile-desc' => 'Un conjunto de herramientas sociales para MediaWiki', -); - -/** Persian (فارسی) - * @author Armin1392 - */ -$messages['fa'] = array( - 'socialprofile-desc' => 'مجموعهٔ ابزارهای اجتماعی برای مدیاویکی', -); - -/** French (français) - * @author Gomoko - */ -$messages['fr'] = array( - 'socialprofile-desc' => 'Un ensemble d’outils sociaux pour MédiaWiki', -); - -/** Galician (galego) - * @author Toliño - */ -$messages['gl'] = array( - 'socialprofile-desc' => 'Un conxunto de ferramentas sociais para MediaWiki', -); - -/** Hindi (हिन्दी) - * @author Siddhartha Ghai - */ -$messages['hi'] = array( - 'socialprofile-desc' => 'मीडियाविकि के लिए सामाजिक उपकरणों का एक समूह', -); - -/** Upper Sorbian (hornjoserbsce) - * @author Michawiki - */ -$messages['hsb'] = array( - 'socialprofile-desc' => 'Sadźba socialnych nastrojow za MediaWiki', -); - -/** Italian (italiano) - * @author Rosh - */ -$messages['it'] = array( - 'socialprofile-desc' => 'Un set di strumenti sociali per MediaWiki', -); - -/** Japanese (日本語) - * @author Shirayuki - */ -$messages['ja'] = array( - 'socialprofile-desc' => 'MediaWiki 用のソーシャルツールの集合', -); - -/** Korean (한국어) - * @author Priviet - */ -$messages['ko'] = array( - 'socialprofile-desc' => '미디어위키용 소셜 도구 모음', -); - -/** Colognian (Ripoarisch) - * @author Purodha - */ -$messages['ksh'] = array( - 'socialprofile-desc' => 'En Aanzahl Wärkzüsch för der Ömjang meddeneijn em MedijaWiki.', -); - -/** Luxembourgish (Lëtzebuergesch) - * @author Robby - */ -$messages['lb'] = array( - 'socialprofile-desc' => 'E Set vu sozialen Tools fir MediaWiki', -); - -/** Macedonian (македонски) - * @author Bjankuloski06 - */ -$messages['mk'] = array( - 'socialprofile-desc' => 'Збир друштвени алатки за МедијаВики', -); - -/** Marathi (मराठी) - * @author V.narsikar - */ -$messages['mr'] = array( - 'socialprofile-desc' => 'मिडियाविकिसाठी सामाजिक साधनांचा संच', -); - -/** Malay (Bahasa Melayu) - * @author Anakmalaysia - */ -$messages['ms'] = array( - 'socialprofile-desc' => 'Satu set peralatan sosial untuk MediaWiki', -); - -/** Dutch (Nederlands) - * @author Siebrand - */ -$messages['nl'] = array( - 'socialprofile-desc' => 'Een set van sociale hulpmiddelen voor MediaWiki', -); - -/** Occitan (occitan) - * @author Cedric31 - */ -$messages['oc'] = array( - 'socialprofile-desc' => 'Un ensemble d’aisinas socialas per MediaWiki', -); - -/** Polish (polski) - * @author Chrumps - */ -$messages['pl'] = array( - 'socialprofile-desc' => 'Zestaw narzędzi społecznościowych dla MediaWiki', -); - -/** Russian (русский) - * @author Okras - */ -$messages['ru'] = array( - 'socialprofile-desc' => 'Набор социальных инструментов для MediaWiki', -); - -/** Scots (Scots) - * @author John Reid - */ -$messages['sco'] = array( - 'socialprofile-desc' => 'A set o social tuils fer MediaWiki', -); - -/** Swedish (svenska) - * @author Lokal Profil - */ -$messages['sv'] = array( - 'socialprofile-desc' => 'En uppsättning sociala verktyg för MediaWiki', -); - -/** Telugu (తెలుగు) - * @author Ravichandra - */ -$messages['te'] = array( - 'socialprofile-desc' => 'మీడియావికీ కోసం కొన్ని సామాజిక అనువర్తనాలు', -); - -/** Ukrainian (українська) - * @author Andriykopanytsia - */ -$messages['uk'] = array( - 'socialprofile-desc' => 'Набір соціальних інструментів для MediaWiki', -); - -/** Simplified Chinese (中文(简体)) - * @author Liuxinyu970226 - */ -$messages['zh-hans'] = array( - 'socialprofile-desc' => '用于MediaWiki的社交工具设置', -); - -/** Traditional Chinese (中文(繁體)) - * @author Liuxinyu970226 - */ -$messages['zh-hant'] = array( - 'socialprofile-desc' => '用於MediaWiki的社交工具設定', -); + $cachedData['deps'][] = new FileDependency( $fileName ); + } + return true; +}; diff --git a/SocialProfile.php b/SocialProfile.php index 14c27bc..ae8d6e5 100644 --- a/SocialProfile.php +++ b/SocialProfile.php @@ -25,6 +25,7 @@ $dir = dirname( __FILE__ ) . '/'; // Internationalization files +$wgMessagesDirs['SocialProfile'] = __DIR__ . '/i18n'; $wgExtensionMessagesFiles['SocialProfile'] = $dir . 'SocialProfile.i18n.php'; $wgExtensionMessagesFiles['SocialProfileAlias'] = $dir . 'SocialProfile.alias.php'; @@ -112,7 +113,7 @@ 'path' => __FILE__, 'name' => 'SocialProfile', 'author' => array( 'Aaron Wright', 'David Pean', 'Jack Phoenix' ), - 'version' => '1.6.1', + 'version' => '1.7.0', 'url' => 'https://www.mediawiki.org/wiki/Extension:SocialProfile', 'descriptionmsg' => 'socialprofile-desc', ); @@ -299,4 +300,4 @@ if( !defined( 'NS_USER_PROFILE_TALK' ) ) { define( 'NS_USER_PROFILE_TALK', 203 ); -} \ No newline at end of file +} diff --git a/i18n/ast.json b/i18n/ast.json new file mode 100644 index 0000000..3f5e248 --- /dev/null +++ b/i18n/ast.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Xuacu" + ] + }, + "socialprofile-desc": "Un conxuntu d'erbíes sociales pa MediaWiki" +} diff --git a/i18n/ce.json b/i18n/ce.json new file mode 100644 index 0000000..02a7e41 --- /dev/null +++ b/i18n/ce.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Умар" + ] + }, + "socialprofile-desc": "MediaWiki гӀирсийн гулам" +} diff --git a/i18n/cs.json b/i18n/cs.json new file mode 100644 index 0000000..d498836 --- /dev/null +++ b/i18n/cs.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Paxt" + ] + }, + "socialprofile-desc": "Sociální nástroje pro MediaWiki" +} diff --git a/i18n/de.json b/i18n/de.json new file mode 100644 index 0000000..214ed92 --- /dev/null +++ b/i18n/de.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Metalhead64" + ] + }, + "socialprofile-desc": "Ergänzt MediaWiki um einen Satz sozialer Werkzeuge" +} diff --git a/i18n/dsb.json b/i18n/dsb.json new file mode 100644 index 0000000..480031f --- /dev/null +++ b/i18n/dsb.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Michawiki" + ] + }, + "socialprofile-desc": "Sajźba socialnych rědow za MediaWiki" +} diff --git a/i18n/en.json b/i18n/en.json new file mode 100644 index 0000000..0d95051 --- /dev/null +++ b/i18n/en.json @@ -0,0 +1,6 @@ +{ + "@metadata": { + "authors": [] + }, + "socialprofile-desc": "A set of social tools for MediaWiki" +} diff --git a/i18n/es.json b/i18n/es.json new file mode 100644 index 0000000..ad577e8 --- /dev/null +++ b/i18n/es.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Fitoschido" + ] + }, + "socialprofile-desc": "Un conjunto de herramientas sociales para MediaWiki" +} diff --git a/i18n/fa.json b/i18n/fa.json new file mode 100644 index 0000000..6f940af --- /dev/null +++ b/i18n/fa.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Armin1392" + ] + }, + "socialprofile-desc": "مجموعهٔ ابزارهای اجتماعی برای مدیاویکی" +} diff --git a/i18n/fr.json b/i18n/fr.json new file mode 100644 index 0000000..200992f --- /dev/null +++ b/i18n/fr.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Gomoko" + ] + }, + "socialprofile-desc": "Un ensemble d’outils sociaux pour MédiaWiki" +} diff --git a/i18n/gl.json b/i18n/gl.json new file mode 100644 index 0000000..7fdfb8b --- /dev/null +++ b/i18n/gl.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Toliño" + ] + }, + "socialprofile-desc": "Un conxunto de ferramentas sociais para MediaWiki" +} diff --git a/i18n/hi.json b/i18n/hi.json new file mode 100644 index 0000000..acf7703 --- /dev/null +++ b/i18n/hi.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Siddhartha Ghai" + ] + }, + "socialprofile-desc": "मीडियाविकि के लिए सामाजिक उपकरणों का एक समूह" +} diff --git a/i18n/hsb.json b/i18n/hsb.json new file mode 100644 index 0000000..9aaac2e --- /dev/null +++ b/i18n/hsb.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Michawiki" + ] + }, + "socialprofile-desc": "Sadźba socialnych nastrojow za MediaWiki" +} diff --git a/i18n/it.json b/i18n/it.json new file mode 100644 index 0000000..54022c1 --- /dev/null +++ b/i18n/it.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Rosh" + ] + }, + "socialprofile-desc": "Un set di strumenti sociali per MediaWiki" +} diff --git a/i18n/ja.json b/i18n/ja.json new file mode 100644 index 0000000..b553762 --- /dev/null +++ b/i18n/ja.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Shirayuki" + ] + }, + "socialprofile-desc": "MediaWiki 用のソーシャルツールの集合" +} diff --git a/i18n/ko.json b/i18n/ko.json new file mode 100644 index 0000000..1ea1b42 --- /dev/null +++ b/i18n/ko.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Priviet" + ] + }, + "socialprofile-desc": "미디어위키용 소셜 도구 모음" +} diff --git a/i18n/ksh.json b/i18n/ksh.json new file mode 100644 index 0000000..6da46e1 --- /dev/null +++ b/i18n/ksh.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Purodha" + ] + }, + "socialprofile-desc": "En Aanzahl Wärkzüsch för der Ömjang meddeneijn em MedijaWiki." +} diff --git a/i18n/lb.json b/i18n/lb.json new file mode 100644 index 0000000..1b37189 --- /dev/null +++ b/i18n/lb.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Robby" + ] + }, + "socialprofile-desc": "E Set vu sozialen Tools fir MediaWiki" +} diff --git a/i18n/mk.json b/i18n/mk.json new file mode 100644 index 0000000..bda45df --- /dev/null +++ b/i18n/mk.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Bjankuloski06" + ] + }, + "socialprofile-desc": "Збир друштвени алатки за МедијаВики" +} diff --git a/i18n/mr.json b/i18n/mr.json new file mode 100644 index 0000000..fdffa37 --- /dev/null +++ b/i18n/mr.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "V.narsikar" + ] + }, + "socialprofile-desc": "मिडियाविकिसाठी सामाजिक साधनांचा संच" +} diff --git a/i18n/ms.json b/i18n/ms.json new file mode 100644 index 0000000..0d54b28 --- /dev/null +++ b/i18n/ms.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Anakmalaysia" + ] + }, + "socialprofile-desc": "Satu set peralatan sosial untuk MediaWiki" +} diff --git a/i18n/nl.json b/i18n/nl.json new file mode 100644 index 0000000..0fc516a --- /dev/null +++ b/i18n/nl.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Siebrand" + ] + }, + "socialprofile-desc": "Een set van sociale hulpmiddelen voor MediaWiki" +} diff --git a/i18n/oc.json b/i18n/oc.json new file mode 100644 index 0000000..d34a284 --- /dev/null +++ b/i18n/oc.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Cedric31" + ] + }, + "socialprofile-desc": "Un ensemble d’aisinas socialas per MediaWiki" +} diff --git a/i18n/pl.json b/i18n/pl.json new file mode 100644 index 0000000..cd8c1b8 --- /dev/null +++ b/i18n/pl.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Chrumps" + ] + }, + "socialprofile-desc": "Zestaw narzędzi społecznościowych dla MediaWiki" +} diff --git a/i18n/qqq.json b/i18n/qqq.json new file mode 100644 index 0000000..4d99254 --- /dev/null +++ b/i18n/qqq.json @@ -0,0 +1,6 @@ +{ + "@metadata": { + "authors": [] + }, + "socialprofile-desc": "{{desc|name=Social Profile|url=https://www.mediawiki.org/wiki/Extension:SocialProfile}}" +} diff --git a/i18n/ru.json b/i18n/ru.json new file mode 100644 index 0000000..94878c3 --- /dev/null +++ b/i18n/ru.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Okras" + ] + }, + "socialprofile-desc": "Набор социальных инструментов для MediaWiki" +} diff --git a/i18n/sco.json b/i18n/sco.json new file mode 100644 index 0000000..74e663f --- /dev/null +++ b/i18n/sco.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "John Reid" + ] + }, + "socialprofile-desc": "A set o social tuils fer MediaWiki" +} diff --git a/i18n/sv.json b/i18n/sv.json new file mode 100644 index 0000000..90eca35 --- /dev/null +++ b/i18n/sv.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Lokal Profil" + ] + }, + "socialprofile-desc": "En uppsättning sociala verktyg för MediaWiki" +} diff --git a/i18n/te.json b/i18n/te.json new file mode 100644 index 0000000..f986b64 --- /dev/null +++ b/i18n/te.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Ravichandra" + ] + }, + "socialprofile-desc": "మీడియావికీ కోసం కొన్ని సామాజిక అనువర్తనాలు" +} diff --git a/i18n/uk.json b/i18n/uk.json new file mode 100644 index 0000000..f4ab747 --- /dev/null +++ b/i18n/uk.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Andriykopanytsia" + ] + }, + "socialprofile-desc": "Набір соціальних інструментів для MediaWiki" +} diff --git a/i18n/zh-hans.json b/i18n/zh-hans.json new file mode 100644 index 0000000..0d5dc89 --- /dev/null +++ b/i18n/zh-hans.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Liuxinyu970226" + ] + }, + "socialprofile-desc": "用于MediaWiki的社交工具设置" +} diff --git a/i18n/zh-hant.json b/i18n/zh-hant.json new file mode 100644 index 0000000..6441649 --- /dev/null +++ b/i18n/zh-hant.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Liuxinyu970226" + ] + }, + "socialprofile-desc": "用於MediaWiki的社交工具設定" +} -- To view, visit https://gerrit.wikimedia.org/r/123307 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7fd31fbecf19d1257facdea12ceae23713207d3a Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/SocialProfile Gerrit-Branch: master Gerrit-Owner: Siebrand <siebr...@kitano.nl> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits