XML feed mapping
-
Hello,
your plugin is awesome.
Many months ago i asked about a php function to translate my product xml feed from English in my languange -Greeks.
You sens me the bellow function which work like a charm.
function my_translate_data( $data ) {
$map = array(
‘Translate this’ => ‘To this’,
‘Add as many mapping rules’ => ‘As needed’,
‘In this’ => ‘Array’
);
return ( array_key_exists( $data, $map ) ) ? $map[ $data ] : $data;
}The problem is that the use of the function is also modify and the permalink in my languange. With other words i need to translate in Greeks the product title but leave the permalink slug in English.
Is this possible and if yes does it need to add an extra code in the php function?
Thank you in advance.
The page I need help with: [log in to see the link]
- The topic ‘XML feed mapping’ is closed to new replies.