Remove languages that are <80% translated

This commit is contained in:
Philipp Heckel 2025-12-28 14:41:32 -05:00
parent c64ad03f03
commit 327d2f6806
3 changed files with 18 additions and 35 deletions

View file

@ -350,38 +350,30 @@ class SettingsActivity : AppCompatActivity(), PreferenceFragmentCompat.OnPrefere
val languagePrefId = context?.getString(R.string.settings_general_language_key) ?: return
val language: ListPreference? = findPreference(languagePrefId)
if (language != null) {
// Build language entries dynamically from supported locales
// We only list languages that have > 80% of strings translated.
//
// Please use Hosted Weblate (https://hosted.weblate.org/projects/ntfy/android/)
// to help translate other languages.
//
// IMPORTANT: If a language is added here, also add it to the locales_config.xml file.
val supportedLocales = listOf(
"" to getString(R.string.settings_general_language_system_default),
"en" to "English",
"af" to "Afrikaans",
"ar" to "العربية",
"bg" to "Български",
"bn" to "বাংলা",
"ca" to "Català",
"cs" to "Čeština",
"cu" to "Славе́нскїй",
"cy" to "Cymraeg",
"da" to "Dansk",
"de" to "Deutsch",
"el" to "Ελληνικά",
"eo" to "Esperanto",
"es" to "Español",
"et" to "Eesti",
"fa" to "فارسی",
"fi" to "Suomi",
"fr" to "Français",
"gl" to "Galego",
"hi" to "हिन्दी",
"hr" to "Hrvatski",
"hu" to "Magyar",
"in" to "Bahasa Indonesia",
"it" to "Italiano",
"iw" to "עברית",
"ja" to "日本語",
"ko" to "한국어",
"mk" to "Македонски",
"ms" to "Bahasa Melayu",
"nb-NO" to "Norsk bokmål",
"nl" to "Nederlands",
"pl" to "Polski",
@ -392,12 +384,10 @@ class SettingsActivity : AppCompatActivity(), PreferenceFragmentCompat.OnPrefere
"sk" to "Slovenčina",
"sv" to "Svenska",
"ta" to "தமிழ்",
"th" to "ไทย",
"tr" to "Türkçe",
"uk" to "Українська",
"uz" to "Oʻzbekcha",
"vi" to "Tiếng Việt",
"xh" to "isiXhosa",
"zh-CN" to "简体中文",
"zh-TW" to "繁體中文"
)

View file

@ -1,34 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
<!--
This file only lists languages that have > 80% of strings translated.
Please use Hosted Weblate (https://hosted.weblate.org/projects/ntfy/android/)
to help translate other languages.
IMPORTANT: If a language is added here, also add it to the supportedLocales list
in the SettingsActivity.
-->
<locale android:name="en"/> <!-- English (default) -->
<locale android:name="af"/> <!-- Afrikaans -->
<locale android:name="ar"/> <!-- Arabic -->
<locale android:name="bg"/> <!-- Bulgarian -->
<locale android:name="bn"/> <!-- Bengali -->
<locale android:name="ca"/> <!-- Catalan -->
<locale android:name="cs"/> <!-- Czech -->
<locale android:name="cu"/> <!-- Church Slavonic -->
<locale android:name="cy"/> <!-- Welsh -->
<locale android:name="da"/> <!-- Danish -->
<locale android:name="de"/> <!-- German -->
<locale android:name="el"/> <!-- Greek -->
<locale android:name="eo"/> <!-- Esperanto -->
<locale android:name="es"/> <!-- Spanish -->
<locale android:name="et"/> <!-- Estonian -->
<locale android:name="fa"/> <!-- Persian -->
<locale android:name="fi"/> <!-- Finnish -->
<locale android:name="fr"/> <!-- French -->
<locale android:name="gl"/> <!-- Galician -->
<locale android:name="hi"/> <!-- Hindi -->
<locale android:name="hr"/> <!-- Croatian -->
<locale android:name="hu"/> <!-- Hungarian -->
<locale android:name="in"/> <!-- Indonesian -->
<locale android:name="it"/> <!-- Italian -->
<locale android:name="iw"/> <!-- Hebrew -->
<locale android:name="ja"/> <!-- Japanese -->
<locale android:name="ko"/> <!-- Korean -->
<locale android:name="mk"/> <!-- Macedonian -->
<locale android:name="ms"/> <!-- Malay -->
<locale android:name="nb-NO"/> <!-- Norwegian Bokmål -->
<locale android:name="nl"/> <!-- Dutch -->
<locale android:name="pl"/> <!-- Polish -->
@ -39,13 +34,10 @@
<locale android:name="sk"/> <!-- Slovak -->
<locale android:name="sv"/> <!-- Swedish -->
<locale android:name="ta"/> <!-- Tamil -->
<locale android:name="th"/> <!-- Thai -->
<locale android:name="tr"/> <!-- Turkish -->
<locale android:name="uk"/> <!-- Ukrainian -->
<locale android:name="uz"/> <!-- Uzbek -->
<locale android:name="vi"/> <!-- Vietnamese -->
<locale android:name="xh"/> <!-- Xhosa -->
<locale android:name="zh-CN"/> <!-- Chinese (Simplified) -->
<locale android:name="zh-TW"/> <!-- Chinese (Traditional) -->
</locale-config>

View file

@ -1,5 +1,6 @@
Features:
* Add message bar to publish messages from the app (#98, ntfy-android#144)
* Allow publishing messages through the message bar and publish dialog (#98, ntfy-android#144)
* Language selector to allow overriding the system language (#1508, thanks to @hudsonm62 for reporting)
Maintenance + bug fixes:
* Add support for (technically incorrect) 'image/jpg' MIME type (ntfy-android#142, thanks to @Murilobeluco)