diff --git a/app/src/common/shared/org/mozilla/vrbrowser/utils/LocaleUtils.java b/app/src/common/shared/org/mozilla/vrbrowser/utils/LocaleUtils.java index 9f1049a2c..3fa7b7ad4 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/utils/LocaleUtils.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/utils/LocaleUtils.java @@ -286,6 +286,8 @@ private static Map getSupportedLocalizedLanguages(@NonNull Con mSupportedLanguagesCache = new LinkedHashMap() {{ Locale locale = new Locale("en","US"); put(locale.toLanguageTag(), new Language(locale, StringUtils.getStringByLocale(context, R.string.settings_language_english, locale))); + locale = new Locale("en","GB"); + put(locale.toLanguageTag(), new Language(locale, StringUtils.getStringByLocale(context, R.string.settings_language_english_uk, locale))); locale = new Locale.Builder().setLanguage("zh").setScript("Hant").setRegion("TW").build(); put(locale.toLanguageTag(), new Language(locale, StringUtils.getStringByLocale(context, R.string.settings_language_traditional_chinese, locale))); locale = new Locale.Builder().setLanguage("zh").setScript("Hans").setRegion("CN").build(); @@ -297,6 +299,8 @@ private static Map getSupportedLocalizedLanguages(@NonNull Con locale = new Locale("de","DE"); put(locale.toLanguageTag(), new Language(locale, StringUtils.getStringByLocale(context, R.string.settings_language_german, locale))); locale = new Locale("es","ES"); + put(locale.toLanguageTag(), new Language(locale, StringUtils.getStringByLocale(context, R.string.settings_language_spanish_spain, locale))); + locale = new Locale("es"); put(locale.toLanguageTag(), new Language(locale, StringUtils.getStringByLocale(context, R.string.settings_language_spanish, locale))); locale = new Locale("ru","RU"); put(locale.toLanguageTag(), new Language(locale, StringUtils.getStringByLocale(context, R.string.settings_language_russian, locale))); @@ -309,7 +313,9 @@ private static Map getSupportedLocalizedLanguages(@NonNull Con locale = new Locale("pl","PL"); put(locale.toLanguageTag(), new Language(locale, StringUtils.getStringByLocale(context, R.string.settings_language_polish, locale))); locale = new Locale("nb","NO"); - put(locale.toLanguageTag(), new Language(locale, StringUtils.getStringByLocale(context, R.string.settings_language_norwegian, locale))); + put(locale.toLanguageTag(), new Language(locale, StringUtils.getStringByLocale(context, R.string.settings_language_norwegian_bokmaal, locale))); + locale = new Locale("nn","NO"); + put(locale.toLanguageTag(), new Language(locale, StringUtils.getStringByLocale(context, R.string.settings_language_norwegian_nynorsk, locale))); locale = new Locale("sv","SE"); put(locale.toLanguageTag(), new Language(locale, StringUtils.getStringByLocale(context, R.string.settings_language_swedish, locale))); locale = new Locale("fi","FI"); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c22ba2994..3fbe4475a 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -224,6 +224,10 @@ changes the app and the language of the speech-recognition-based search to 'English (US)'. --> English (US) + + English (UK) + Chinese (Traditional/Zhuyin) @@ -248,6 +252,10 @@ changes the app and the language of the speech-recognition-based search to 'Spanish'. --> Spanish + + Spanish (Spain) + Korean @@ -271,6 +279,14 @@ Norwegian + + + Norwegian (Bokmaal) + + + Norwegian (Nynorsk)