am d7f6fae9: Merge "Make Hebrew spellchecking spellcheck Hebrew."

* commit 'd7f6fae9850830362650c2b9beb9b679f06de59a':
  Make Hebrew spellchecking spellcheck Hebrew.
main
Chieu Nguyen 2015-03-27 23:03:57 +00:00 committed by Android Git Automerger
commit c77551cd2b
2 changed files with 3 additions and 1 deletions

View File

@ -138,6 +138,8 @@ public final class AndroidSpellCheckerService extends SpellCheckerService
return "east_slavic"; return "east_slavic";
case ScriptUtils.SCRIPT_GREEK: case ScriptUtils.SCRIPT_GREEK:
return "greek"; return "greek";
case ScriptUtils.SCRIPT_HEBREW:
return "hebrew";
default: default:
throw new RuntimeException("Wrong script supplied: " + script); throw new RuntimeException("Wrong script supplied: " + script);
} }

View File

@ -59,7 +59,7 @@ public class ScriptUtils {
mLanguageCodeToScriptCode.put("ru", SCRIPT_CYRILLIC); mLanguageCodeToScriptCode.put("ru", SCRIPT_CYRILLIC);
mLanguageCodeToScriptCode.put("ka", SCRIPT_GEORGIAN); mLanguageCodeToScriptCode.put("ka", SCRIPT_GEORGIAN);
mLanguageCodeToScriptCode.put("el", SCRIPT_GREEK); mLanguageCodeToScriptCode.put("el", SCRIPT_GREEK);
mLanguageCodeToScriptCode.put("he", SCRIPT_HEBREW); mLanguageCodeToScriptCode.put("iw", SCRIPT_HEBREW);
mLanguageCodeToScriptCode.put("km", SCRIPT_KHMER); mLanguageCodeToScriptCode.put("km", SCRIPT_KHMER);
mLanguageCodeToScriptCode.put("lo", SCRIPT_LAO); mLanguageCodeToScriptCode.put("lo", SCRIPT_LAO);
mLanguageCodeToScriptCode.put("ml", SCRIPT_MALAYALAM); mLanguageCodeToScriptCode.put("ml", SCRIPT_MALAYALAM);