Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jan 2008
Posts: 222
Robje01 Offline OP
enthusiast
OP Offline
enthusiast
Joined: Jan 2008
Posts: 222
I remember that previous versions (correct me if i'm wrong) had the option when they are on the forum and not logged in to choose their language. If i do so now it doesn't work. Only for logged in users.

Could anyone confirm?

Rob


My place to be: http://www.freesat.nl
Joined: Jan 2008
Posts: 222
Robje01 Offline OP
enthusiast
OP Offline
enthusiast
Joined: Jan 2008
Posts: 222
Fixed: replacing this in my ubbthreads.php in root of forum:

Replace:
Code
		if (!$user['USER_LANGUAGE']) $user['USER_LANGUAGE'] = $config['LANGUAGE'];


With:
Code
		if (!$user['USER_LANGUAGE']) {
		$user['USER_LANGUAGE'] = $config['LANGUAGE'];
		$lang = getenv ("HTTP_ACCEPT_LANGUAGE");
		  if ($lang == "nl") {
  		    $user['USER_LANGUAGE'] = "nederlands";
		  }
		}


Rob

Last edited by Robje01; 03/24/2009 8:26 AM.

My place to be: http://www.freesat.nl
Joined: Jan 2008
Posts: 222
Robje01 Offline OP
enthusiast
OP Offline
enthusiast
Joined: Jan 2008
Posts: 222
Oh, my default language is set to english, but i have a part dutch and part english forum...


My place to be: http://www.freesat.nl
Joined: Mar 2008
Posts: 326
D
Enthusiast
Offline
Enthusiast
D
Joined: Mar 2008
Posts: 326
When I saw the title, I thought you were asking if it would be possible to specify a unique language folder to be used for non-logged-in-users.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
v7.7.5 Active Topics Display Name Incorrect
by Jake - 11/17/2020 4:46 PM
custom islands in forums tool
by Ruben - 11/17/2020 3:21 PM
Captcha bug maybe?
by Morgan - 11/16/2020 8:34 AM
Facebook thumbnail issue
by DBryce - 11/08/2020 7:43 PM
No hop to menu in the category pages
by Morgan - 11/05/2020 4:19 PM
Who's Online Now
0 members (), 44 guests, and 53 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
gallery test
gallery test
by Mors, September 23
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 7.7.5