small fixes : opac lib is the same as librarian lib by default.
[koha.git] / translator / translator.readme
1 This is a small note about 'translator.pl'.
2 Author: Pawel Skuza
3 email: pawelzc@cz.top.pl
4
5 The Script 'translator.pl' does two things:
6 1. Prepares strings that can be translated;
7 2. Translates strings using gettext.
8
9 1. Prepare strings which can be translated.
10 Copy file 'translator.pl' into koha root 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.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
19     
20 note: if you omit 'some_file_name' the translator will create 'koha.gettext.c'
21     
22 2. Translate strings using gettext.
23 You have to configure your apache. Put these lines into koha and opac virtual servers:
24
25     Action text/html /cgi-bin/koha/translator/translator.pl
26     Action text/plane /cgi-bin/koha/translator/translator.pl
27
28 Don't forget to set up the language preference in your browser.
29
30 Enjoy koha in your language!
31