Skip to content

One translation key labels both a Customer heading and an Add button #446

Open

Description

@sridharkalaibala

Found while seeding the language packs (#444). Same shape as #445: lang_Addexpensing does two unrelated jobs.

frontend/modals/customer.html:765

<lang class="lang_Addexpensing">Customer</lang>

frontend/modals/expense.html:4

<span id="expenses_title"><lang class="lang_Addexpensing">Add</lang></span>&nbsp;<lang class="lang_expensing">Cash Book Entry</lang>

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

  1. Give the customer heading its own key. lang_customer_title already exists and may be exactly right — check the surrounding markup for what the heading should read.
  2. Leave lang_Addexpensing on the expense modal, or rename it to something that says what it is. The name suggests it started life there.
  3. Update languages/ta.json accordingly, and any other pack with a word for it.
  4. node tests/tools/i18n-coverage.js and node --test tests/i18n.test.js should 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 ta lists them, and about 27 came up. Most are harmless (the tag wraps only part of a phrase), but a few are this bug.

Activity

  1. added
    bug
    good first issue
    help wanted
    area: localization
    size: small
    on Sep 2, 2026
  2. Sj14122004 commented on Sep 4, 2026

    @Sj14122004
    Contributor

    Hi @sridharkalaibala,

    I’d like to work on this issue. I’ll first check the customer and expense markup to confirm how lang_Addexpensing and lang_customer_title are currently being used.

    I’ll give the Customer heading its own translation key, keep lang_Addexpensing for the expense modal, and update the Tamil language pack so both strings display their correct meaning.

    I’ll then run node tests/tools/i18n-coverage.js and node --test tests/i18n.test.js to verify that the translation changes are correct and don’t introduce any coverage or localization issues.

    I’d like to be assigned to this issue.

  3. sridharkalaibala commented on Sep 4, 2026

    @sridharkalaibala
    ContributorAuthor

    Thanks for the clear plan. You are still assigned to #161, so please keep that as your one active issue for now. Once its PR is open and review feedback is settled, come back here and we can assign this translation fix.

  4. RNisitha commented on Nov 16, 2026

    @RNisitha

    Hi Posnic Team,
    I'm interested in working on issue #446 as my first open-source contribution.
    I'd like to fix the translation key conflict between the Customer heading and Add button.
    Could you please assign this issue to me?
    Thank you!

  5. sridharkalaibala commented on Nov 19, 2026

    @sridharkalaibala
    ContributorAuthor

    Thanks for volunteering, @RNisitha, and sorry for the delayed reply. Please start by checking whether the conflict still reproduces on current develop, and share the affected markup and translation keys here. The earlier expression of interest did not become an assignment, so there is no current assignee.

    Keep this as one focused contribution: separate the heading/button keys, preserve the expense label, and run the relevant i18n coverage and regression tests. If it is already fixed, please report what you found instead of creating duplicate changes. Once the current scope is confirmed, we can assign it to you.

  6. RNisitha commented on Nov 29, 2026

    @RNisitha

    Hi @sridharkalaibala,

    Apologies for the delayed response.

    I checked the current develop branch and found that the original translation key conflict appears to have already been resolved.

    • frontend/modals/customer.html:786 now uses lang_newcustomer_title.

    • frontend/modals/expense.html:4 now uses lang_nav_add for Add and lang_cash_book_entry for Cash Book Entry.

    • The corresponding keys are present in languages/ta.json.

    Runtime verification and regression tests are still pending. I have not made any duplicate changes.

    Please let me know if there is another suitable issue I can contribute to.

    Thank you for your guidance!

  7. sridharkalaibala commented on Nov 30, 2026

    @sridharkalaibala
    ContributorAuthor

    Thanks, @RNisitha, for checking current develop and avoiding duplicate changes. Your source findings suggest the original key conflict is already addressed, but runtime/regression verification is still pending, so we should not call it fully verified yet. A useful focused contribution would be to run node tests/tools/i18n-coverage.js and node --test tests/i18n.test.js, check the two labels in the UI, and report results here; only add a regression test if coverage is missing. If you prefer documentation work instead, #434 is currently unassigned: read its scope and comment there before starting so we can confirm availability. Please keep one contribution active at a time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: localizationbuggood first issuehelp wantedsize: small

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions