Make no use the more specific nb locale as nb is what Android uses.

This commit is contained in:
Reece H. Dunn
2015-10-11 13:03:43 +01:00
parent 0b898ed80d
commit e308cec7c5
2 changed files with 3 additions and 1 deletions
@@ -406,6 +406,7 @@ public class SpeechSynthesis {
mJavaToIanaLanguageCode.put("msa", "ms");
mJavaToIanaLanguageCode.put("nep", "ne");
mJavaToIanaLanguageCode.put("nld", "nl");
mJavaToIanaLanguageCode.put("nob", "nb");
mJavaToIanaLanguageCode.put("nor", "no");
mJavaToIanaLanguageCode.put("ori", "or");
mJavaToIanaLanguageCode.put("orm", "om");
@@ -449,6 +450,7 @@ public class SpeechSynthesis {
mLocaleFixes.put("es-la", new Locale("es", "MX"));
mLocaleFixes.put("fa-pin", null); // Script tags not supported.
mLocaleFixes.put("hy-west", new Locale("hy", "AM", "arevmda")); // hy-arevmda crashes on Android 5.0
mLocaleFixes.put("no", new Locale("nb")); // 'no' is valid, but the system uses the more specific 'nb' and 'nn'
mLocaleFixes.put("vi-hue", new Locale("vi", "VN", "hue"));
mLocaleFixes.put("vi-sgn", new Locale("vi", "VN", "saigon"));
mLocaleFixes.put("zh-yue", new Locale("zh", "HK"));