The 2 posts above are not enough to get the sitemaps functionality 100% ok when using a multi language setup, the urls generated are always for the default language.
To fix this you need to change 2 files (thanks tho user "pages" for pointing this out)
In /includes/modules/ultimate_seo_urls5/page_modules/ apply this change to both files product_info.php and index.php
replace:
protected function acquireLinkText() {
if ( false !== $final_text_array = Usu_Main::i()->getVar( 'registry' )
->retrieve( $this->key, $this->keys_index[$this->key] ) ) {
if ( Usu_Main::monitorPerformance() ) {
Usu_Main::$performance['queries_saved']++;
}
return $final_text_array;
}
$result = Usu_Main::i()->query( $this->query );
with
protected function acquireLinkText() {
// BOF fixes sitemaps multi language url
if (!($_SERVER['REQUEST_URI'] == "/usu5_sitemaps/" || $_SERVER['REQUEST_URI'] == "/usu5_sitemaps/index.php")) {
if ( false !== $final_text_array = Usu_Main::i()->getVar( 'registry' )->retrieve( $this->key, $this->keys_index[$this->key] ) ) {
if ( Usu_Main::monitorPerformance() ) {
Usu_Main::$performance['queries_saved']++;
}
return $final_text_array;
}
}
// EOF fixes sitemaps multi language url
$result = Usu_Main::i()->query( $this->query );