i18n: single-pass placeholder substitution, and a test for the translator's disambiguation path #33
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
schaefera/utStudyBIble#33
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two follow-ups from #25's reviews (218 and the audit), for #14 part 2:
core/src/worker/session.rs(open_reader notice) fills%1and%2with chained.replace(). A value containing%2would be substituted again. SWORD module names are alphanumeric today, so it can't happen yet. Add a single-passtrsubstitution helper (e.g.tr_args("…", &[a, b])) and use it everywhere. This matters once part 2 brings in values a user can type.qt/main.cppCatalogueTranslator::translatereturns a null QString (so Qt shows the source) for a non-empty disambiguation or a null sourceText. Nothing exercises that branch. When part 2 adds context support, add a check (check-app or a C++ test) that aqsTr("…", "comment")string shows its source, or its translation once contexts are supported, and never shows a blank.