https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43972

--- Comment #5 from Caroline Cyr La Rose <[email protected]> ---
Created attachment 211887
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211887&action=edit
Bug 43972: Add translation context for "Archived"

This patch adds translation context for the word "Archived" when used alone so
that it can be translated correctly depending on the context where it is used.

Note: Context is only added where the word is visible in the interface. It is
used in the debit and credit types tables, but it's a hidden table column.
Adding context in this situation does not make much sense.

Note: I consulted with ChatGPT (free version) while writing this and came
across obstacles.

Test plan:
1. Apply the patch
2. Install a new language

koha-translate --install fr-CA --dev kohadev

3. Update the strings

gulp po:update --lang fr-CA

4. In misc/translator/po/fr-CA-messages.po, there should be new entries for
"Archived currency" and "Archived suggestion". Translate those as you wish
(I used different translations just to make sure they were appearing in the
correct places) and save

msgctxt "Archived currency"
msgid "Archived"
msgstr "Devise archivée"

msgctxt "Archived suggestion"
msgid "Archived"
msgstr "Suggestion archivée"

5. Apply the new strings to the templates

ktd --root --shell

koha-translate --update fr-CA --dev kohadev

restart_all

6. Activate the new language in the StaffInterfaceLanguages
7. Switch the interface to the new language
8. Navigate to Administration > Currencies and exchange rates (Administration
> Devises et taux de change)
   --> There should be a column with the Archived currency translation
9. Go to Suggestions
10. Click New purchase suggestion (Nouvelle suggestion d'achat)
11. Fill out the title and save
12. Check the box for the suggestion and click Archive (Archiver)
13. Check the box Include archived (Inclure les suggestions archivées) and
    search
    --> Under the suggestion there should be a note with the Archived
    suggestion translation

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to