Changes

Jump to navigation Jump to search
356 bytes added ,  17:13, 24 January 2008
Line 48: Line 48:  
You can install enabling ATRPMS repo and install po4a.
 
You can install enabling ATRPMS repo and install po4a.
   −
To test, at your panels dir /etc/e-smith/locale/
+
To test, at your panels dir /etc/e-smith/locale/en-us/etc/e-smith/web/functions choose one file to translate (ex. backup), and run
    
  po4a-gettextize -f xml -o tagsonly="<trans>" -m backup -p backup.po
 
  po4a-gettextize -f xml -o tagsonly="<trans>" -m backup -p backup.po
 +
 +
Then you can upload the file backup.po in Pootle and translate. Then run the following command to return the PO file to normal XML again.
    
  po4a-translate -k 0 -f xml -o tagsonly="<trans>" -m backup -p backup.po -l backup_translated
 
  po4a-translate -k 0 -f xml -o tagsonly="<trans>" -m backup -p backup.po -l backup_translated
 +
    
The last is XML2PO ( http://linux.die.net/man/1/xml2po )
 
The last is XML2PO ( http://linux.die.net/man/1/xml2po )
Line 58: Line 61:  
I have packaged for a better installation. You can download from  
 
I have packaged for a better installation. You can download from  
 
  http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/gnome-doc-utils-0.12.0-1.noarch.rpm
 
  http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/gnome-doc-utils-0.12.0-1.noarch.rpm
 +
 +
Before try, you must edit a few files. The first is /usr/bin/xml2po
 +
 +
Change at line 115 from "charset=UTF-8" to "charset=iso-8859-1"
985

edits

Navigation menu