I'm running a german board so i noticed that parts of the postlist.php aren't translated. phrases aren't put in the language files but hardcoded in the postlist.php or postlist.tmpl. I modified the files so that you can use them with all languages.
Add in all languages to the file postlist.php:
code:
$ubbt_lang['FORUM_MODS'] = "Moderators";
$ubbt_lang['FORUM_ONLINE'] = "registered and";
$ubbt_lang['FORUM_ONLINE2'] = "anonymous users browse this forum";
$ubbt_lang['B_PERM'] = "Permissions";
Note: i didn't use $ubbt_lang['USER_MOD'] from generic.php because that one is singular and we have more than one moderator on each board, so we needed the plural.
Edit in postlist.php
line 278 change:
// Let's see if the can post or reply
$replyperm = "You cannot reply to topics";
$writeperm = "You cannot start new topics";
for ($i=0; $i<$gsize; $i++) {
if (ereg("-$Grouparray[$i]-",$CanReply) ) {
$replyperm = "You can reply to topics";
$canreply = 1;
}
if (ereg("-$Grouparray[$i]-",$CanWrite) ) {
$writeperm = "You can start new topics";
$canwrite = 1;
}
if (($canwrite) && ($canreply)) {
break;
}
}
if ($Markup == "On") {
$ubbcode = "UBBCode is enabled";
}
else {
$ubbcode = "UBBCode is disabled";
}
if ($HTML == "On") {
$htmlcode = "HTML is enabled";
}
else {
$htmlcode = "HTML is disabled";
}
to:
// Let's see if the can post or reply
$replyperm = "{$ubbt_lang['CANTREPLY']}";
$writeperm = "{$ubbt_lang['CANTWRITE']}";
for ($i=0; $i<$gsize; $i++) {
if (ereg("-$Grouparray[$i]-",$CanReply) ) {
$replyperm = "{$ubbt_lang['CANWRITE']}";
$canreply = 1;
}
if (ereg("-$Grouparray[$i]-",$CanWrite) ) {
$writeperm = "{$ubbt_lang['CANREPLY']}";
$canwrite = 1;
}
if (($canwrite) && ($canreply)) {
break;
}
}
if ($Markup == "On") {
$ubbcode = "${ubbt_lang['UBBCODE']} {$ubbt_lang['ENABLED']}";
}
else {
$ubbcode = "{$ubbt_lang['UBBCODE']} {$ubbt_lang['DISABLED']}";
}
if ($HTML == "On") {
$htmlcode = "{$ubbt_lang['HTMLIS']} {$ubbt_lang['ENABLED']}";
}
else {
$htmlcode = "{$ubbt_lang['HTMLIS']} {$ubbt_lang['DISABLED']}";
}
Edit in postlist.tmpl
Change line 183 from:
$r registered and $a anonymous users are browsing this forum
to:
$r {$ubbt_lang['FORUM_ONLINE']} $a {$ubbt_lang['FORUM_ONLINE2']}
change line 186 from:
{$ubbt_lang['USER_MOD']}: $modlist
to:
{$ubbt_lang['FORUM_MODS']}: $modlist
change line 194 from:
<b>Permissions</b>
to:
<b>{$ubbt_lang['B_PERM']}</b>
change line 211 from:
<b>Legend</b>
to:
<b>{$ubbt_lang['LEGEND']}</b>
change line 215 from:
New posts
to:
{$ubbt_lang['L_NEW']}
change line 219 from:
No new posts
to:
{$ubbt_lang['L_NONEW']}
DONE