Skip to content

Commit 2121c45

Browse files
Fix: Correct Language Enum Order
This commit reorders the `Dutch` and `Czech` entries within the `Language` enum in `Constants.kt`. - The `Language` enum members are now in alphabetical order. - Corresponding `when` statements for `getLocalizedName`, `getEnglishName`, `getLanguageCode`, and `getLocale` have been updated to reflect this corrected order. Signed-off-by: CreativeCodeCat <wayne6324@gmail.com>
1 parent e85c57b commit 2121c45

File tree

1 file changed

+5
-5
lines changed
  • app/src/main/java/com/github/droidworksstudio/mlauncher/data

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ object Constants {
141141
enum class Language : EnumOption {
142142
System,
143143
Arabic,
144-
Dutch,
145144
Czech,
145+
Dutch,
146146
English,
147147
French,
148148
German,
@@ -164,8 +164,8 @@ object Constants {
164164
return when (this) {
165165
System -> getLocalizedString(R.string.system_default)
166166
Arabic -> getLocalizedString(R.string.lang_arabic)
167-
Dutch -> getLocalizedString(R.string.lang_dutch)
168167
Czech -> getLocalizedString(R.string.lang_czech)
168+
Dutch -> getLocalizedString(R.string.lang_dutch)
169169
English -> getLocalizedString(R.string.lang_english)
170170
French -> getLocalizedString(R.string.lang_french)
171171
German -> getLocalizedString(R.string.lang_german)
@@ -189,8 +189,8 @@ object Constants {
189189
return when (this) {
190190
System -> getLocalizedString(R.string.system_default)
191191
Arabic -> getLocalizedString(R.string.lang_arabic)
192-
Dutch -> getLocalizedString(R.string.lang_dutch)
193192
Czech -> getLocalizedString(R.string.lang_czech)
193+
Dutch -> getLocalizedString(R.string.lang_dutch)
194194
English -> getLocalizedString(R.string.lang_english)
195195
French -> getLocalizedString(R.string.lang_french)
196196
German -> getLocalizedString(R.string.lang_german)
@@ -218,8 +218,8 @@ object Constants {
218218
return when (this) {
219219
System -> Locale.getDefault().language
220220
Arabic -> "ar"
221-
Dutch -> "nl"
222221
Czech -> "cs"
222+
Dutch -> "nl"
223223
English -> "en"
224224
French -> "fr"
225225
German -> "de"
@@ -246,8 +246,8 @@ object Constants {
246246
return when (this) {
247247
System -> Locale.getDefault().toLanguageTag()
248248
Arabic -> "ar-SA"
249-
Dutch -> "nl-NL"
250249
Czech -> "cs-Cz"
250+
Dutch -> "nl-NL"
251251
English -> "en-US"
252252
French -> "fr-FR"
253253
German -> "de-DE"

0 commit comments

Comments
 (0)