Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Fixes #3368 Add missing supported languages #3389

Merged
merged 1 commit into from
May 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ private static Map<String, Language> getSupportedLocalizedLanguages(@NonNull Con
mSupportedLanguagesCache = new LinkedHashMap<String, Language>() {{
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();
Expand All @@ -297,6 +299,8 @@ private static Map<String, Language> 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)));
Expand All @@ -309,7 +313,9 @@ private static Map<String, Language> 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");
Expand Down
16 changes: 16 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@
changes the app and the language of the speech-recognition-based search to 'English (US)'. -->
<string name="settings_language_english">English (US)</string>

<!-- This string is used to label a radio button in the 'Settings' Language dialog that, when pressed,
changes the app and the language of the speech-recognition-based search to 'English (UK)'. -->
<string name="settings_language_english_uk">English (UK)</string>

<!-- This string is used to label a radio button in the settings language dialog that, when pressed,
changes the app and the language of the speech-recognition-based search to 'Chinese (Traditional/Zhuyin)'. -->
<string name="settings_language_traditional_chinese">Chinese (Traditional/Zhuyin)</string>
Expand All @@ -248,6 +252,10 @@
changes the app and the language of the speech-recognition-based search to 'Spanish'. -->
<string name="settings_language_spanish">Spanish</string>

<!-- This string is used to label a radio button in the settings language dialog that, when pressed,
changes the app and the language of the speech-recognition-based search to 'Spanish (Spain)'. -->
<string name="settings_language_spanish_spain">Spanish (Spain)</string>

<!-- This string is used to label a radio button in the settings language dialog that, when pressed,
changes the app and the language of the speech-recognition-based search to 'Korean'. -->
<string name="settings_language_korean">Korean</string>
Expand All @@ -271,6 +279,14 @@
<!-- This string is used to label a radio button in the settings language dialog that, when pressed,
changes the app and the language of the speech-recognition-based search to 'Norwegian'. -->
<string name="settings_language_norwegian">Norwegian</string>

<!-- This string is used to label a radio button in the settings language dialog that, when pressed,
changes the app and the language of the speech-recognition-based search to 'Norwegian (Bokmaal)'. -->
<string name="settings_language_norwegian_bokmaal">Norwegian (Bokmaal)</string>

<!-- This string is used to label a radio button in the settings language dialog that, when pressed,
changes the app and the language of the speech-recognition-based search to 'Norwegian (Nynorsk)'. -->
<string name="settings_language_norwegian_nynorsk">Norwegian (Nynorsk)</string>

<!-- This string is used to label a radio button in the settings language dialog that, when pressed,
changes the app and the language of the speech-recognition-based search to 'Danish'. -->
Expand Down