mvlcek Wrote:The link produced is correct, but the server immediately redirects to the URL without lang parameter.
Maybe you have canonical redirects switched on in your gsconfig.php.
I've run into similar problem both under GS 3.0, and 3.1r520.
When I click on prepared url to change language:
Code:
<li><a id="de" href="<?php echo htmlspecialchars(return_i18n_lang_url('de')); ?>" title="Deutsche Version">Deutsch</a></li>[/li]
Canonical redirects are disabled, menu is a flat menu bar, thus I use:
<?php get_i18n_navigation(return_page_slug(),0,0,I18N_SHOW_LANGUAGE); ?>
and it still doesn't work with, and without friendly urls.
What did I miss ?
edit: changing user agent info solved my problems at last.
i18n chooses language version automatically, basing on browser's language.
Addons: blue business theme, Online Visitors, Notepad