2014-08-29, 04:56:09
Hello,
I'm trying to create a multilanguage site with I18N plugin. Everything works fine expect for one annoying issue.
When I press a link/button in my site to change the whole language of my site, the menu and current page content change OK to the other language. However, when I press then another menu item, it loads the page content of the other (last) language and changes the menu back to the other (last) language too.
It seems like the navigator or server has cached the last menu and page access (in the previous language). My intention is to remain for example in the http://mysite?setlang=en for the rest of contents until I press the language link/button again.
I only get this if I remain in the current page after selecting the language link/button. This obly users that access my site to click the language link/button everytime after they select a menu page in the other language.
I tried also to install other cache plugins found in GetSimple CMS site and also added this to my root 'htacces' without any success (I found this in other PHP forum):
<FilesMatch "\.(php)$">
<IfModule mod_expires.c>
ExpiresActive Off
</IfModule>
<IfModule mod_headers.c>
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
</IfModule>
</FilesMatch>
Here is my site (in construction): http://personal.us.es/dcagigas
In the attachment you can see all the I18N plugin options I've tried (under comments) in my 'template.php'.
I have not found a similar question to my problem in the forum and I tried many things and I18N derived plugins. I'm not sure if this could be a server (hosting) configuration problem.
Any help or clue will be very appreciated.
I'm really stuck.
GetSimple CMS is great and fits very well my needs, but without solving this problem I'll have to find another solution.
Thanks in advance,
Daniel
I'm trying to create a multilanguage site with I18N plugin. Everything works fine expect for one annoying issue.
When I press a link/button in my site to change the whole language of my site, the menu and current page content change OK to the other language. However, when I press then another menu item, it loads the page content of the other (last) language and changes the menu back to the other (last) language too.
It seems like the navigator or server has cached the last menu and page access (in the previous language). My intention is to remain for example in the http://mysite?setlang=en for the rest of contents until I press the language link/button again.
I only get this if I remain in the current page after selecting the language link/button. This obly users that access my site to click the language link/button everytime after they select a menu page in the other language.
I tried also to install other cache plugins found in GetSimple CMS site and also added this to my root 'htacces' without any success (I found this in other PHP forum):
<FilesMatch "\.(php)$">
<IfModule mod_expires.c>
ExpiresActive Off
</IfModule>
<IfModule mod_headers.c>
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
</IfModule>
</FilesMatch>
Here is my site (in construction): http://personal.us.es/dcagigas
In the attachment you can see all the I18N plugin options I've tried (under comments) in my 'template.php'.
I have not found a similar question to my problem in the forum and I tried many things and I18N derived plugins. I'm not sure if this could be a server (hosting) configuration problem.
Any help or clue will be very appreciated.
I'm really stuck.
GetSimple CMS is great and fits very well my needs, but without solving this problem I'll have to find another solution.
Thanks in advance,
Daniel