address issue #339

Co-authored-by: eightyy8 <64216434+eightyy8@users.noreply.github.com>
This commit is contained in:
Cloudburst 2023-02-09 20:25:00 +01:00 committed by GitHub
parent 84493b7f3b
commit dd38556102
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,47 +57,47 @@ fun getCurrentLocale(context: Context): String {
val appLanguages = arrayListOf( val appLanguages = arrayListOf(
/* begin language list */ /* begin language list */
Triple("", "العربية", "ar"), Triple("", "العربية", "ar"),
Triple("", "български език", "bg"), Triple("", "български", "bg"),
Triple("", "বাংলা", "bn"), Triple("", "বাংলা", "bn"),
Triple("\uD83C\uDDE7\uD83C\uDDF7", "Brazilian Portuguese", "bp"), Triple("\uD83C\uDDE7\uD83C\uDDF7", "Brazilian Portuguese", "bp"),
Triple("", "čeština", "cs"), Triple("", "čeština", "cs"),
Triple("", "Deutsch", "de"), Triple("", "Deutsch", "de"),
Triple("", "ελληνικά", "el"), Triple("", "Ελληνικά", "el"),
Triple("", "English", "en"), Triple("", "English", "en"),
Triple("", "Esperanto", "eo"), Triple("", "Esperanto", "eo"),
Triple("", "Español", "es"), Triple("", "español", "es"),
Triple("", "فارسی", "fa"), Triple("", "فارسی", "fa"),
Triple("", "français", "fr"), Triple("", "français", "fr"),
Triple("\uD83C\uDDEE\uD83C\uDDF1", "עברית", "he"),
Triple("", "हिन्दी", "hi"), Triple("", "हिन्दी", "hi"),
Triple("", "hrvatski jezik", "hr"), Triple("", "hrvatski", "hr"),
Triple("", "magyar", "hu"), Triple("", "magyar", "hu"),
Triple("\uD83C\uDDEE\uD83C\uDDE9", "Indonesian", "in"), Triple("\uD83C\uDDEE\uD83C\uDDE9", "Bahasa Indonesia", "in"),
Triple("", "Italiano", "it"), Triple("", "italiano", "it"),
Triple("\uD83C\uDDEE\uD83C\uDDF1", "עִברִית", "iw"),
Triple("", "ಕನ್ನಡ", "kn"), Triple("", "ಕನ್ನಡ", "kn"),
Triple("", "македонски јазик", "mk"), Triple("", "македонски", "mk"),
Triple("", "മലയാളം", "ml"), Triple("", "മലയാളം", "ml"),
Triple("", "Nederlands", "nl"), Triple("", "Nederlands", "nl"),
Triple("", "Norsk nynorsk", "nn"), Triple("", "norsk nynorsk", "nn"),
Triple("", "Norsk", "no"), Triple("", "norsk bokmål", "no"),
Triple("", "język polski", "pl"), Triple("", "polski", "pl"),
Triple("\uD83C\uDDF5\uD83C\uDDF9", "Português", "pt"), Triple("\uD83C\uDDF5\uD83C\uDDF9", "português", "pt"),
Triple("🦍", "mmmm... monke", "qt"), Triple("🦍", "mmmm... monke", "qt"),
Triple("", "Română", "ro"), Triple("", "română", "ro"),
Triple("", "Русский", "ru"), Triple("", "русский", "ru"),
Triple("", "slovenčina", "sk"), Triple("", "slovenčina", "sk"),
Triple("", "Soomaaliga", "so"), Triple("", "Soomaaliga", "so"),
Triple("", "svenska", "sv"), Triple("", "svenska", "sv"),
Triple("", "தமிழ்", "ta"), Triple("", "தமிழ்", "ta"),
Triple("", "Wikang Tagalog", "tl"), Triple("", "Tagalog", "tl"),
Triple("", "Türkçe", "tr"), Triple("", "Türkçe", "tr"),
Triple("", "Українська", "uk"), Triple("", "українська", "uk"),
Triple("", "اردو", "ur"), Triple("", "اردو", "ur"),
Triple("", "Tiếng Việt", "vi"), Triple("", "Tiếng Việt", "vi"),
Triple("", "中文 (Zhōngwén)", "zh"), Triple("", "中文", "zh"),
Triple("\uD83C\uDDF9\uD83C\uDDFC", "Chinese Traditional", "zh-rTW"), Triple("\uD83C\uDDF9\uD83C\uDDFC", "文言", "zh-rTW"),
/* end language list */ /* end language list */
).sortedBy { it.second } //ye, we go alphabetical, so ppl don't put their lang on top ).sortedBy { it.second?.toLowerCase() } //ye, we go alphabetical, so ppl don't put their lang on top
class SettingsGeneral : PreferenceFragmentCompat() { class SettingsGeneral : PreferenceFragmentCompat() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { override fun onViewCreated(view: View, savedInstanceState: Bundle?) {