aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/makedict/Ver4DictEncoder.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-02-05 09:16:16 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-02-05 09:16:17 +0000
commitb162911fa4131cf90cd8dbaef325717eec4defa6 (patch)
tree62a6695832eb2344a3cc3880a225c6dfc13283c9 /java/src/com/android/inputmethod/latin/makedict/Ver4DictEncoder.java
parentbbb6e8f10f6a73049fe1ecc81a9f60f23a9f8992 (diff)
parent43cf9076b2d053c554941e55f6073b8f586c510b (diff)
downloadlatinime-b162911fa4131cf90cd8dbaef325717eec4defa6.tar.gz
latinime-b162911fa4131cf90cd8dbaef325717eec4defa6.tar.xz
latinime-b162911fa4131cf90cd8dbaef325717eec4defa6.zip
Merge "[HD04] Make the locale mandatory."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/Ver4DictEncoder.java')
-rw-r--r--java/src/com/android/inputmethod/latin/makedict/Ver4DictEncoder.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/Ver4DictEncoder.java b/java/src/com/android/inputmethod/latin/makedict/Ver4DictEncoder.java
index 160775d63..4b0efbad0 100644
--- a/java/src/com/android/inputmethod/latin/makedict/Ver4DictEncoder.java
+++ b/java/src/com/android/inputmethod/latin/makedict/Ver4DictEncoder.java
@@ -55,7 +55,9 @@ public class Ver4DictEncoder implements DictEncoder {
throw new UnsupportedFormatException("Given path is not a directory.");
}
if (!BinaryDictionary.createEmptyDictFile(mDictPlacedDir.getAbsolutePath(),
- FormatSpec.VERSION4, dict.mOptions.mAttributes)) {
+ FormatSpec.VERSION4, LocaleUtils.constructLocaleFromString(
+ dict.mOptions.mAttributes.get(DictionaryHeader.DICTIONARY_LOCALE_KEY)),
+ dict.mOptions.mAttributes)) {
throw new IOException("Cannot create dictionary file : "
+ mDictPlacedDir.getAbsolutePath());
}