Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Support for multilanguage sites, Internationalization (I18N)
(2013-04-10, 04:47:21)mvlcek Wrote: If you don't encode the language in the URL, the language will default to the user's prefered language from his browser settings. If none of the languages matches, it will default to the default language (the pages without _xx in the slug).
Well, despite the fact that I'm Czech I use English Windows 7 and English Opera. Ok, thanks for the explanation. Maybe I'll try if it really works right on "Czech" computers.

(2013-04-10, 04:47:21)mvlcek Wrote: Please ask this question in the News Manager thread. I don't know the News manager and its support for multiple languages.
I will.

(2013-04-10, 04:47:21)mvlcek Wrote: Looks fine.

If you are using Chrome, you need to have a favicon.ico in your root directory (see first post in this thread).
Otherwise I can't tell without a link to your site.
I'm using Opera. I added the icon, I was about to put it there anyway. The site is under a password in a deep folder structure. To eliminate the chance that this would make it not work, I moved it onto a free hosting into root where my personal website was. I set up everything as it should be - as I mentioned as the point #3. Please, look at the site and its behaviour: http://tomas-janecek.php5.cz . Thanks for your time, I don't really know what's wrong. I think you won't have any problems differencing Czech from English, I don't think you understand Czech. Furthermore, you can see the flag of the current language highlighted in the top right corner. Don't look at the design, it's just a demo to make all the needed functions work. And yes, the FancyBox gallery stopped working, don't bother with it, it can be for some other reason.

To revise my setup:
The Base URL in the admin panel is
Code:
http://tomas-janecek.php5.cz/
Custom permalink structure in the admin panel is
Code:
%nondefaultlanguage%/%parent%/%slug%/

And this is my whole .htaccess
Code:
AddDefaultCharset UTF-8
Options -Indexes

# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>
<Files sitemap.xml>
    Order allow,deny
    Allow from all
    Satisfy All
</Files>

RewriteEngine on

# Usually RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /

# News Manager nastaveni:
RewriteRule ^clanky/tag/([^/.]+)/?$ index.php?id=clanky&tag=$1 [L]
RewriteRule ^clanky/post/([^/.]+)/?$ index.php?id=clanky&post=$1 [L]
RewriteRule ^clanky/page/([^/.]+)/?$ index.php?id=clanky&page=$1 [L]
RewriteRule ^clanky/archive/([^/.]+)/?$ index.php?id=clanky&archive=$1 [L]
# end News Manager


# To make custom permalinks with the secondary language only work :)
RewriteRule ^/?$ cs/ [R,L]   # optional
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(cs|en)/(.*?/)?([A-Za-z0-9-]+)/?$ index.php?id=$3&lang=$1 [QSA,L]
RewriteRule ^(cs|en)/?$ index.php?lang=$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*?/)?([A-Za-z0-9-]+)/?$ index.php?id=$2&lang=en [QSA,L]

If needed, here is my plugin list (I tried to disable all I could - everything but I18N plugins, no difference)
FancyBoxPlugin, Innovation Theme Plugin, Send Anonymous Data, Czechoslovak Transliteration, I18N Base, I18N, News Manager, Create Post shortcut (News Manager), News Manager RSS, News Manager Title, p01-contact.

The problem is obvious - you visit the site, everything is Czech. You click onto any link (no matter if it's in the horizontal tab menu or vertical submenu) and the site switches to English (and yes, it will move onto the page you want, however, not in the desired language). You can't switch it to Czech if you're not on the index (title) page.

Thank you, I appreciate your will to help.
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
Reply


Messages In This Thread
rewrite language problem - by tomkop - 2013-03-27, 06:34:44
RE: Support for multilanguage sites, Internationalization (I18N) - by TeeJay - 2013-04-10, 07:10:13
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



Users browsing this thread: 13 Guest(s)