1
0
forked from GitHub/gf-core

tweaking Chi language codes to get both speech input and output in Android ; one fix in DictionaryChi

This commit is contained in:
aarne
2015-12-11 10:56:07 +00:00
parent 6b74a90bd4
commit d41d512ae3
2 changed files with 3 additions and 2 deletions

View File

@@ -35,9 +35,9 @@ public class TTS {
} }
*/ */
/* OR use separate entries for Cantonese and Mandarin */ /* Google Chinese speech input has a nonstandard code. In output, yue works for Chi in Google, but SVOX uses the standard zh-CN */
if (language.equals("cmn-Hans-CN")) { if (language.equals("cmn-Hans-CN")) {
language = "yue"; language = "zh-CN";
} }
Locale locale = LocaleUtils.parseJavaLocale(language.replace('-', '_'), Locale locale = LocaleUtils.parseJavaLocale(language.replace('-', '_'),

View File

@@ -29,6 +29,7 @@ public class Translator {
new Language("bg-BG", "Bulgarian", "AppBul", R.xml.cyrillic), new Language("bg-BG", "Bulgarian", "AppBul", R.xml.cyrillic),
new Language("ca-ES", "Catalan", "AppCat", R.xml.qwerty), new Language("ca-ES", "Catalan", "AppCat", R.xml.qwerty),
new Language("cmn-Hans-CN", "Chinese", "AppChi", R.xml.qwerty), new Language("cmn-Hans-CN", "Chinese", "AppChi", R.xml.qwerty),
// new Language("zh-CN", "Chinese", "AppChi", R.xml.qwerty),
// new Language("yue", "Chinese (Cantonese)", "AppChi", R.xml.qwerty), // new Language("yue", "Chinese (Cantonese)", "AppChi", R.xml.qwerty),
// new Language("cmn-Hans-CN", "Chinese (Mandarin)", "AppChi", R.xml.qwerty), // new Language("cmn-Hans-CN", "Chinese (Mandarin)", "AppChi", R.xml.qwerty),
new Language("nl-NL", "Dutch", "AppDut", R.xml.qwerty), new Language("nl-NL", "Dutch", "AppDut", R.xml.qwerty),