inpsyde / wpml2mlp

Convert posts from an existing WPML multilingual site via WXR Export/Import for MultilingualPress
https://wordpress.org/plugins/wpml-to-multilingualpress/
GNU General Public License v2.0
10 stars 6 forks source link

Export: change translations tag #29

Closed derpixler closed 8 years ago

derpixler commented 8 years ago

at the current version of export files the translation relations will saved as a single tag with attributes.

<wp:translation lang="de" post_id="2485"/>
<wp:translation lang="nl" post_id="769"/>
<wp:translation lang="es" post_id="2563"/>
<wp:translation lang="fr" post_id="2594"/>
<wp:translation lang="it" post_id="2546"/>

For consistency parsing we want use this format.

<wp:translation>
    <wp:locale>nl_NL</wp:locale>
    <wp:element_id>4711</wp:element_id>
</wp:translation>