aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Constants.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2012-05-07 01:47:14 +0900
committerTadashi G. Takaoka <takaoka@google.com>2012-05-07 03:25:08 +0900
commit8e50c5d198f65beb6679a9a1e0102e5fc52d7707 (patch)
tree93a712fe201ff055912e6a025566d1a4917a8211 /java/src/com/android/inputmethod/latin/Constants.java
parent4e6c60464580213cda67c46499259d2ff0bbc493 (diff)
downloadlatinime-8e50c5d198f65beb6679a9a1e0102e5fc52d7707.tar.gz
latinime-8e50c5d198f65beb6679a9a1e0102e5fc52d7707.tar.xz
latinime-8e50c5d198f65beb6679a9a1e0102e5fc52d7707.zip
Fix subtype name for a custom input style with en_US and en_GB
This change utilizes "UntranslatableReplacementStringInSubtypeName" subtype extra value to display keyboard layout name dynamically. Bug: 6449315 Change-Id: I9ef4c3d66ff9a223aa8c89c346d04cb72e4f6263
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Constants.java')
-rw-r--r--java/src/com/android/inputmethod/latin/Constants.java19
1 files changed, 14 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/Constants.java b/java/src/com/android/inputmethod/latin/Constants.java
index b205cc004..7c2284569 100644
--- a/java/src/com/android/inputmethod/latin/Constants.java
+++ b/java/src/com/android/inputmethod/latin/Constants.java
@@ -65,11 +65,6 @@ public final class Constants {
public static final class ExtraValue {
/**
- * The subtype extra value used to indicate that the subtype keyboard layout set name.
- */
- public static final String KEYBOARD_LAYOUT_SET = "KeyboardLayoutSet";
-
- /**
* The subtype extra value used to indicate that the subtype keyboard layout is capable
* for typing ASCII characters.
*/
@@ -82,6 +77,20 @@ public final class Constants {
public static final String REQ_NETWORK_CONNECTIVITY = "requireNetworkConnectivity";
/**
+ * The subtype extra value used to indicate that the subtype display name contains "%s"
+ * for replacement mark and it should be replaced by this extra value.
+ * This extra value is supported on JellyBean and later.
+ */
+ public static final String UNTRANSLATABLE_STRING_IN_SUBTYPE_NAME =
+ "UntranslatableReplacementStringInSubtypeName";
+
+ /**
+ * The subtype extra value used to indicate that the subtype keyboard layout set name.
+ * This extra value is private to LatinIME.
+ */
+ public static final String KEYBOARD_LAYOUT_SET = "KeyboardLayoutSet";
+
+ /**
* The subtype extra value used to indicate that the subtype is additional subtype
* that the user defined. This extra value is private to LatinIME.
*/