From fec52199741454f70d5934c8553e1b5561dc2674 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Mon, 6 Oct 2014 12:18:45 +0900 Subject: [PATCH] Fix Serbian Latin subtype handling This CL also adds unit tests for Hinglish and Serbian Latin. Bug: 9687668 Bug: 17169632 Change-Id: Ib9aa1bcdf5b390a9d8c61f07165beacf850e2692 --- java/res/values/donottranslate.xml | 2 + java/res/values/strings.xml | 11 +- .../latin/utils/SubtypeLocaleUtils.java | 26 +- .../keyboard/KeyboardLayoutSetTestsBase.java | 28 +-- .../utils/SpacebarLanguageUtilsTests.java | 117 ++++++--- .../latin/utils/SubtypeLocaleUtilsTests.java | 235 ++++++++++++++---- 6 files changed, 316 insertions(+), 103 deletions(-) diff --git a/java/res/values/donottranslate.xml b/java/res/values/donottranslate.xml index 817bb5187..08d8bb260 100644 --- a/java/res/values/donottranslate.xml +++ b/java/res/values/donottranslate.xml @@ -39,6 +39,8 @@ hi_ZZ sr_ZZ + Hinglish + Srpski %s diff --git a/java/res/values/strings.xml b/java/res/values/strings.xml index 583c3b123..e1a72c476 100644 --- a/java/res/values/strings.xml +++ b/java/res/values/strings.xml @@ -214,8 +214,7 @@ Hinglish + (Latin) can be an abbreviation to fit in the CHAR LIMIT. --> Serbian (Latin) Hinglish (%s) + This should be identical to subtype_sr_ZZ aside from the trailing (%s). --> Serbian (%s) %s (Traditional) - %s (Compact) + (Compact) can be an abbreviation to fit in the CHAR LIMIT. --> + %s (Compact)