Hello,
another way I found to do it is to add a new field to SESSIONS_TABLE. E.g. call it session_lang . This field needs to been filled only if a user has a selected a different language from the dropdown menue. Then you need only a Reset button. And for registered user you can add a Save button to update their user_lang. Just have a look here: http://www.martin-truckenbrodt.com/cgi/phpBB3AMLS/
I think the cookie thing is a bad thing. And the lang by URL thing is more like a workaround. But this is only my personal opinion.
Bye Martin
[RFC] Override Language via URL
-
- Posts: 171
- Joined: Sun Jan 29, 2006 1:00 pm
- Location: Germany
- Contact:
Re: [RFC] Override Language via URL
Advanced Block MOD 1.1.1 has been released! - Prevent spam on your phpBB3 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists! - My MODs
Re: [RFC] Override Language via URL
Possible now with ?language=<language code> - it's stored in a language cookie until overridden again either through the URL or language dropdown on registration.
Re: [RFC] Override Language via URL
^^ Stored in a cookie that lasts for the duration of your browser session.
Has an irascible disposition.
Re: [RFC] Override Language via URL
What about automatic language selecting depending on system/browser language?
Re: [RFC] Override Language via URL
This is nice feature. I tried it on two boards (with three installed languages) and while it's working when I use the board as guest, I'm not able to make it work when I'm logged in.naderman wrote:Possible now with ?language=<language code> - it's stored in a language cookie until overridden again either through the URL or language dropdown on registration.
-
- Registered User
- Posts: 9
- Joined: Tue Aug 19, 2014 11:19 pm
- Location: Sugar Land, TX
- Contact:
Re: [RFC] Override Language via URL
If I think this one may translate your live forum URL into another language (appearing as "es.<your live forum URL>"), then can it be working or maybe it's a site issue something like that? It's impossible.
- DavidIQ
- Customisations Team Leader
- Posts: 1904
- Joined: Thu Mar 02, 2006 4:29 pm
- Location: Earth
- Contact:
Re: [RFC] Override Language via URL
You could set up that sub-domain to redirect to the proper URL with the translation parameter in the redirected address. So for example
http://es.phpbb.com
can be set up to redirect to http://www.phpbb.com/community/index.php?lang=es
to take advantage of the change done in this RFC. Through some .htaccess rewrite rules you could even handle multiple URL types which could include forum, topic, or post links.- Volksdevil
- Registered User
- Posts: 84
- Joined: Tue Sep 04, 2012 2:17 pm
- Contact:
Re: [RFC] Override Language via URL
I'm all for more audience coverage when it comes to language, but extra parameters bother me. Unless they won't have any negative effect? (Thinking of being indexed/multiple url's etc)
Superb hosting with Kualo!
My Volkswagen Corrado G60 | Car Wheels Classifieds UK
Vw Corrado G60 Forum | Vw Corrado G60 History | Vw Corrado G60 Buyers Guide
My Volkswagen Corrado G60 | Car Wheels Classifieds UK
Vw Corrado G60 Forum | Vw Corrado G60 History | Vw Corrado G60 Buyers Guide
Re: [RFC] Override Language via URL
A logged in user can select a language in preferences. Visitors can not, which is why this only works for visitors. And this was not a casual choice, there were also many issues trying to get it to work for everybody, and it's not worth all the trouble it was, so the current implementation was decided to be the best trade off.leschek wrote:This is nice feature. I tried it on two boards (with three installed languages) and while it's working when I use the board as guest, I'm not able to make it work when I'm logged in.
Has an irascible disposition.
Re: [RFC] Override Language via URL
Thank you for explanation. I thought it's bug.VSE wrote:A logged in user can select a language in preferences. Visitors can not, which is why this only works for visitors. And this was not a casual choice, there were also many issues trying to get it to work for everybody, and it's not worth all the trouble it was, so the current implementation was decided to be the best trade off.leschek wrote:This is nice feature. I tried it on two boards (with three installed languages) and while it's working when I use the board as guest, I'm not able to make it work when I'm logged in.