2013-05-27, 05:00:23
(2013-05-26, 20:43:01)Carlos Wrote: But if it's a single language site (where I18N is used just because of its non-language-related features like the advanced navigation/multilevel structure/etc.), there's not a wrong language - there's only one. So the lang parameter could be suppressed.
You are right. But using the get_i18n_available_languages function might slow down the site, if it is called often.
In one of the last releases I added a check for constant I18N_SINGLE_LANGUAGE: if set to true, no languages are shown on the pages view. I will add the check to the URL functions, too. Thus you will be able to get this behaviour by adding the constant (with value true) to your gsconfig.php.