[Koha-cvs] CVS: koha/misc/translator Makefile,1.1,1.1.2.1 translator_doc.html,1.2.2.1,1.2.2.2 translator_doc.txt,1.6.2.1,1.6.2.2

Ambrose C. LI acli at users.sourceforge.net
Sun Jan 23 05:57:54 CET 2005


Update of /cvsroot/koha/koha/misc/translator
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv985

Modified Files:
      Tag: rel_2_2
	Makefile translator_doc.html translator_doc.txt 
Log Message:
Minor corrections & clarifications, and make the command line examples
not break in the middle (like in the original version)


Index: Makefile
===================================================================
RCS file: /cvsroot/koha/koha/misc/translator/Makefile,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -r1.1 -r1.1.2.1
*** Makefile	30 Dec 2004 06:48:19 -0000	1.1
--- Makefile	23 Jan 2005 04:57:51 -0000	1.1.2.1
***************
*** 2,4 ****
  
  %.txt: %.html
! 	LANG=C w3m $< > $@
--- 2,7 ----
  
  %.txt: %.html
! 	set -x; sed -e 's/<blockquote>/&<table border=0 width="100%"><tr><td nowrap><pre>/g' -e 's/<\/blockquote>/<\/pre><\/table>&/g' $<|tee foo|LANG=C w3m -T text/html -cols 80 | sed -e 's/  *$$//g' | cat -s > $@
! 
! clean:
! 	rm translator_doc.txt

Index: translator_doc.html
===================================================================
RCS file: /cvsroot/koha/koha/misc/translator/translator_doc.html,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -C2 -r1.2.2.1 -r1.2.2.2
*** translator_doc.html	23 Jan 2005 04:31:07 -0000	1.2.2.1
--- translator_doc.html	23 Jan 2005 04:57:51 -0000	1.2.2.2
***************
*** 7,18 ****
  (with a number of associated perl module files):
  
! <ul>
  <li>xgettext.pl, that extracts the texts in a template,
!     and which is called by the script
  <li>tmpl_process3.tmpl, which can do 3 things:
!     <ul>
!     <li>create a file with all the "translatable strings" in all files in a directory (& its subdirectories)
!     <li>update an existing translation file.
!     <li>rebuild translated templates from english & translation file.
      </ul>
  </ul>
--- 7,18 ----
  (with a number of associated perl module files):
  
! <ol>
  <li>xgettext.pl, that extracts the texts in a template,
!     and which is called by the script; and
  <li>tmpl_process3.tmpl, which can do 3 things:
!     <ol type=a>
!     <li>create a file with all the "translatable strings" in all files in a directory (& its subdirectories),
!     <li>update an existing translation file, and
!     <li>rebuild translated templates from English & translation file.
      </ul>
  </ul>
***************
*** 35,41 ****
      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.)
  <li>Translate your css_opac_fr_FR.po file
      using a text editor or a PO file translation tool.
--- 35,43 ----
      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;
!     it makes the resulting PO files slightly shorter
!     and more usable in a team environment.
!     Absolute paths are certainly fine,
!     and might be better if there is only one translator for your language.)
  <li>Translate your css_opac_fr_FR.po file
      using a text editor or a PO file translation tool.
***************
*** 52,56 ****
  
  <p>
! If something changes in English version:
  <ol>
  <li>Update your translation file:
--- 54,58 ----
  
  <p>
! If something changes in the English version:
  <ol>
  <li>Update your translation file:

Index: translator_doc.txt
===================================================================
RCS file: /cvsroot/koha/koha/misc/translator/translator_doc.txt,v
retrieving revision 1.6.2.1
retrieving revision 1.6.2.2
diff -C2 -r1.6.2.1 -r1.6.2.2
*** translator_doc.txt	23 Jan 2005 04:31:07 -0000	1.6.2.1
--- translator_doc.txt	23 Jan 2005 04:57:51 -0000	1.6.2.2
***************
*** 5,15 ****
  2 scripts (with a number of associated perl module files):
  
!   * xgettext.pl, that extracts the texts in a template, and which is called by
!     the script
!   * tmpl_process3.tmpl, which can do 3 things:
!       + create a file with all the "translatable strings" in all files in a
!         directory (& its subdirectories)
!       + update an existing translation file.
!       + rebuild translated templates from english & translation file.
  
  Call tmpl_process3.pl --help to get a more detailed explanation. Some
--- 5,15 ----
  2 scripts (with a number of associated perl module files):
  
!  1. xgettext.pl, that extracts the texts in a template, and which is called by
!     the script; and
!  2. tmpl_process3.tmpl, which can do 3 things:
!      a. create a file with all the "translatable strings" in all files in a
!         directory (& its subdirectories),
!      b. update an existing translation file, and
!      c. rebuild translated templates from English & translation file.
  
  Call tmpl_process3.pl --help to get a more detailed explanation. Some
***************
*** 21,41 ****
   1. Create your translation file (assuming your current directory is this
      directory, i.e., misc/translator):
!    
!         ./tmpl_process3.pl create -i ../../koha-tmpl/opac-tmpl/default/en/ -s
!         po/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
      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_process3.pl install -i ../../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
!    
      (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.)
--- 21,40 ----
   1. Create your translation file (assuming your current directory is this
      directory, i.e., misc/translator):
! 
!         ./tmpl_process3.pl create -i ../../koha-tmpl/opac-tmpl/default/en/ -s po/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
      you want the generated PO file to appear. The use of relative paths for the
!     English templates is recommended; it makes the resulting PO files slightly
!     shorter and more usable in a team environment. Absolute paths are certainly
!     fine, and might be better if there is only one translator for your
!     language.)
   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_process3.pl install -i ../../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
! 
      (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.)
***************
*** 43,61 ****
      tmpl_process3.pl install).
  
! If something changes in English version:
  
   1. Update your translation file:
!    
!         ./tmpl_process3.pl update -i /home/paul/koha.dev/koha/koha-tmpl/
!         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_process3.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
!    
   4. Copy new images/css files in your new directory if needed
  
--- 42,57 ----
      tmpl_process3.pl install).
  
! If something changes in the English version:
  
   1. Update your translation file:
! 
!         ./tmpl_process3.pl update -i ../../koha-tmpl/opac-tmpl/default/en/ -s po/css_opac_fr_FR.po -r
! 
!  2. Translate your newly updated css_opac_fr_FR.po file. Look for strings
!     marked as "fuzzy" and strings that are not translated.
   3. Create your translated templates:
! 
!         ./tmpl_process3.pl install -i ../../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
! 
   4. Copy new images/css files in your new directory if needed
  





More information about the Koha-cvs mailing list