[Koha-bugs] [Bug 33237] New: If TranslateNotices is off, use the interface language includes in slips

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 15 17:23:13 CET 2023


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

            Bug ID: 33237
           Summary: If TranslateNotices is off, use the interface language
                    includes in slips
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: I18N/L10N
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: caroline.cyr-la-rose at inlibro.com
        QA Contact: testopia at bugs.koha-community.org
                CC: frederic at tamil.fr

Most of our clients use Koha in one language only (French) and their patrons
are also all french-speakers. So they don't use TranslateNotices, since they
don't need to print slips in different languages.

However, if TranslateNotices is off, the translations for "includes" (in my
specific example, account types), are not taken into consideration and print in
English. Same if TranslateNotices is on, but the patron's language is Default.

In those cases, shouldn't it use the interface language rather than just print
in English?

To replicate:
1. Install the other language (i used fr-CA here)
     1.1. 

     gulp po:update fr-CA

     ./misc/translator/translate install fr-CA

     1.2. In Administration > Global system preferences, search for language
and check the added language

2. Create a manual invoice in a patron's account and pay it

3. From the Transactions tab, click 'Print' next to the payment line

   --> On the printed slip, the title is "Payment receipt" (OK)

4. Switch interface to other language

5. Redo step 3

   --> On the printed slip, the title is still "Payment receipt" (not ok)

6. In Administration > Global system preferences, enable TranslateNotices

7. Go to Tools > Notices and slips > ACCOUNT_CREDIT and copy the content of the
letter into all the languages

8. Redo step 3 (you should still be in the other language interface)

   --> On the printed slip, the title is still "Payment receipt" (not ok?)

9. Edit the patron's account and change the preferred language to the other
language

10. Redo step 3

    --> On the printed slip, the title is "Paiement receipt" (OK)


On step 3, the account type is in English in the English interface (OK)

On step 5, the account type is in English in the other interface, with
TranslateNotices off, I feel like the slip should take the interface into
account in this case for the include...

On step 8, TranslateNotices is on, but the patron's language is Default, I feel
like this should also take into account the interface language...

On step 10, TranslateNotices is on and patron language is set, these are
currently the only settings which allow to have the accounttypes in the other
language.

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


More information about the Koha-bugs mailing list