Bug 11504

Summary: Untranslatable "Item Type" or "Collection Code" in branch transfer limits
Product: Koha Reporter: paxed <pasi.kallinen>
Component: I18N/L10NAssignee: Bernardo Gonzalez Kriegel <bgkriegel>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: bgkriegel, f.demians, tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 11504: Untranslatable "Item Type" or "Collection Code" in branch transfer limits
Bug 11504: Untranslatable "Item Type" or "Collection Code" in branch transfer limits
[PASSED QA] Bug 11504: Untranslatable "Item Type" or "Collection Code" in branch transfer limits

Description paxed 2014-01-09 09:05:28 UTC
The string "Item Type" or "Collection Code" shows up in branch transfer limits, eg. in the text "For all Item Types:", and does not come via the i18n toolchain.

The text is hard-coded in admin/branch_transfer_limits.pl
Comment 1 Bernardo Gonzalez Kriegel 2014-08-14 23:00:23 UTC Comment hidden (obsolete)
Comment 2 Bernardo Gonzalez Kriegel 2014-08-14 23:02:54 UTC
Sorry, apply the patch and then follow test plan.
Comment 3 Chris Cormack 2014-08-15 02:06:02 UTC Comment hidden (obsolete)
Comment 4 Katrin Fischer 2014-08-15 14:15:06 UTC
Created attachment 30840 [details] [review]
[PASSED QA] Bug 11504: Untranslatable "Item Type" or "Collection Code" in branch transfer limits

This patch makes reported strings translatable.

To test:
1. Go to Administration > Library transfer limits

2. Depending on the value of BranchTransferLimitsType
your may see in a box:
a) For *all* Collection codes:
b) For *all* Item types:

change system preference to show both values

3. Update translation files for your preferred language
check new entry
msgid "%sCollection codes%sItem types%s: "

Not pretty but can be translated.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
I have to confess that I lower cased the collections and item
types as they appear in a sentence.
No other changes made and this works nicely.
Comment 5 Tomás Cohen Arazi 2014-08-15 18:45:25 UTC
Patch pushed to master.

Thanks Bernardo!