M8: localisation groundwork - resource the file-kind labels, pseudo-locale check
This commit is contained in:
@@ -24,8 +24,22 @@ upload needs a **higher `versionCode`** than every previous upload.
|
||||
device where the user had never declined anything. Reworded so it is true whether access
|
||||
was declined or simply never granted.
|
||||
|
||||
- **The details sheet put untranslatable English on screen.** It rendered `FileKind.name`
|
||||
directly, so "Type" read `directory`, `archive`, `apk` — enum constants rather than
|
||||
labels, and impossible to translate. Every category now has a string resource and a
|
||||
`FileKind.labelRes()` mapping alongside the existing `OperationKind.titleRes()`.
|
||||
|
||||
### Added
|
||||
|
||||
- **M8 — localisation groundwork.** Every user-visible string lives in
|
||||
`res/values/strings.xml` with real `<plurals>`, and an audit of the Compose sources found
|
||||
exactly one genuine miss (above). The debug build type enables
|
||||
`isPseudoLocalesEnabled`, so running it in English (XA) renders resource-backed text
|
||||
accented and bracketed while anything hardcoded looks normal — a mechanical way to catch
|
||||
the next one. Confirmed the pseudo-locale reaches the debug APK and not the release.
|
||||
Byte units and the timestamp pattern stay unlocalised on purpose, documented in the
|
||||
README along with the pseudo-locale check.
|
||||
|
||||
- **M7 — on-device validation.** The app was run on a real Xiaomi M2101K7AG (Android 12,
|
||||
MIUI V140) rather than only emulator images. Verified on hardware: the first-run
|
||||
permission prompt, "All files access" granted while the app is alive (picked up on
|
||||
|
||||
Reference in New Issue
Block a user