phone: the app's screens take their text from strings.xml, ready for translation, with per-app language support and pseudo-locales in debug builds

This commit is contained in:
Seb3thehacker committed 2026-10-26 12:23:20 -07:00
1 parent dc9514dcfa
commit 02618dbcb9
24 files changed
+910 -451

No files matched your search

+15
View File
@@ -74,6 +74,9 @@ android {
applicationIdSuffix = ".dev"
signingConfigs.findByName("release")?.let { signingConfig = it }
manifestPlaceholders["appLabel"] = "Gearslip Debug"
// English (XA) and Arabic (XB) under the phone's languages: stretched, accented and
// right-to-left text, which shows what's still hardcoded and what doesn't fit.
isPseudoLocalesEnabled = true
// Shrunk with R8 like a release, so a debug install behaves like what ships (a keep
// rule missing for release shows up here first). -PnoR8 skips it for a quicker build.
if (!project.hasProperty("noR8")) {
@@ -88,6 +91,18 @@ android {
buildConfig = true
}
// Lists each language that has a translation in the app's locale config, so Android 13+
// offers it under the system's per-app languages. English is the unqualified default
// (res/resources.properties).
androidResources {
generateLocaleConfig = true
}
lint {
// Weblate fills languages in a string at a time; the rest fall back to English.
disable += "MissingTranslation"
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21