How to convert .xml to .po and back
Dear all,
Launchpad.net is really excellent for co-translation. So I'm going to build ADempiere ERP translation project here.( ADempiere ERP is an open source project on sourceforge.net, here is the link: http://
There is only one problem: I cannot convert .xml files to .po files.
I've tried po4a, but the .po file is not what I want. Here is the command I used:
$ po4a-gettextize -f guide -m origin.xml > untranslate.po
There are totally about 40 .xml files to translate in ADempiere ERP.
How can I convert them into .po files?
And how can I convert .po files back to the .xml?
Any suggestions are appreciated! Thanks!
Example of ADempiere xml file:
-------
<adempiereTrl language="en_US" table="AD_Window">
<row id="100" trl="Y">
<value column="Name" original=
<value column=
<value column="Help" original="TEST">The Table and Column Window defines all tables with their columns</value>
</row>
</adempiereTrl>
-------
.po file format that I want:
-------
#. type: Name
#: id="100"
msgid "Table and Column"
msgstr ""
#. type: Description
#: id="100"
msgid "Maintain Tables and Columns"
msgstr ""
#. type: Help
#: id="100"
msgid "The Table and Column Window defines all tables with their columns"
msgstr ""
-------
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- PeanutBlake
- Solved:
- Last query:
- Last reply: