1 This is a small note about 'translator.pl'.
3 email: pawelzc@cz.top.pl
5 The Script 'translator.pl' does two things:
6 1. Prepares strings that can be translated;
7 2. Translates strings using gettext.
9 1. Prepare strings which can be translated.
10 Copy file 'translator.pl' into koha root directory and execute it.
13 cp scripts/translator.pl .
14 ./translator.pl some_file_name
15 xgettext some_file_name -okoha.pot
16 vi koha.pot //now you must translate koha.pot
17 msgfmt koha.pot -okoha.mo
18 cp koha.mo /usr/share/locale/$$/LC_MESSAGES //where $$ is your language
20 note: if you omit 'some_file_name' the translator will create 'koha.gettext.c'
22 2. Translate strings using gettext.
23 You have to configure your apache. Put these lines into koha and opac virtual servers:
25 Action text/html /cgi-bin/koha/translator/translator.pl
26 Action text/plane /cgi-bin/koha/translator/translator.pl
28 Don't forget to set up the language preference in your browser.
30 Enjoy koha in your language!