1
0
Fork 0

Added initial German support. Updated gradle things, fixed bugs:

* Made the Gradle script act a bit better in regards to calcing dict sizes
* Fixed some error messages
* Hopefully fixed crash on no dict load
* Fixed issue where some characters and cases weren't added to db
This commit is contained in:
Clam 2014-10-21 01:17:02 +11:00
parent fedd835ba5
commit 079de4c475
13 changed files with 200 additions and 164 deletions

View file

@ -8,8 +8,9 @@ public class LangHelper {
protected static final Locale RUSSIAN = new Locale("ru","RU");
protected static final int EN = 0;
protected static final int RU = 1;
protected static final Locale[] LOCALES = {Locale.ENGLISH, RUSSIAN};
protected static final String[] LANGS = {"EN", "RU"};
protected static final int DE = 1;
protected static final Locale[] LOCALES = {Locale.ENGLISH, RUSSIAN, Locale.GERMAN};
protected static final String[] LANGS = {"EN", "RU", "DE"};
protected static final int NLANGS = LANGS.length;
@ -31,7 +32,14 @@ public class LangHelper {
{R.drawable.ime_ru_lang_lower, R.drawable.ime_ru_lang_single, R.drawable.ime_ru_lang_upper}, //LANG
{R.drawable.ime_ru_text_lower, R.drawable.ime_ru_text_single, R.drawable.ime_ru_text_upper}, //TEXT
{R.drawable.ime_number}, //NUM
}
},
{
// German resources
{R.drawable.ime_de_lang_lower, R.drawable.ime_de_lang_single, R.drawable.ime_de_lang_upper}, //LANG
{R.drawable.ime_en_text_lower, R.drawable.ime_en_text_single, R.drawable.ime_en_text_upper}, //TEXT
{R.drawable.ime_number}, //NUM
},
};
protected static int[] buildLangs(CharSequence s) {