Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jan 2008
Posts: 222
enthusiast
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
enthusiast
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 9:26 AM.

My place to be: http://www.freesat.nl
Joined: Jan 2008
Posts: 222
enthusiast
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
Enthusiast
D Offline
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
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Havenofsobriety), 522 guests, and 99 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)