[Koha-devel] Questions regarding localization

Roger Grossmann roger.grossmann at lmscloud.de
Fri Nov 18 16:12:02 CET 2016


Hi all,

as a Koha development newbie I am having a few questions especially with localization. 
I am developing enhancements which I plan to bring in to the community hopefully soon. Your answers will help to make progress with it.

1st question
----------------
After looking at much Koha code I did not find a solution to build server side localized strings to persist localized text in the database. 
What do you recommend to use here?

Background: 
As you know, fines and fees are a sensitive area. Borrowers like to know exactly why they are charged and for what exactly. 
Lets assume, you want to store good localized name for the type of an overdue fine. 
It was for instance planned for function "UpdateFine" in C4::Overdues but the parameter $type is never filled as originally planned.
If an additional type name would be passed here, it needed to be a localized string since borrowers want to read the charge reason in their language.
As this is just an example for the use of a localized server text, the question is, whether there is already an approach to manage localised server side texts.
Ideally, server side texts would support parameter replacement that is not dependent of the position in the text as for instance with %s using sprintf.

2nd question
-----------------
I want to build some new UI functionality. The procedure how to do that with templates in english first is clear to me.
As I am German, I would like to build during development a first German version of the template as well and would like to extend the related German .po file.
How can I add the texts for a specific language in my development environment? 
Is there a way to extract the new texts of templates and add them to an existing .po file with a script and use poedit to translate them?
How do you do that?

Thanks in advance for your help.

Best regards,
Roger


--
Roger Großmann
LMSCloud GmbH
Konrad-Zuse-Platz 8 - D-81829 München
t +49 (0)89 207042-620  m +49 (0)171-2194775 f +49 (0)89 207042-623
e roger.grossmann at lmscloud.de
w www.lmscloud.de



More information about the Koha-devel mailing list