-
-
Notifications
You must be signed in to change notification settings - Fork 10
One translation key labels both a Customer heading and an Add button #446
Copy link
Copy link
Open
Labels
area: localizationTranslations, language packs, locale formatting, fontsTranslations, language packs, locale formatting, fontsbugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededsize: smallSmall, focused task suitable for a short PRSmall, focused task suitable for a short PR
Description
Activity
Metadata
Metadata
Assignees
Labels
area: localizationTranslations, language packs, locale formatting, fontsTranslations, language packs, locale formatting, fontsbugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededsize: smallSmall, focused task suitable for a short PRSmall, focused task suitable for a short PR
Found while seeding the language packs (#444). Same shape as #445:
lang_Addexpensingdoes two unrelated jobs.frontend/modals/customer.html:765
frontend/modals/expense.html:4
So one key has to be both the word "Customer" and the word "Add". No language can satisfy that.
Tamil currently renders
புதிய("new") for it, which is wrong in both places — the customer screen shows "new" where it means "Customer", and the expense modal reads "New Cash Book Entry" where the English says "Add Cash Book Entry". The second one is nearly right by luck, which is how it survived.The fix
lang_customer_titlealready exists and may be exactly right — check the surrounding markup for what the heading should read.lang_Addexpensingon the expense modal, or rename it to something that says what it is. The name suggests it started life there.languages/ta.jsonaccordingly, and any other pack with a word for it.node tests/tools/i18n-coverage.jsandnode --test tests/i18n.test.jsshould stay clean.Good first issue because
Two lines of markup and one language file. No build knowledge needed.
Worth checking while you are in there
These two were found by looking for one English string translated two different ways. There may be more of the same:
node tests/tools/i18n-coverage.js --review talists them, and about 27 came up. Most are harmless (the tag wraps only part of a phrase), but a few are this bug.