MyBB Community Forums

Full Version: everywhere translated except ... need help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
changed to another language option, and everything translated except 2 blocks in user's CP: 4 words for PM box.

as showed below... and need help.

[attachment=24896]
global.lang.php --> folder_inbox , folder_sent_items , folder_drafts , folder_trash
it was there already and be translated... so guess it must be functionally error.
anything wrong with below related codes.

usercp.php
-----------------------------
if(!$mybb->user['pmfolders'])
{
$mybb->user['pmfolders'] = "1**".$lang->folder_inbox."$%%$2**".$lang->folder_sent_items."$%%$3**".$lang->folder_drafts."$%%$4**".$lang->folder_trash;
$db->update_query("users", array('pmfolders' => $mybb->user['pmfolders']), "uid='".$mybb->user['uid']."'");
}
---------------------------------

private.php
--------------------------------------
{
if($key > $highestid)
{
$highestid = $key;
}

$fid = intval($key);
// Use default language strings if empty or value is language string
switch($fid)
{
case 1:
if($val == $lang->folder_inbox || trim($val) == '')
{
$val = '';
}
break;
case 2:
if($val == $lang->folder_sent_items || trim($val) == '')
{
$val = '';
}
break;
case 3:
if($val == $lang->folder_drafts || trim($val) == '')
{
$val = '';
}
break;
case 4:
if($val == $lang->folder_trash || trim($val) == '')
{
$val = '';
}
break;
}
}
-----------------------------------------------------------