Add !string/<resource_name> reference
This CL introduces new text reference notation !string/<resource_name> to refer a string resource on the fly. This notation is mainly used to represent action key labels may refer a string in a system locale in run-time. This notation is needed to implement Hinglish and Serbian-Latin keyboards that need to refer its own action key labels. Bug: 17169632 Bug: 9687668 Change-Id: I042f6bd04714e0e448cd92031730eb9fb422e6d3
Showing
- java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java 47 additions, 45 deletions...droid/inputmethod/keyboard/internal/KeyboardTextsSet.java
- java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsTable.java 78 additions, 44 deletions...oid/inputmethod/keyboard/internal/KeyboardTextsTable.java
- java/src/com/android/inputmethod/latin/utils/SubtypeLocaleUtils.java 1 addition, 1 deletion...m/android/inputmethod/latin/utils/SubtypeLocaleUtils.java
- tests/res/values/donottranslate.xml 10 additions, 8 deletionstests/res/values/donottranslate.xml
- tests/src/com/android/inputmethod/keyboard/KeyboardLayoutSetActionLabelBase.java 4 additions, 2 deletions...nputmethod/keyboard/KeyboardLayoutSetActionLabelBase.java
- tests/src/com/android/inputmethod/keyboard/KeyboardLayoutSetActionLabelKlpTests.java 88 additions, 14 deletions...method/keyboard/KeyboardLayoutSetActionLabelKlpTests.java
- tests/src/com/android/inputmethod/keyboard/internal/MoreKeySpecSplitTests.java 19 additions, 181 deletions.../inputmethod/keyboard/internal/MoreKeySpecSplitTests.java
- tests/src/com/android/inputmethod/keyboard/internal/MoreKeySpecStringReferenceTests.java 284 additions, 0 deletions...od/keyboard/internal/MoreKeySpecStringReferenceTests.java
- tools/make-keyboard-text/res/values-hi-rZZ/donottranslate-more-keys.xml 8 additions, 0 deletions...board-text/res/values-hi-rZZ/donottranslate-more-keys.xml
- tools/make-keyboard-text/res/values/donottranslate-more-keys.xml 8 additions, 0 deletions...ake-keyboard-text/res/values/donottranslate-more-keys.xml
Loading
Please register or sign in to comment