Skip to content

Commit 31a0be3

Browse files
feat(localization): Add Czech language support
This commit introduces Czech language support to the application. - Added "Czech" to the `Language` enum in `Constants.kt`. - Updated `getDisplayName`, `getDisplayCountryName`, `getLanguageCode`, and `getLanguageTag` functions in `Constants.kt` to include Czech localization. - Added the Czech language string resource `lang_czech` to `languages.xml`. Signed-off-by: CreativeCodeCat <wayne6324@gmail.com>
1 parent 4783d6d commit 31a0be3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app/src/main/java/com/github/droidworksstudio/mlauncher/data/Constants.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ object Constants {
142142
System,
143143
Arabic,
144144
Dutch,
145+
Czech,
145146
English,
146147
French,
147148
German,
@@ -164,6 +165,7 @@ object Constants {
164165
System -> getLocalizedString(R.string.system_default)
165166
Arabic -> getLocalizedString(R.string.lang_arabic)
166167
Dutch -> getLocalizedString(R.string.lang_dutch)
168+
Czech -> getLocalizedString(R.string.lang_czech)
167169
English -> getLocalizedString(R.string.lang_english)
168170
French -> getLocalizedString(R.string.lang_french)
169171
German -> getLocalizedString(R.string.lang_german)
@@ -188,6 +190,7 @@ object Constants {
188190
System -> getLocalizedString(R.string.system_default)
189191
Arabic -> getLocalizedString(R.string.lang_arabic)
190192
Dutch -> getLocalizedString(R.string.lang_dutch)
193+
Czech -> getLocalizedString(R.string.lang_czech)
191194
English -> getLocalizedString(R.string.lang_english)
192195
French -> getLocalizedString(R.string.lang_french)
193196
German -> getLocalizedString(R.string.lang_german)
@@ -216,6 +219,7 @@ object Constants {
216219
System -> Locale.getDefault().language
217220
Arabic -> "ar"
218221
Dutch -> "nl"
222+
Czech -> "cs"
219223
English -> "en"
220224
French -> "fr"
221225
German -> "de"
@@ -243,6 +247,7 @@ object Constants {
243247
System -> Locale.getDefault().toLanguageTag()
244248
Arabic -> "ar-SA"
245249
Dutch -> "nl-NL"
250+
Czech -> "cs-Cz"
246251
English -> "en-US"
247252
French -> "fr-FR"
248253
German -> "de-DE"

app/src/main/res/values/languages.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<resources>
33
<string name="lang_arabic">Arabic</string>
44
<string name="lang_dutch">Dutch</string>
5+
<string name="lang_czech">czech</string>
56
<string name="lang_english">English</string>
67
<string name="lang_french">French</string>
78
<string name="lang_german">German</string>

0 commit comments

Comments
 (0)