Code: Select all
</center>
</td>
</tr>
</table>
</form>
<?
$lang->DoL('NEW_USER_CLICK');
?>
<a href="new_user/new_user.php">
<?
$lang->DoL('HERE');
?>Moderator: General Moderators
Code: Select all
</center>
</td>
</tr>
</table>
</form>
<?
$lang->DoL('NEW_USER_CLICK');
?>
<a href="new_user/new_user.php">
<?
$lang->DoL('HERE');
?>Code: Select all
'VIEW_CV_IN' => array
(
'est' => '*Choose Which Language To View Your CV In*',
'eng' => 'Choose Which Language To View Your CV In',
),
'COMMENTS' => array
(
'est' => '*Comments*',
'eng' => 'Comments',
),
'ADD_MESSAGE' => array
(
'est' => '*Add Message*',
'eng' => 'Add Message',
),
'ADD_COMMENT' => array
(
'est' => '*Add Comment*',
'eng' => 'Add Comment',
),
'COMMENT_ADDED' => array
(
'est' => '*Comment Added*',
'eng' => 'Comment Added',
),
'PRINT_IN_LANG' => array
(
'est' => '*Choose a language to print the cv\'s in*',
'eng' => 'Choose a language to print the cv\'s in',
),
);
function SetLang($lang)
{
if ($lang !== 'eng' && $lang !== 'est')
{
trigger_error('Invalid Language', E_USER_ERROR);
}
else
{
$_SESSION['lang'] = $lang;
}
}
function DoL($change)
{
if (isset($_SESSION['lang']))
{
if(isset($this->text[$change][$_SESSION['lang']]))
{
echo $this->text[$change][$_SESSION['lang']];
}
}
else
{
trigger_error('No Language Set', E_USER_ERROR);
}
}
function DoLcV($change)
{
if (isset($_GET['lang_id']))
{
$lang = ($_GET['lang_id'] == '1' ? 'est' : 'eng');
if(isset($this->text[$change][$lang]))
{
echo $this->text[$change][$lang];
}
}
else
{
trigger_error('No Language Set', E_USER_ERROR);
}
}
}Code: Select all
array
(
'est' => '*Add Message*',
'eng' => 'Add Message' // <-- the , removed as it's the last
)Code: Select all
'PRINT_IN_LANG' => array
(
'est' => '*Choose a language to print the cv\'s in*',
'eng' => 'Choose a language to print the cv\'s in', // here...
), // ...and here...Extra commas at the end won't affect the array in any way as far as I know. It works fine.JAM wrote:It's early, so excuse me if I'm way off, but...
Might not solve any issues, but it just doesn't look right.Another example.Code: Select all
array ( 'est' => '*Add Message*', 'eng' => 'Add Message' // <-- the , removed as it's the last )Code: Select all
'PRINT_IN_LANG' => array ( 'est' => '*Choose a language to print the cv\'s in*', 'eng' => 'Choose a language to print the cv\'s in', // here... ), // ...and here...
Code: Select all
echo '<pre>';
print_r($this->text); // or any other array
echo '</pre>';