Gerrit Patch Uploader has uploaded a new change for review.
https://gerrit.wikimedia.org/r/287141
Change subject: Rename language codes sr-ec and sr-el to sr-cyrl and sr-latn
......................................................................
Rename language codes sr-ec and sr-el to sr-cyrl and sr-latn
This change requires I75da0af35a2066e7963e50c56c99daf1e07c55e6 in core.
Bug: T117845
Change-Id: I7eaee0170a8d4938c94d1024f9e6f58c94db9c3d
---
R client/i18n/sr-cyrl.json
R client/i18n/sr-latn.json
R lib/i18n/sr-cyrl.json
R lib/i18n/sr-latn.json
M lib/includes/LanguageFallbackChainFactory.php
M lib/tests/phpunit/LanguageFallbackChainFactoryTest.php
M lib/tests/phpunit/LanguageFallbackChainTest.php
M lib/tests/phpunit/LanguageWithConversionTest.php
R repo/i18n/sr-cyrl.json
R repo/i18n/sr-latn.json
10 files changed, 6 insertions(+), 6 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase
refs/changes/41/287141/1
diff --git a/client/i18n/sr-ec.json b/client/i18n/sr-cyrl.json
similarity index 100%
rename from client/i18n/sr-ec.json
rename to client/i18n/sr-cyrl.json
diff --git a/client/i18n/sr-el.json b/client/i18n/sr-latn.json
similarity index 100%
rename from client/i18n/sr-el.json
rename to client/i18n/sr-latn.json
diff --git a/lib/i18n/sr-ec.json b/lib/i18n/sr-cyrl.json
similarity index 100%
rename from lib/i18n/sr-ec.json
rename to lib/i18n/sr-cyrl.json
diff --git a/lib/i18n/sr-el.json b/lib/i18n/sr-latn.json
similarity index 100%
rename from lib/i18n/sr-el.json
rename to lib/i18n/sr-latn.json
diff --git a/lib/includes/LanguageFallbackChainFactory.php
b/lib/includes/LanguageFallbackChainFactory.php
index 5b056d8..18e12fb 100644
--- a/lib/includes/LanguageFallbackChainFactory.php
+++ b/lib/includes/LanguageFallbackChainFactory.php
@@ -32,7 +32,7 @@
/**
* Other compatible languages that can be translated into the requested
language
- * (and translation is automatically done), e.g. 'sr', 'sr-ec' and
'sr-el' for 'sr'.
+ * (and translation is automatically done), e.g. 'sr', 'sr-cyrl' and
'sr-latn' for 'sr'.
*/
const FALLBACK_VARIANTS = 2;
diff --git a/lib/tests/phpunit/LanguageFallbackChainFactoryTest.php
b/lib/tests/phpunit/LanguageFallbackChainFactoryTest.php
index f56b748..a30d83b 100644
--- a/lib/tests/phpunit/LanguageFallbackChainFactoryTest.php
+++ b/lib/tests/phpunit/LanguageFallbackChainFactoryTest.php
@@ -188,8 +188,8 @@
array( 'sr',
LanguageFallbackChainFactory::FALLBACK_SELF |
LanguageFallbackChainFactory::FALLBACK_VARIANTS, array(
'sr',
- array( 'sr', 'sr-ec' ),
- array( 'sr', 'sr-el' ),
+ array( 'sr', 'sr-cyrl' ),
+ array( 'sr', 'sr-latn' ),
) ),
);
}
diff --git a/lib/tests/phpunit/LanguageFallbackChainTest.php
b/lib/tests/phpunit/LanguageFallbackChainTest.php
index 8c1a7bf..6447454 100644
--- a/lib/tests/phpunit/LanguageFallbackChainTest.php
+++ b/lib/tests/phpunit/LanguageFallbackChainTest.php
@@ -94,12 +94,12 @@
),
),
array(
- 'sr-ec',
+ 'sr-cyrl',
LanguageFallbackChainFactory::FALLBACK_SELF |
LanguageFallbackChainFactory::FALLBACK_VARIANTS,
$data,
null,
),
- array( 'sr-ec',
LanguageFallbackChainFactory::FALLBACK_ALL, $data, array(
+ array( 'sr-cyrl',
LanguageFallbackChainFactory::FALLBACK_ALL, $data, array(
// Shouldn't be converted to Cyrillic ('фоо')
as this specific
// value ('foo') is taken from the English
label.
'value' => 'foo',
diff --git a/lib/tests/phpunit/LanguageWithConversionTest.php
b/lib/tests/phpunit/LanguageWithConversionTest.php
index e51c19c..445c52c 100644
--- a/lib/tests/phpunit/LanguageWithConversionTest.php
+++ b/lib/tests/phpunit/LanguageWithConversionTest.php
@@ -109,7 +109,7 @@
array( 'zh-cn', 'zh-classical' ),
array( 'zh', 'sr' ),
array( 'zh-cn', 'en-gb' ),
- array( 'zh-tw', 'sr-ec' ),
+ array( 'zh-tw', 'sr-cyrl' ),
);
}
diff --git a/repo/i18n/sr-ec.json b/repo/i18n/sr-cyrl.json
similarity index 100%
rename from repo/i18n/sr-ec.json
rename to repo/i18n/sr-cyrl.json
diff --git a/repo/i18n/sr-el.json b/repo/i18n/sr-latn.json
similarity index 100%
rename from repo/i18n/sr-el.json
rename to repo/i18n/sr-latn.json
--
To view, visit https://gerrit.wikimedia.org/r/287141
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7eaee0170a8d4938c94d1024f9e6f58c94db9c3d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Gerrit Patch Uploader <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits