Changes

Jump to navigation Jump to search
5 bytes removed ,  09:46, 2 February 2008
Line 28: Line 28:  
:Line 35 from "return []" to "return ['trans']"
 
:Line 35 from "return []" to "return ['trans']"
   −
===Create .po===
+
===Create .po and export xml===
Now you can test xml2po.
  −
 
   
To test the lexicons
 
To test the lexicons
 
  xml2po -m empty -e -o backup.po backup
 
  xml2po -m empty -e -o backup.po backup
Line 36: Line 34:  
View the new bakup.po file in the new PO format. Excellent. Now you can translate PO with pootle, and return again to formmagick panel with this command:
 
View the new bakup.po file in the new PO format. Excellent. Now you can translate PO with pootle, and return again to formmagick panel with this command:
   −
  xml2po -p backup.po backup > new_backup
+
  xml2po -p backup.po backup > backup.new
 
  −
As you can see, if you not translate backup.po, new_backup file is equal to original backup file, BUT with one diference. new_backup file has added at the header:
      +
As you can see, if you not translate backup.po, new_backup file is equal to original backup file, BUT with one difference, backup.new file has added a line at the header: Do we have to remove this line. ?
 
  <?xml version="1.0" encoding="utf-8"?>
 
  <?xml version="1.0" encoding="utf-8"?>
  −
Do we have to remove this line. ?
      
===bugs===
 
===bugs===

Navigation menu