[Koha-bugs] [Bug 26130] opacbookbag 'Cart' confuses patrons - add optional name alternatives?

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 19 01:30:43 CEST 2020


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

--- Comment #14 from David Cook <dcook at prosentient.com.au> ---
(In reply to Katrin Fischer from comment #13)
> You might want to have a look at bug 26392 and join the discussion there.

Bug 26392 is... well I don't like it at all. I can't see people actually using
it. And if they're forced... then dev times will go up or devs might not happen
at all?

> The problem here is a bit specific as we are trying to figure out
> how to best way would be to have different translations for the same
> language.

Ah, that is an interesting idea. That actually fits more with the idea I
described rather than the one used in Bug 26392 (and all that other I18N module
stuff I'm seeing). If we used a token/msgid like "cart.nickname1" = "Cart",
"cart.nickname2" = "Bookbag", or whatever... you could have a dropdown system
preference to choose the "nickname" code (e.g. nickname1, nickname2, etc) that
you want to use, and then build the token string and pass that off to the I18N
system that fetches the translation from a dictionary. 

You can see that idea a bit in https://metacpan.org/pod/Catalyst::Plugin::I18N
with the following construct:

# MyApp/I18N/i_default.po
msgid "messages.hello.catalyst"
msgstr "Hello Catalyst - fallback translation"

[% l('messages.hello.catalyst') %]

(Of course, I think putting a .po file in a module lib path is horrifying, but
a person wouldn't have to do that.)

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


More information about the Koha-bugs mailing list