Skip to content

Commit 1a5db6b

Browse files
Merge pull request #163 from appdevforall/feat/ADFA-4537-tooltip-langs-wave2
ADFA-4537: tooltip help — add it/zh/ko/nl/tr machine translations (wa…
2 parents b0a68c0 + d4b04de commit 1a5db6b

33 files changed

Lines changed: 10828 additions & 2 deletions

‎controller/app/build.gradle‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ preBuild.dependsOn syncNativeArtifacts
400400
// committed help.db is used and checks are skipped (so local builds never break).
401401
def helpI18nDir = file("tools/help/i18n")
402402
def helpDb = file("src/main/assets/help.db")
403-
def helpRequiredLangs = "es,fr,hi,pt,ru"
403+
def helpRequiredLangs = "es,fr,hi,pt,ru,de,ja,ar,it,zh,ko,nl,tr,vi,pl,cs,in,fa,uk,ro,el,hu,sk,bg,sr,lt,no,az,bn,gu,ta,sw,yo"
404404
def helpPython = (System.getProperty("os.name").toLowerCase().contains("win")
405405
? ["py", "python", "python3"] : ["python3", "python"]).find { name ->
406406
try { def p = "${name} --version".execute(); p.waitFor(); p.exitValue() == 0 }
@@ -429,6 +429,13 @@ if (helpPython == null) {
429429
workingDir projectDir
430430
commandLine helpPython, "tools/help/build_help_db.py", "tools/help/i18n", helpDb.absolutePath
431431
}
432+
tasks.register("smokeHelpTranslations", Exec) {
433+
group = "help"
434+
description = "Integrity smoke test for tooltip localizations (markup, encoding, round-trip)."
435+
inputs.dir helpI18nDir
436+
workingDir projectDir
437+
commandLine helpPython, "tools/help/smoke_help.py", "tools/help/i18n", "--langs", helpRequiredLangs
438+
}
432439
tasks.register("extractHelpPot", Exec) {
433440
group = "help"
434441
description = "Regenerate strings.pot from the English source (run on demand)."
400 KB
Binary file not shown.

‎controller/app/tools/help/README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Build pipeline (pure Python stdlib — no external packages; run by Gradle):
2020
`-PhelpAllowMissing=true` downgrades to a warning for local debugging (CI stays strict).
2121
3. `build_help_db.py` — compile `i18n/` → `../../src/main/assets/help.db`
2222
(one DB, `lang` column). Missing strings fall back to English.
23+
3.5. `smoke_help.py` — integrity smoke test (`<b>` markup balance vs. English, placeholders,
24+
encoding, empty strings, untranslated heuristic + DB round-trip). Run: `./gradlew smokeHelpTranslations`.
25+
2326

2427
Required languages (build fails if incomplete): `en, es, fr, hi, pt, ru`.
2528
Adding languages toward ~50 is "correction, not construction": drop in a new

‎controller/app/tools/help/build_help_db.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
1414
import pohelper
1515

16-
DEFAULT_LANGS = ["en", "es", "fr", "hi", "pt", "ru"]
16+
DEFAULT_LANGS = ["en", "es", "fr", "hi", "pt", "ru", "de", "ja", "ar", "it", "zh", "ko", "nl", "tr", "vi", "pl", "cs", "in", "fa", "uk", "ro", "el", "hu", "sk", "bg", "sr", "lt", "no", "az", "bn", "gu", "ta", "sw", "yo"]
1717

1818
def load_structure(d):
1919
s = {}

‎controller/app/tools/help/i18n/ar.po‎

Lines changed: 383 additions & 0 deletions
Large diffs are not rendered by default.

‎controller/app/tools/help/i18n/az.po‎

Lines changed: 383 additions & 0 deletions
Large diffs are not rendered by default.

‎controller/app/tools/help/i18n/bg.po‎

Lines changed: 383 additions & 0 deletions
Large diffs are not rendered by default.

‎controller/app/tools/help/i18n/bn.po‎

Lines changed: 383 additions & 0 deletions
Large diffs are not rendered by default.

‎controller/app/tools/help/i18n/cs.po‎

Lines changed: 383 additions & 0 deletions
Large diffs are not rendered by default.

‎controller/app/tools/help/i18n/de.po‎

Lines changed: 383 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)