[Po4a-devel] Question about xml -> pot with po4a - from ADempiere ERP community

Peanut Blake peanutblake at yahoo.com
Sun Jul 11 06:55:01 UTC 2010


Dear all,

I am from ADempiere open source ERP. I am using po4a for translation. Thank you very much for your good work! 
Now I meet trouble need your help.

I have one xml file like:

  <row id="103" trl="Y">
    <value column="Name" original="Minutes">Minutes</value>
    <value column="UOMSymbol" original="m  " pot-remark="Short form of 'Minutes'. Don't translate @@ID-103@@.">m  @@id-103@@</value>
  </row>


I want to convert to POT file like:

#. Content of: <id-103><Name>
#, no-wrap
msgid "Minutes"
msgstr ""

#. Content of: <id-103><UOMSymbol>
#. Short form of 'Minutes'. Don't translate @@ID-103@@.
#, no-wrap
msgid "m  @@id-103@@"
msgstr ""

I have two questions:

1. How to put remark in xml to POT?
   for example, put 
"pot-remark="Short form of 'Minutes'. Don't translate @@ID-103@@.""  
   to 
"#. Short form of 'Minutes'. Don't translate @@ID-103@@."

2. How to put id & column in xml to POT?
    for example, put 
id="103"  column="Name"
    to
#. Content of: <id-103><Name>

Does po4a already provide such functions?

Thank you!

Peanut Blake
from ADempiere ERP community



      




More information about the Po4a-devel mailing list