[Koha-bugs] [Bug 28240] New: Some classes in register.tt are translatable

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 27 22:40:29 CEST 2021


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

            Bug ID: 28240
           Summary: Some classes in register.tt are translatable
 Change sponsored?: ---
           Product: Koha
           Version: master
          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

Hiya!

I usually whine because things are not translatable, but today I will whine
because something is translatable. Hehe! 

I don't know if this is something that is meant to be this way or not, but the
classes for "debit" and "credit" in register.tt are translatable, which means
that, if translated, it prevents the colours from appearing. It's not the end
of the world, but I was surprised when I switched to English and saw the red
and green for debits and credits. 

To test:
1) Set up your system to use cash registers
(mine was already set up, so I'm doing this from memory)
  - In system preferences, enable UseCashRegisters
  - In Administration > Cash registers, set up a cash register
  - In Administration > Authorized values > PAYMENT_TYPE, add some payment
types
2) Make some transactions
  - In a patron's file add some manual fees
  - Pay some fees, write off some others
3) Go to Tools > Cashup registers 
4) Click on the register name <-- Notice debits are red and credits are green
5) Install a new language
(again, mine was already installed, so doing this from memory)
  - In the terminal, go to misc/translator
  - gulp po:update
  - ./translate install xx-XX
6) Translate the line that looks like
"{ \"type\": \"credit\", \"identifier\": \"%s\", \"description\": \"%s "
"(%s)\", \"amount\": \"%s\" }"
Remove the "fuzzy" line if needed
7) Update your translation
  - ./translate install xx-XX
8) Go back to Koha, change the language
9) Go to Tools > Cashup registers 
10) Click on the register name <-- Notice credits are black

Again, it's not the end of the world, we'll just have to tell translators not
to translate those lines.

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


More information about the Koha-bugs mailing list