mirror of
https://github.com/twinksoftware/Gearslip.git
synced 2026-11-11 00:12:24 +01:00
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:
1 parent
dc9514dcfa
commit
02618dbcb9
24 files changed
+910
-451
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user