mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Simplified Chinese (values-zh-rCN), as iPhone Hex's interface is
- strings.xml (setup, Home, settings), strings_keyboard.xml (the strip, menu, TalkBack names, notes) and
strings_emoji.xml (the emoji picker's own Chinese titles, listed so lint sees them translated): every
translatable string, 158.
- Where iPhone Hex has the same English sentence, its Localizable.xcstrings translation is used, so the two
apps agree: 79 strings. Five differ on purpose: Android's "应用" for iPhone's "App", "复制/已复制" for
"拷贝/已拷贝" (Android's word for copy), "自动改正" in Personal dictionary's note to match the Autocorrect
row, and TalkBack's "正在转录" without the ellipsis. The rest are new, in the same voice (你, Chinese
quotes around Settings, a space around Latin words), with Android's own terms: 点按 for tap, 个人字典 as
Android's settings call it.
- Keyboard labels that are the same in every language are marked translatable="false" (?123, ABC, 123,
=\<, the quoted literal, "%1$s → English" with the target's own name, "%1$s ›"), and so is "Hex".
- The keyboard menu showed the dictation style's enum name ("Polished"); it now uses the style names the
app uses (Style.label, now internal), so it reads 精修.
- Dictation's notes ("No speech heard", "Couldn't transcribe. Try again." and three more) arrive from
MicCapture as English sentences. The keyboard and the app now show them from resources
(HexKeyboard.speechNote), by exact sentence; one not listed shows as it is. speech/ is unchanged apart
from the line below.
- The MissingTranslation ignore on strings.xml and strings_keyboard.xml stays: German, Spanish, French,
Italian and Norwegian have only the emoji picker's titles, so lint would ask for every other string there.
Its comment no longer says the interface is English only. Chinese completeness was checked by script:
every translatable string has a zh-rCN one.
MicCapture's log line
- lintDebug failed on dev with LogTagMismatch at speech/MicCapture.kt:187 (two "HexSpeech" literals): it
now uses one LOG_TAG constant.
- The line logs two counts (samples captured, voiced samples), never audio or words, and only after
"setprop log.tag.HexSpeech DEBUG". It cannot reach a release build at all: proguard-rules.pro makes
Log.isLoggable return false and drops Log.d, and R8 removes the branch. Checked: the release dex from
minifyReleaseWithR8 has no "HexSpeech" and no "samples, ", while the debug dex has them.
Verified (emulator only, Pixel 8, API 36 set to zh-CN):
- Welcome, setup (first run and ready), Try the keyboard, Home and Home after a dictation, Dictation,
Style, Dictation language, Keyboard, Keyboard layout, Privacy, Privacy policy, licences; the keyboard's
strip (password note, Undo dictation, Hex menu), the menu and its Style and feedback pages, a dictation
with nothing said ("没有听到说话"), the symbol page and the emoji panel: all in Chinese, nothing cut off.
- assembleDebug, testDebugUnitTest (64) and lintDebug (0 errors) pass.
|
||
| .. | ||
| src | ||
| build.gradle.kts | ||
| proguard-rules.pro | ||