Scripts to permit koha webpages to display in different natural languages
[koha.git] / translator / translator.readme
1 This is small note about 'translator.pl'.
2 Author: Pawel Skuza
3 email: pawelzc@cz.top.pl
4
5 Script 'translator.pl' do two things:
6 1. Prepare strings which can be translate;
7 2. Translate strings used gettext.
8
9 1. Prepare strings which can be translate.
10 Copy file 'translator.pl' into root koha directory and execute it.
11 eg. 
12     cd /usr/src/koha
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
19     
20 note: if you omnit 'some_file_name' translator create 'koha.gettext.c'
21     
22 2. Translate strings used gettext.
23 You have to configure your apache. Put this lines in koha and opac virtual:
24
25     Action text/html /cgi-bin/koha/translator.pl
26     Action text/plane /cgi-bin/koha/translator.pl
27
28 Don't forget set up the language preference in your browser.