Recommend relative paths for English template location, to make PO files

somewhat easier to read
This commit is contained in:
acli 2004-12-30 06:58:19 +00:00
parent 5c84b3411e
commit 78c09f8e7b
2 changed files with 21 additions and 14 deletions

View File

@ -24,19 +24,23 @@ perldoc tmpl_process3.pl.
<br>=====================</h2>
<ol>
<li>Create your translation file:
<li>Create your translation file
(assuming your current directory is this directory, i.e., misc/translator):
<blockquote>
./tmpl_process.pl create -i /home/paul/koha.dev/koha/koha-tmpl/opac-tmpl/default/en/ -s css_opac_fr_FR.po -r
./tmpl_process.pl create -i ../../koha-tmpl/opac-tmpl/default/en/ -s css_opac_fr_FR.po -r
</blockquote>
<p>(In the above example,
/home/paul/koha.dev/koha/koha-tmpl/opac-tmpl/default/en/
../../koha-tmpl/opac-tmpl/default/en/
contains the English templates in the "default" theme,
and po/css_opac_fr_FR.po is where you want the generated PO file to appear.)
and po/css_opac_fr_FR.po is where you want the generated PO file to appear.
The use of relative paths for the English templates is recommended
but is not necessary;
it makes the resulting PO files somewhat easier to read.)
<li>Translate your css_opac_fr_FR.po file
using a text editor or a PO file translation tool.
<li>Create your translated templates:
<blockquote>
./tmpl_process.pl install -i /home/paul/koha.dev/koha/koha-tmpl/opac-tmpl/default/en/ -o /home/paul/koha.dev/koha/koha-tmpl/opac-tmpl/default/fr2/ -s css_opac_fr_FR.po -r
./tmpl_process.pl install -i ../../koha-tmpl/opac-tmpl/default/en/ -o /home/paul/koha.dev/koha/koha-tmpl/opac-tmpl/default/fr2/ -s css_opac_fr_FR.po -r
</blockquote>
<p>
(In the above example,

View File

@ -18,21 +18,24 @@ additional explanations are also available by calling perldoc tmpl_process3.pl.
HOW TO TRANSLATE Koha:
=====================
1. Create your translation file:
1. Create your translation file (assuming your current directory is this
directory, i.e., misc/translator):
./tmpl_process.pl create -i /home/paul/koha.dev/koha/koha-tmpl/
opac-tmpl/default/en/ -s css_opac_fr_FR.po -r
./tmpl_process.pl create -i ../../koha-tmpl/opac-tmpl/default/en/ -s
css_opac_fr_FR.po -r
(In the above example, /home/paul/koha.dev/koha/koha-tmpl/opac-tmpl/default
/en/ contains the English templates in the "default" theme, and po/
css_opac_fr_FR.po is where you want the generated PO file to appear.)
(In the above example, ../../koha-tmpl/opac-tmpl/default/en/ contains the
English templates in the "default" theme, and po/css_opac_fr_FR.po is where
you want the generated PO file to appear. The use of relative paths for the
English templates is recommended but is not necessary; it makes the
resulting PO files somewhat easier to read.)
2. Translate your css_opac_fr_FR.po file using a text editor or a PO file
translation tool.
3. Create your translated templates:
./tmpl_process.pl install -i /home/paul/koha.dev/koha/koha-tmpl/
opac-tmpl/default/en/ -o /home/paul/koha.dev/koha/koha-tmpl/opac-tmpl/
default/fr2/ -s css_opac_fr_FR.po -r
./tmpl_process.pl install -i ../../koha-tmpl/opac-tmpl/default/en/ -o /
home/paul/koha.dev/koha/koha-tmpl/opac-tmpl/default/fr2/ -s
css_opac_fr_FR.po -r
(In the above example, /home/paul/koha.dev/koha/koha-tmpl/opac-tmpl/default
/fr2/ is where you want your translated templates to be saved.)