taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 307a9e2c711089e40a6af00d220e9f6c08b3371a
parent db1ce2bac7212b85aa58ea11466c130153fdb8d6
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri,  3 Jul 2026 15:35:20 +0200

do not render fuzzy translations

Diffstat:
Mpackages/pogen/src/po2ts.ts | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/packages/pogen/src/po2ts.ts b/packages/pogen/src/po2ts.ts @@ -112,6 +112,13 @@ export function po2ts(): void { continue; } const entry = domainTranslations[msgid]; + // Treat fuzzy entries as untranslated (standard gettext behaviour): + // msgmerge seeds fuzzy translations from unrelated nearby strings, so + // shipping them would surface wrong-meaning text. Fall back to English. + const flags = (entry.comments && entry.comments.flag) || ""; + if (flags.split(",").some((f) => f.trim() === "fuzzy")) { + continue; + } if (entry.msgid_plural) { messages[msgid] = [entry.msgid_plural, ...entry.msgstr]; } else {