[Koha-bugs] [Bug 26547] Move context from msgid to msgctxt in pref PO files

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Sep 26 10:31:24 CEST 2020


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

--- Comment #1 from Julian Maurice <julian.maurice at biblibre.com> ---
Created attachment 110777
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=110777&action=edit
Bug 26547: Move context from msgid to msgctxt in pref PO files

String extraction for system preferences was putting context inside
msgid. For instance:

    # Accounting > Policy
    msgid "accounting.pref#FinePaymentAutoPopup# automatically display "
    "a print dialog for a payment receipt when making a payment.."

Now context is put into msgctxt, and the reference is set, which is
cleaner

    #:
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/accounting.pref
    msgctxt "Accounting > Policy > FinePaymentAutoPopup"
    msgid "automatically display a print dialog for a payment receipt "
    "when making a payment.."

The downside is that some messages will have to be re-translated,
especially short messages like 'Do', for which msgmerge has a hard
time finding the corresponding new msgid.

Test plan:
1. Run `gulp po:update`
2. Verify the contents of updated pref PO files
3. Run `cd misc/translator && ./translate install <lang>`
4. Verify that sysprefs are correctly translated
5. Run `prove t/misc/translator/xgettext-pref.t`

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


More information about the Koha-bugs mailing list