Changed Turkish translation for Cyprus, generated binaries am: 08c953593d -s ours
am: 4ea86065fa
Change-Id: I09bb06c2b45b36df811ee478f4c7be025103cc03
diff --git a/android_icu4j/cts-coverage/src/main/tests/android/icu/cts/coverage/text/LocaleDisplayNamesTest.java b/android_icu4j/cts-coverage/src/main/tests/android/icu/cts/coverage/text/LocaleDisplayNamesTest.java
index 14a7586..34495c5 100644
--- a/android_icu4j/cts-coverage/src/main/tests/android/icu/cts/coverage/text/LocaleDisplayNamesTest.java
+++ b/android_icu4j/cts-coverage/src/main/tests/android/icu/cts/coverage/text/LocaleDisplayNamesTest.java
@@ -92,4 +92,21 @@
Locale.CHINA, DisplayContext.CAPITALIZATION_NONE);
assertEquals("拼音罗马字", names.variantDisplayName("PINYIN"));
}
+
+ // http://b/31177615
+ @Test
+ public void testCyprusTurkishTranslation() {
+ final Locale[] variousTurkishTestLocales = {
+ new Locale("tr"),
+ new Locale("tr", "CY"),
+ new Locale("tr", "TR")
+ };
+
+ for (Locale testLocale : variousTurkishTestLocales) {
+ LocaleDisplayNamesImpl names = (LocaleDisplayNamesImpl) LocaleDisplayNames.getInstance(
+ testLocale, DisplayContext.STANDARD_NAMES);
+ assertEquals("Bad translation for Cyprus in locale " + testLocale,
+ "Kıbrıs", names.regionDisplayName("CY"));
+ }
+ }
}