PDA

View Full Version : Different language for backend


andreamarucci
10-08-2006, 03:25 PM
I run an italian forum. Someone has translated all the VB phrases in italian and that's good; the bad new are the also the admin backend was translated and this is a problem for support and mod installation and so on.

I've seen around this post that say that making these modifications allow to have the admin backend in english (or a language of choice) and the rest of the board in italian.

The post say

IN ./includes/init.php, FIND:

// Set up user's chosen language
if ($vbulletin->GPC['langid'] AND !empty($vbulletin->languagecache["{$vbulletin->GPC['langid']}"]['userselect']))
{
$languageid =& $vbulletin->GPC['langid'];
vbsetcookie('languageid', $languageid);
}
else if ($vbulletin->GPC[COOKIE_PREFIX . 'languageid'] AND !empty($vbulletin->languagecache[$vbulletin->GPC[COOKIE_PREFIX . 'languageid']]['userselect']))
{
$languageid = $vbulletin->GPC[COOKIE_PREFIX . 'languageid'];
}
else
{
$languageid = 0;
}

ADD UNDERNEATH:

if (VB_AREA == 'AdminCP')
{
$languageid = 8; // make sure to replace this value with an actual languageid
}

The author of this post say that he have seen it here on vb.org but I wasn't able to find it.

Could someone confirm that this mod will do the trick?

Thanks