Hi
So far, the olny why i knew to have 'lista-productos/[arguments]' pointing to 'list-products/[arguments]' where 'list-products' is a view path is cloning the view for the different languages.
I didn't like this solution because if you have 5 languages it's a nightmare to maintain this.
I "develop" this solution I hope it could help someone or you can post you own solution.
This is for Drupal 6 and I used the custom_url_rewrite_inbound function.
In settings.php I wrote the following:
$conf['url-views'] = array('productes' => array('es' => 'productos','en' => 'products', 'fr' => 'produits'));
function custom_url_rewrite_inbound(&$result, $path, $path_language) {
global $conf;
if (isset($conf['url-views'])) {
foreach($conf['url-views'] as $key => $url_view) {
if (preg_match('|^'.$url_view[i18n_get_lang()].'(/.*)|', $path, $matches)) {
$result = $key . $matches[1];
}
}
}
}
What it does is when url is "productos/[arguments]" the function rewrites url to "productes/[arguments]" but it's not a redirection and the original URL stills, good for SEO purposes.
I made this function to use $conf variable so you can configure to use multiple view paths for multiple languages. This variable works like this $conf['url-views'] = array('original path' => array('language' => 'translation view path' ...));