From 8664309215ed28729dfa9148001e8988fbbd0a19 Mon Sep 17 00:00:00 2001 From: tipaul Date: Mon, 3 Jan 2005 16:30:13 +0000 Subject: [PATCH] updating doc & adding a script to rebuild officially supported languages --- misc/translator/rebuild_lang.sh | 9 +++++++++ misc/translator/translator_doc.txt | 23 +++++++++++------------ 2 files changed, 20 insertions(+), 12 deletions(-) create mode 100644 misc/translator/rebuild_lang.sh diff --git a/misc/translator/rebuild_lang.sh b/misc/translator/rebuild_lang.sh new file mode 100644 index 0000000000..be036e592a --- /dev/null +++ b/misc/translator/rebuild_lang.sh @@ -0,0 +1,9 @@ +#!/bin/sh +./tmpl_process3.pl install -r -s po/css_opac_fr_FR.po -i ../../koha-tmpl/opac-tmpl/css/en -o ../../koha-tmpl/opac-tmpl/css/fr +./tmpl_process3.pl install -r -s po/default_intranet_fr_FR.po -i ../../koha-tmpl/intranet-tmpl/default/en -o ../../koha-tmpl/intranet-tmpl/default/fr + +./tmpl_process3.pl install -r -s po/css_opac_zh_TW.po -i ../../koha-tmpl/opac-tmpl/css/zh_TW -o ../../koha-tmpl/opac-tmpl/css/zh_TW +./tmpl_process3.pl install -r -s po/default_intranet_zh_TW.po -i ../../koha-tmpl/intranet-tmpl/default/en -o ../../koha-tmpl/intranet-tmpl/default/zh_TW + +./tmpl_process3.pl install -r -s po/css_opac_es_AR.po -i ../../koha-tmpl/opac-tmpl/css/zh_TW -o ../../koha-tmpl/opac-tmpl/css/es_AR +./tmpl_process3.pl install -r -s po/default_intranet_es_AR.po -i ../../koha-tmpl/intranet-tmpl/default/en -o ../../koha-tmpl/intranet-tmpl/default/es_AR diff --git a/misc/translator/translator_doc.txt b/misc/translator/translator_doc.txt index d1a0840357..2e1b226c3d 100644 --- a/misc/translator/translator_doc.txt +++ b/misc/translator/translator_doc.txt @@ -21,8 +21,7 @@ HOW TO TRANSLATE Koha: 1. Create your translation file (assuming your current directory is this directory, i.e., misc/translator): - ./tmpl_process.pl create -i ../../koha-tmpl/opac-tmpl/default/en/ -s - css_opac_fr_FR.po -r + ./tmpl_process3.pl create -i ../../koha-tmpl/opac-tmpl/default/en/ -s css_opac_fr_FR.po -r (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 @@ -33,9 +32,7 @@ HOW TO TRANSLATE Koha: translation tool. 3. Create your translated templates: - ./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 + ./tmpl_process3.pl install -i ../../koha-tmpl/opac-tmpl/default/en/ -o ../../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.) @@ -46,18 +43,21 @@ If something changes in English version: 1. Update your translation file: - ./tmpl_process.pl update -i /home/paul/koha.dev/koha/koha-tmpl/ - opac-tmpl/default/en/ -s po/css_opac_fr_FR.po -r + ./tmpl_process3.pl update -i ../../opac-tmpl/default/en -s po/css_opac_fr_FR.po -r 2. Translate your new css_opac_fr_FR.po file. Look for strings marked as "fuzzy" and strings that are not translated. 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 po/css_opac_fr_FR.po -r + ./tmpl_process.pl install -i ../../koha-tmpl/opac-tmpl/default/en/ -o ../../koha-tmpl/opac-tmpl/default/fr2/ -s po/css_opac_fr_FR.po -r 4. Copy new images/css files in your new directory if needed + +REBUILD ALL +=========== +The rebuild_lang.sh script can be used to rebuild all languages officially supported in 2.2 release, when needed. +Useful for developpers, probably useless for all end-users. + WEAKNESSES ========== @@ -70,5 +70,4 @@ COPYRIGHT * Paul Poulain (paul.poulain _@_ free.fr) & Jerome Vizcaino (vizcainj _@_ esiee.fr) - * Parts of V3.0 by Ambrose Li (acli _@_ ada.dhs.org) - + * Parts of V3.0 by Ambrose Li (acli _@_ ada.dhs.org) \ No newline at end of file -- 2.39.5