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

Term Locals as Object #34

Closed derpixler closed 8 years ago

derpixler commented 8 years ago

at the current solution we work with an array like this:

'locale_relations' => array(
                'en_US' => 13,
                'fr_CH' => 32
            )

A better way is working in this case with an object:

interface W2M\Import\Type\LocaleRelationInterface {

    /**
     * @return int
     */
    public function origin_id();

    /**
     * @return string
     */
    public function locale();
}