[MediaWiki-commits] [Gerrit] Migrating to use new JSON message backend. - change (mediawiki...HostStats)
Raimond Spekking has submitted this change and it was merged. Change subject: Migrating to use new JSON message backend. .. Migrating to use new JSON message backend. Change-Id: I9fd76b9d20205a8cdf683803b0575c0fd99e8578 --- M HostStats.i18n.php M HostStats.php A i18n/ast.json A i18n/cs.json A i18n/de.json A i18n/el.json A i18n/en.json A i18n/es.json A i18n/fa.json A i18n/fr.json A i18n/frp.json A i18n/gl.json A i18n/he.json A i18n/hsb.json A i18n/hu.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/ms.json A i18n/nl.json A i18n/oc.json A i18n/pl.json A i18n/pms.json A i18n/pt-br.json A i18n/qqq.json A i18n/ro.json A i18n/roa-tara.json A i18n/ru.json A i18n/si.json A i18n/uk.json A i18n/zh-hans.json A i18n/zh-hant.json 35 files changed, 343 insertions(+), 300 deletions(-) Approvals: Siebrand: Looks good to me, but someone else must approve Raimond Spekking: Verified; Looks good to me, approved diff --git a/HostStats.i18n.php b/HostStats.i18n.php index 26c51c7..6207270 100644 --- a/HostStats.i18n.php +++ b/HostStats.i18n.php @@ -1,303 +1,20 @@ $unused ) { + if ( $key === '' || $key[0] === '@' ) { + unset( $data[$key] ); + } + } + $cachedData['messages'] = array_merge( $data, $cachedData['messages'] ); + } -/** English - * @author Hydriz - */ -$messages['en'] = array( - 'hoststats' => '{{int:hoststats-title}}', // Do not translate this message - 'hoststats-title' => 'Host statistics', - 'hoststats-desc' => 'A tool to output the host statistics that the wiki is on', - 'hoststats-intro' => 'This page shows some host statistics that the wiki is on.', -); - -/** Message documentation (Message documentation) - * @author Hydriz - * @author Shirayuki - */ -$messages['qqq'] = array( - 'hoststats' => '{{notranslate}} -Refers to {{msg-mw|Hoststats-title}}.', - 'hoststats-title' => '{{doc-special|HostStats}} -"Host" refers to the server the wiki is on.', - 'hoststats-desc' => '{{desc|name=Host Stats|url=http://www.mediawiki.org/wiki/Extension:HostStats}}', - 'hoststats-intro' => 'The introduction to the special page. "Host" refers to the server the wiki is on.', -); - -/** Asturian (asturianu) - * @author Xuacu - */ -$messages['ast'] = array( - 'hoststats-title' => 'Estadístiques del sirvidor', - 'hoststats-desc' => "Ferramienta qu'amuesa les estadístiques del sirvidor nel que ta la wiki.", - 'hoststats-intro' => 'Esta páxina amuesa delles estadístiques del sirvidor nel que ta la wiki.', -); - -/** Czech (čeština) - * @author Vks - */ -$messages['cs'] = array( - 'hoststats-title' => 'Statistika serveru', -); - -/** German (Deutsch) - * @author Metalhead64 - */ -$messages['de'] = array( - 'hoststats-title' => 'Hoststatistiken', - 'hoststats-desc' => 'Ergänzt ein Werkzeug zur Ausgabe von Statistiken des Hosts dieses Wikis', - 'hoststats-intro' => 'Diese Seite zeigt einige Statistiken des Hosts dieses Wikis an.', -); - -/** Greek (Ελληνικά) - * @author ZaDiak - */ -$messages['el'] = array( - 'hoststats-title' => 'Στατιστικά υποδοχής', -); - -/** Spanish (español) - * @author Armando-Martin - */ -$messages['es'] = array( - 'hoststats-title' => 'Estadísticas del servidor', - 'hoststats-desc' => 'Una herramienta muestra las estadísticas del servidor en que encuentra la wiki.', - 'hoststats-intro' => 'Esta página muestra algunas estadísticas del servidor en que se encuentra el wiki.', -); - -/** Persian (فارسی) - * @author Armin1392 - */ -$messages['fa'] = array( - 'hoststats-title' => 'آمارهای گروه', - 'hoststats-desc' => 'ابزاری برای عرضهٔ آمارهای گروهی که ویکی در آن است', - 'hoststats-intro' => 'این صفحه بعضی از آمارهای گروهی را که ویکی در آن است را نمایش میدهد.', -); - -/** French (français) - * @author Gomoko - */ -$messages['fr'] = array( - 'hoststats-title' => "Statistiques de l'hôte", - 'hoststats-desc' => "Un outil pour sortir les statistiques de l'hôte sur lequel se trouve le wiki.", - 'hoststats-intro' => "Cette page affiche des statistiques de l'hôte sur lequel se trouve le wiki.", -); - -/** Franco-Provençal (arpetan) - * @author ChrisPtDe - */ -$messages['frp'] = array( - 'hoststats-title' => 'Statistiques de l’hôto', -); - -/** Galician (galego) - * @author Toliño - */ -$messages['gl'] = array( - 'hoststats-title' => 'Estatísticas do servidor', - 'hoststats-desc' => 'Unha ferramenta que mostra as estatísticas do servidor no que se atopa este wiki.', - 'hoststats-intro' => 'Esta páxina mostra algunhas estatísticas do servidor no que se atopa este wiki.', -); - -/** Hebrew (עברית) - * @author Amire80 - */ -$messages['he'] = array( -
[MediaWiki-commits] [Gerrit] Migrating to use new JSON message backend. - change (mediawiki...HostStats)
Hydriz has uploaded a new change for review. https://gerrit.wikimedia.org/r/106229 Change subject: Migrating to use new JSON message backend. .. Migrating to use new JSON message backend. Change-Id: I9fd76b9d20205a8cdf683803b0575c0fd99e8578 --- M HostStats.i18n.php M HostStats.php A i18n/ast.json A i18n/cs.json A i18n/de.json A i18n/el.json A i18n/en.json A i18n/es.json A i18n/fa.json A i18n/fr.json A i18n/frp.json A i18n/gl.json A i18n/he.json A i18n/hsb.json A i18n/hu.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/ms.json A i18n/nl.json A i18n/oc.json A i18n/pl.json A i18n/pms.json A i18n/pt-br.json A i18n/qqq.json A i18n/ro.json A i18n/roa-tara.json A i18n/ru.json A i18n/si.json A i18n/uk.json A i18n/zh-hans.json A i18n/zh-hant.json 35 files changed, 343 insertions(+), 300 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/HostStats refs/changes/29/106229/1 diff --git a/HostStats.i18n.php b/HostStats.i18n.php index 26c51c7..6207270 100644 --- a/HostStats.i18n.php +++ b/HostStats.i18n.php @@ -1,303 +1,20 @@ $unused ) { + if ( $key === '' || $key[0] === '@' ) { + unset( $data[$key] ); + } + } + $cachedData['messages'] = array_merge( $data, $cachedData['messages'] ); + } -/** English - * @author Hydriz - */ -$messages['en'] = array( - 'hoststats' => '{{int:hoststats-title}}', // Do not translate this message - 'hoststats-title' => 'Host statistics', - 'hoststats-desc' => 'A tool to output the host statistics that the wiki is on', - 'hoststats-intro' => 'This page shows some host statistics that the wiki is on.', -); - -/** Message documentation (Message documentation) - * @author Hydriz - * @author Shirayuki - */ -$messages['qqq'] = array( - 'hoststats' => '{{notranslate}} -Refers to {{msg-mw|Hoststats-title}}.', - 'hoststats-title' => '{{doc-special|HostStats}} -"Host" refers to the server the wiki is on.', - 'hoststats-desc' => '{{desc|name=Host Stats|url=http://www.mediawiki.org/wiki/Extension:HostStats}}', - 'hoststats-intro' => 'The introduction to the special page. "Host" refers to the server the wiki is on.', -); - -/** Asturian (asturianu) - * @author Xuacu - */ -$messages['ast'] = array( - 'hoststats-title' => 'Estadístiques del sirvidor', - 'hoststats-desc' => "Ferramienta qu'amuesa les estadístiques del sirvidor nel que ta la wiki.", - 'hoststats-intro' => 'Esta páxina amuesa delles estadístiques del sirvidor nel que ta la wiki.', -); - -/** Czech (čeština) - * @author Vks - */ -$messages['cs'] = array( - 'hoststats-title' => 'Statistika serveru', -); - -/** German (Deutsch) - * @author Metalhead64 - */ -$messages['de'] = array( - 'hoststats-title' => 'Hoststatistiken', - 'hoststats-desc' => 'Ergänzt ein Werkzeug zur Ausgabe von Statistiken des Hosts dieses Wikis', - 'hoststats-intro' => 'Diese Seite zeigt einige Statistiken des Hosts dieses Wikis an.', -); - -/** Greek (Ελληνικά) - * @author ZaDiak - */ -$messages['el'] = array( - 'hoststats-title' => 'Στατιστικά υποδοχής', -); - -/** Spanish (español) - * @author Armando-Martin - */ -$messages['es'] = array( - 'hoststats-title' => 'Estadísticas del servidor', - 'hoststats-desc' => 'Una herramienta muestra las estadísticas del servidor en que encuentra la wiki.', - 'hoststats-intro' => 'Esta página muestra algunas estadísticas del servidor en que se encuentra el wiki.', -); - -/** Persian (فارسی) - * @author Armin1392 - */ -$messages['fa'] = array( - 'hoststats-title' => 'آمارهای گروه', - 'hoststats-desc' => 'ابزاری برای عرضهٔ آمارهای گروهی که ویکی در آن است', - 'hoststats-intro' => 'این صفحه بعضی از آمارهای گروهی را که ویکی در آن است را نمایش میدهد.', -); - -/** French (français) - * @author Gomoko - */ -$messages['fr'] = array( - 'hoststats-title' => "Statistiques de l'hôte", - 'hoststats-desc' => "Un outil pour sortir les statistiques de l'hôte sur lequel se trouve le wiki.", - 'hoststats-intro' => "Cette page affiche des statistiques de l'hôte sur lequel se trouve le wiki.", -); - -/** Franco-Provençal (arpetan) - * @author ChrisPtDe - */ -$messages['frp'] = array( - 'hoststats-title' => 'Statistiques de l’hôto', -); - -/** Galician (galego) - * @author Toliño - */ -$messages['gl'] = array( - 'hoststats-title' => 'Estatísticas do servidor', - 'hoststats-desc' => 'Unha ferramenta que mostra as estatísticas do servidor no que se atopa este wiki.', - 'hoststats-intro' => 'Esta páxina mostra algunhas estatísticas do servidor no que se atopa este wiki.', -); - -/** Hebrew (עברית) - * @author Amire80 - */ -$messages['he'] = array( - 'ho