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