[Koha-bugs] [Bug 31736] Context for translation: "All"

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jul 10 23:20:30 CEST 2023


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

--- Comment #3 from Caroline Cyr La Rose <caroline.cyr-la-rose at inlibro.com> ---
Created attachment 153302
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=153302&action=edit
Bug 31736: Context for translation: 'All' (All patron categories)

This patch adds context for translators for the term 'All' when it refers to
'All patron categories'.

1. Apply patch
2. View the following pages
   --> The pages work (no errors)
   --> No spelling errors in 'All' patron categories

   - Administration > Circulation and fines rules > Patron category column (All
in existing rule)
   - Administration > Circulation and fines rules > Patron category column (All
in drop-down to create a new rule)
   - Administration > Circulation and fines rules > Default waiting hold
cancellation policy > Patron category column (All in existing rule)
   - Administration > Circulation and fines rules > Default waiting hold
cancellation policy > Patron category column (All in drop-down to create a new
rule)
   - Administration > Circulation and fines rules > Default article request
fees > Patron category column (All in existing rule)
   - Administration > Circulation and fines rules > Default article request
fees > Patron category column (All in drop-down to create a new rule)
   - Installer > Onboarding > New circulation rule (Patron category)

3. Update the po files

   gulp po:update --lang xx-XX

   for example, gulp po:update --lang fr-CA

4. Check the xx-XX-messages.po file (e.g. misc/translator/po/fr-CA-messages.po)
   --> There should be an entry for 'All' with a line msgctxt that gives the
'All patron categories' context

5. Update the file with a random word or phrase for the 'All' translation

For example, I translated 'All' by "Toutes les catégories d'utilisateurs"

\#: koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt:215
\#: koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt:406
\#: koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt:892
\#: koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt:921
\#: koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt:1027
\#: koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt:1048
\#: koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt:75
msgctxt "All patron categories"
msgid "All"
msgstr "Toutes les catégories d'utilisateurs"

6. Install a new language
   6.1. Run the following commands in the terminal, replacing xx-XX with the
language code (e.g. fr-CA)

   ./misc/translator/translate install xx-XX

   6.2. In the Koha staff interface, go to Administration > System preferences
   6.3. Search for language
   6.4. Check the box next to the new language
   6.5. Save

7. Switch the language of the interface

8. Redo step 2
   --> The pages still work (no errors)
   --> The 'All' patron categories string should be replaced by whatever you
put in step 5

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list