Paladox has uploaded a new change for review.
https://gerrit.wikimedia.org/r/214331
Change subject: Fix i18n by making $wgMessagesDirs global
......................................................................
Fix i18n by making $wgMessagesDirs global
* Since removing i18n shim the i18n messages broke because $wgMessagesDirs was
set to global.
* Also set $wgExtensionMessagesFiles to global no longer need to be set as
$messages since i18n shim was removed.
Change-Id: I03e612e0750b5fc5d72f7aab4adc007ed575f53e
---
M ConfirmAccount.php
M ConfirmAccount.setup.php
M i18n/confirmaccount/ksh.json
M i18n/requestaccount/ksh.json
M i18n/usercredentials/ksh.json
5 files changed, 11 insertions(+), 10 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ConfirmAccount
refs/changes/31/214331/1
diff --git a/ConfirmAccount.php b/ConfirmAccount.php
index f2e7fe3..3c75f8d 100644
--- a/ConfirmAccount.php
+++ b/ConfirmAccount.php
@@ -36,7 +36,7 @@
# Define were PHP files and i18n files are located
require( dirname( __FILE__ ) . '/ConfirmAccount.setup.php' );
-ConfirmAccountSetup::defineSourcePaths( $wgAutoloadClasses,
$wgExtensionMessagesFiles );
+ConfirmAccountSetup::defineSourcePaths( $wgAutoloadClasses );
# Define JS/CSS modules and file locations
ConfirmAccountUISetup::defineResourceModules( $wgResourceModules );
diff --git a/ConfirmAccount.setup.php b/ConfirmAccount.setup.php
index 7558efe..b2827ef 100644
--- a/ConfirmAccount.setup.php
+++ b/ConfirmAccount.setup.php
@@ -11,7 +11,8 @@
* @param $messagesFiles Array $messagesFiles
* @return void
*/
- public static function defineSourcePaths( array &$classes, array
&$messagesFiles ) {
+ public static function defineSourcePaths( array &$classes ) {
+ global $wgMessagesDirs, $wgExtensionMessagesFiles;
$dir = dirname( __FILE__ );
# Basic directory layout
@@ -24,7 +25,7 @@
# Main i18n file and special page alias file
$wgMessagesDirs['ConfirmAccount'] = __DIR__ . '/i18n/core';
- $messagesFiles['ConfirmAccountAliases'] =
"$langDir/ConfirmAccount.alias.php";
+ $wgExtensionMessagesFiles['ConfirmAccountAliases'] =
"$langDir/ConfirmAccount.alias.php";
# UI setup class
$classes['ConfirmAccountUISetup'] =
"$frontendDir/ConfirmAccountUI.setup.php";
diff --git a/i18n/confirmaccount/ksh.json b/i18n/confirmaccount/ksh.json
index d875a28..6457be2 100644
--- a/i18n/confirmaccount/ksh.json
+++ b/i18n/confirmaccount/ksh.json
@@ -15,7 +15,7 @@
"confirmaccount-none-h": "Em Momang senn_er kei zerökjeshtallte
Aanfroore noh Zohjäng för Metmaacher en de Leß.",
"confirmaccount-none-r": "Em Momang senn_er kei köözlesch affjelehnte
Aanfroore noh Zohjäng för Metmaacher en de Leß.",
"confirmaccount-none-e": "Em Momang senn_er kei ußjeloufe Aanfroore noh
Zohjäng för Metmaacher en de Leß.",
- "confirmaccount-real-q": "Name",
+ "confirmaccount-real-q": "Nahme",
"confirmaccount-email-q": "<i lang=\"en\">e-mail</i>",
"confirmaccount-bio-q": "Et Levve beß jäz",
"confirmaccount-showopen": "unjedonn Aanfroore",
@@ -38,8 +38,8 @@
"confirmaccount-leg-person": "Päsönlesche Enfomazjuhne",
"confirmaccount-leg-other": "Ander Ennfomazjuhne",
"confirmaccount-leg-ip": "De Daate vun dä <i lang=\"en\">IP</i>-Addräß",
- "confirmaccount-name": "Metmaacher Name",
- "confirmaccount-real": "Name:",
+ "confirmaccount-name": "Metmaacher_Nahme",
+ "confirmaccount-real": "Nahme:",
"confirmaccount-email": "E-mail:",
"confirmaccount-reqtype": "Posizjuhn:",
"confirmaccount-pos-0": "Schriever",
diff --git a/i18n/requestaccount/ksh.json b/i18n/requestaccount/ksh.json
index f404f75..acf511a 100644
--- a/i18n/requestaccount/ksh.json
+++ b/i18n/requestaccount/ksh.json
@@ -19,7 +19,7 @@
"requestaccount-ext-text": "Di Daate hee dronger blieve unger uns. Se
wääde allein doför jebruch, övver Ding Aanfrooch noh enem Zohjang ze
äntscheide. He kanns De Saache, wi en Telefonnummer, aanjevve, di methellfe
künne, ze prööfe, wä De bes, un dat ding Aanjabe reschtesch sin.",
"requestaccount-bio-text": "Donn alles aanjevve, wat vun Belang es för
Ding Levve.",
"requestaccount-bio-text-i": "'''Dä Täx övver Ding Levve weed för der
Aanfang op Ding Metmaachersigg jeschtallt.'''\nBes sescher, dat de Desh joot
föhls domet, dat öffentlesch ze maache.",
- "requestaccount-real": "Dinge richtije Name:",
+ "requestaccount-real": "Dinge reschteje Nahme:",
"requestaccount-same": "(dä sellve wi dä reschtijje Name)",
"requestaccount-email": "<i lang=\"en\">e-mail</i> Addreß",
"requestaccount-reqtype": "Posizjuhn:",
@@ -33,7 +33,7 @@
"requestaccount-inuse": "Dä Metmaacher-Name es ald en ene andere
Aanfrooch jewönsch, ävver noch nit zohjedeilt.",
"requestaccount-tooshort": "Dä Täx övver Ding Levve sullt winnischßdens
{{PLURAL:$1|ei Woot|$1 Wööt|kei Wööt}} lang sin.",
"requestaccount-emaildup": "En ander Aanfrooch noh enem Zohjang als
Metmaacher hät de sellve <i lang=\"en\">e-mail</i>-Addräß.",
- "requestaccount-exts": "Di Zoot Datei-Aanhang es nit zohjelohße.",
+ "requestaccount-exts": "Di Zoot Dattei_Aanhang es nit zohjelohße.",
"requestaccount-resub": "Dinge Levvensverlouf moß norr_ens neu
ußjewählt wäde, zor Sescherheit. Lohß dat Feld leddisch, wann De_n_nit mieh
wigger dobei han wells.",
"requestaccount-tos": "Esch han jelässe, wat op dä Sigg
„[[{{MediaWiki:Requestaccount-page}}|{{int:requestaccount-leg-tos}}]]“ övver
{{GRAMMAR:Akkusativ|{{ucfirst:{{SITENAME}}}}}} shteiht, Un esch versescheren,
dat wad esch onger „reschtijje Nahme“ aanjejovve hann, verhaftesch minge
reschtijje Nahme es.",
"requestaccount-submit": "Noh enem Zojang als ene Metmaacher frore",
diff --git a/i18n/usercredentials/ksh.json b/i18n/usercredentials/ksh.json
index 4ee1524..68ce6fa 100644
--- a/i18n/usercredentials/ksh.json
+++ b/i18n/usercredentials/ksh.json
@@ -6,7 +6,7 @@
},
"usercredentials": "De Nohwiise för ene Metmaacher",
"usercredentials-leg": "De beshtäteschte Nohwiise för ene Metmaacher
nohloore",
- "usercredentials-user": "Metmaacher Name:",
+ "usercredentials-user": "Metmaacher_Nahme:",
"usercredentials-text": "Hee kumme de nohjeprööfte Date un Eijeschaffte
vun däm ußjesohte Metmaacher.",
"usercredentials-leg-user": "Däm Metmaacher sing Aanmeldung",
"usercredentials-leg-areas": "Enträße en de Houpsaach",
@@ -14,7 +14,7 @@
"usercredentials-leg-other": "Ander Ennfomazjuhne",
"usercredentials-leg-ip": "De Daate vun dä <i
lang=\"en\">IP</i>-Addräß",
"usercredentials-email": "<i lang=\"en\">e-mail</i>:",
- "usercredentials-real": "Dä richtije Name:",
+ "usercredentials-real": "Dä reschteje Nahme:",
"usercredentials-bio": "Et Levve beß jäz:",
"usercredentials-attach": "Levvensverlouf:",
"usercredentials-notes": "Söns es noch ze saare:",
--
To view, visit https://gerrit.wikimedia.org/r/214331
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I03e612e0750b5fc5d72f7aab4adc007ed575f53e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ConfirmAccount
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits