Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Multiple languages [need help]
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Multiple languages [need help]
Interesting solution, but yeah, an ugly hack.
You could theoretically go through all the templates containing a button image, make a copy and use prefix overrides, but that's even more messy.

Here's a less ugly hack, find in inc/plugins/xthreads.php:

PHP Code:
if($xtforum['langprefix'] !== '') {

add before

PHP Code:
1
2
3
4
5
6
7
8
			if(@in_array('de_', $xtforum['langprefix'])) {
				$xtforum['langprefix'] = '';
				global $lang;
				$mybb->settings['bblanguage'] = 'german';
				$lang->set_language('german');
				$lang->load('global');
				$lang->load('messages');
			}

(change relevant parts of course)

Basically, if the language prefix is 'de_', it'll force the forum language to German.
(untested)


My Blog
(This post was last modified: 11-18-2011 09:52 PM by ZiNgA BuRgA.)
11-15-2011 07:01 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Multiple languages [need help] - XTfan - 11-15-2011, 04:14 PM
RE: Multiple languages [need help] - ZiNgA BuRgA - 11-15-2011 07:01 PM
RE: Multiple languages [need help] - XTfan - 11-17-2011, 03:21 PM
RE: Multiple languages [need help] - XTfan - 11-18-2011, 11:44 AM

 Standard Tools
Forum Jump: