(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.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.
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.
To revise my setup:
The Base URL in the admin panel is
Code:
http://tomas-janecek.php5.cz/
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
» The little I did for GetSimple