Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Support for multilanguage sites, Internationalization (I18N)
Hi,

First of all, thank you for the excellent plugin.

I do have a slight problem and can't seem to solve it, hopefully you can help me get around.

I am using the following in my header to switch the language of the page

Code:
<a id="lang-de" href="<?php echo htmlspecialchars(return_i18n_setlang_url('de')); ?>">Deutsch</a>
<a id="lang-en" href="<?php echo htmlspecialchars(return_i18n_setlang_url('en')); ?>">English</a>

I am also using language in the url (%language%/%parent%/%slug%) and rules required for this to work are placed in the .htaccess file.

Two languages are defined and everything works correctly (switching between the two versions of the page).

The problem I have is with the index page.

I have an index page (slug is greyed out, can't be changed) in my default language (de) and have an english translation of that page with the slug index_en.

What happens on the index page is that it always returns to the index page in the default language (de) regardless of the language button clicked.

Is there a way to make this work on the index page as well?

And one more question - is it possible to disable auto-language detection and always use the predefined language when first loading any of the pages (before $_SESSION is set)?

Why I ask this - browsers are usually set to English language by default and many people don't bother to go to their preferred browser's settings to add another language.
Reply


Messages In This Thread
rewrite language problem - by tomkop - 2013-03-27, 06:34:44
Enhancement suggestion - by hameau - 2013-05-12, 04:17:12
Enhancement request - by hameau - 2013-06-14, 20:02:07
RE: Enhancement request - by mvlcek - 2013-06-14, 22:04:12
RE: Enhancement request - by hameau - 2013-06-14, 23:01:36
Duplicate language cookies bug - by enzy - 2013-08-20, 07:03:26
RE: Duplicate language cookies bug - by ohayo - 2013-08-20, 18:12:25
Plugin is not shown - by tosho - 2013-09-15, 12:10:37
1000 pages limit in i18n_navigation - by titus - 2014-10-13, 21:58:36
Bug found - by lbarsov - 2014-10-17, 03:41:53
Menu with picture - by Dimi - 2015-04-28, 16:05:45
Rendering Menu in Component - by Alexander_ - 2016-05-04, 23:06:51
Meta desc for different languages - by Alexander_ - 2017-02-14, 20:29:32
Hierarchical Menus - by celextel - 2019-07-26, 16:41:47
Ri18n_navigation - by celextel - 2021-02-19, 16:07:48
Support for multilanguage sites, Internationalization (I18N) - by dizarter - 2011-09-24, 09:14:04



Users browsing this thread: 8 Guest(s)