Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Support for multilanguage sites, Internationalization (I18N)
mvlcek Wrote:This happens, if you switch to german on a page that does not have a german version.

See http://mvlcek.bplaced.net/ (which currently works like this, but hides sub pages - I18N_FILTER_MENU | I18N_FILTER_LANGUAGE | I18N_FILTER_CURRENT):
  • if you switch the language on the index page (which has a german version), it will work as you want it to work
  • if you go to e.g. getsimple (which has no german version) on the english site and then switch to german, it will not find a german version and show the english page, thus the language is english and the english menu is shown. The same happens if you manually switch to a non-existing language, e.g. /?setlang=fr.
You have to make sure that the set language links link to existing pages, e.g. always to index, if this page exists in all languages.

Strange thing is that I had done it exactly the way you suggest and then it didn't work. As this is also the way I had done it on that other website.

Just tried it again, and now it does work!

However I did notice the language switch for the default language on the pages tab was suddenly back on the out-of-the-box 'de' instead of 'nl' I set and saved it to so maybe that was confusing it...

In any case, things seem to work fine now. Good to know that I was basically doing everything right (with the filter commands and language switch link), but odd that it didn't seem to work initially.
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 Draxeiro - 2012-05-06, 18:14:25



Users browsing this thread: 9 Guest(s)