Bug 34935 - ERM - "Agreement user" and "License user" not translatable
Summary: ERM - "Agreement user" and "License user" not translatable
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: I18N/L10N (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-27 16:27 UTC by Caroline Cyr La Rose
Modified: 2024-01-13 15:16 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caroline Cyr La Rose 2023-09-27 16:27:52 UTC
When adding an agreement in the ERM module, you can add users linked to that agreement. For each new user, there is a heading "Agreement user 1", "Agreement user 2", etc. This heading doesn't seem to be translatable. The only "Agreement user" I found in the po files is "Agreement user %s is missing a user".

To get there:

1. Enable ERMModule

2. Go to ERM > Agreements > New agreement > Add new user
--> A new heading says "Agreement user 1 Remove this user"

3. Update the po files

gulp po:update --lang fr-CA

4. Search the po files for "Agreement user"

grep "Agreement user" misc/translator/po/fr-CA*

--> The string is not in the po files
Comment 1 Caroline Cyr La Rose 2023-09-27 18:24:10 UTC
I just noticed that it is the same for "License user"
Comment 2 Katrin Fischer 2024-01-13 15:16:34 UTC
Verified this is still valid, I also found the spot in the code, but I am not sure how to fix it:

koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesFormAdd.vue

                <UserRoles
                    :user_type="$__('License user %s')"
                    :user_roles="license.user_roles"
                    :av_user_roles="av_user_roles"
                />

... and the same for "Agreement user".