fix: make string plural-compatible for non-English langs + add translator hints - #90
fix: make string plural-compatible for non-English langs + add translator hints#90emberfiend wants to merge 1 commit into
Conversation
…ator hints Signed-off-by: Andrew Backhouse <andrew.backhouse@nextcloud.com>
|
Reviewed this — the direction is right and the translator-hints half works exactly as intended. There's one blocking bug, which is why TL;DR
1. Why the render throws (blocker)
Compiling the SFC with the repo's own
Worth noting Also: this is precisely the class of bug #49 exists to catch. 2. The translation cost (undisclosed)
Changing a singular msgid into a plural msgid pair makes the old source string obsolete on Transifex, and the new key starts empty. That's a reasonable trade for getting the grammar right, but it's the sort of thing that should be in the PR description so nobody's surprised by it post-merge. 3. Give the English forms distinct textIdentical singular and plural msgids are legal and the l10n README even demonstrates it ( n('office', '%n file found in {category}', '%n files found in {category}',
files.length, { category: activeCategoryName })
Argument order in the current call is correct, for what it's worth: 4. The TRANSLATORS comments work — no change neededI assumed HTML comments in a Vue Generated the POT against both Both land. Also checked that the comment nodes surviving into the dev-build DOM don't affect the Happy to push the one-line import fix if that's easier than a round trip. Tangentially: the (Review assisted by Claude Code; findings verified against source, a POT generated with the real |
fix: make string plural-compatible for non-English langs + add translator hints