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

Corrupt destination language at export #18

Closed derpixler closed 8 years ago

derpixler commented 8 years ago

The destination language on xliff-files is wrong.

Note: wpml set the current lang at admin area by Filter at the post overview and at the admin bar!

In this case the current lang is set by the method Wpml2mlp_Helper::get_main_language(); here is going some wrong, so that we get not the real current lang.

italian

italian-source-view


Solution

A save way to get the current lang-code is to use the constant ICL_LANGUAGE_CODE lock at the wpml API