diff --git a/Android.mk b/Android.mk
index e45357911..5396ed518 100755
--- a/Android.mk
+++ b/Android.mk
@@ -15,7 +15,7 @@ LOCAL_STATIC_JAVA_LIBRARIES := android-common
#LOCAL_AAPT_FLAGS := -0 .dict
-#LOCAL_SDK_VERSION := current
+LOCAL_SDK_VERSION := current
LOCAL_PROGUARD_FLAGS := -include $(LOCAL_PATH)/proguard.flags
diff --git a/res/values/donottranslate.xml b/res/values/donottranslate.xml
index 87c28aeba..d5017353d 100644
--- a/res/values/donottranslate.xml
+++ b/res/values/donottranslate.xml
@@ -34,4 +34,6 @@
+
+
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 9025ca0f6..35dd3e089 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -319,4 +319,7 @@
\u2190 Tap again to save
+
+
+ Dictionary available
diff --git a/res/xml/kbd_qwerty.xml b/res/xml/kbd_qwerty.xml
index 4aa476136..1a9ea5c31 100755
--- a/res/xml/kbd_qwerty.xml
+++ b/res/xml/kbd_qwerty.xml
@@ -70,7 +70,10 @@
android:popupKeyboard="@xml/kbd_popup_template"
android:popupCharacters="@string/alternates_for_d"/>
-
+
diff --git a/src/com/android/inputmethod/latin/BinaryDictionary.java b/src/com/android/inputmethod/latin/BinaryDictionary.java
index ec467c88d..43f4c4cb6 100644
--- a/src/com/android/inputmethod/latin/BinaryDictionary.java
+++ b/src/com/android/inputmethod/latin/BinaryDictionary.java
@@ -138,7 +138,6 @@ public class BinaryDictionary extends Dictionary {
@Override
public synchronized void close() {
if (mNativeDict != 0) {
- System.err.println("Closing BinaryDictionary");
closeNative(mNativeDict);
mNativeDict = 0;
}
diff --git a/src/com/android/inputmethod/latin/InputLanguageSelection.java b/src/com/android/inputmethod/latin/InputLanguageSelection.java
index 73298e33c..b1ddb2175 100644
--- a/src/com/android/inputmethod/latin/InputLanguageSelection.java
+++ b/src/com/android/inputmethod/latin/InputLanguageSelection.java
@@ -34,6 +34,9 @@ public class InputLanguageSelection extends PreferenceActivity {
private String mSelectedLanguages;
private ArrayList mAvailableLanguages = new ArrayList();
+ private static final String[] BLACKLIST_LANGUAGES = {
+ "ko", "ja", "zh"
+ };
private static class Loc implements Comparable {
static Collator sCollator = Collator.getInstance();
@@ -137,6 +140,9 @@ public class InputLanguageSelection extends PreferenceActivity {
String country = s.substring(3, 5);
Locale l = new Locale(language, country);
+ // Exclude languages that are not relevant to LatinIME
+ if (arrayContains(BLACKLIST_LANGUAGES, language)) continue;
+
if (finalSize == 0) {
preprocess[finalSize++] =
new Loc(LanguageSwitcher.toTitleCase(l.getDisplayName(l)), l);
@@ -167,4 +173,11 @@ public class InputLanguageSelection extends PreferenceActivity {
}
return uniqueLocales;
}
+
+ private boolean arrayContains(String[] array, String value) {
+ for (int i = 0; i < array.length; i++) {
+ if (array[i].equalsIgnoreCase(value)) return true;
+ }
+ return false;
+ }
}