Example #1
0
function camila_get_translation($string)
{
    global $_CAMILA;
    if (!is_object($_CAMILA['i18n'])) {
        camila_translation_init();
    }
    if ($_CAMILA['i18n']->get($string) != '*' . $string . '*') {
        return $_CAMILA['i18n']->get($string);
    } else {
        return '';
    }
}
Example #2
0
    $_CAMILA['user_attrib_02'] = $utable['attrib_02'];
    $_CAMILA['user_attrib_03'] = $utable['attrib_03'];
    $_CAMILA['user_attrib_04'] = $utable['attrib_04'];
    $_CAMILA['user_attrib_05'] = $utable['attrib_05'];
    $_CAMILA['user_attrib_06'] = $utable['attrib_06'];
    $_CAMILA['user_attrib_07'] = $utable['attrib_07'];
    $_CAMILA['user_attrib_08'] = $utable['attrib_08'];
    $_CAMILA['user_attrib_09'] = $utable['attrib_09'];
    $_CAMILA['user_attrib_10'] = $utable['attrib_10'];
    $_CAMILA['user_attrib_11'] = $utable['attrib_11'];
    $_CAMILA['user_attrib_12'] = $utable['attrib_12'];
    $_CAMILA['user_attrib_13'] = $utable['attrib_13'];
    $_CAMILA['user_attrib_14'] = $utable['attrib_14'];
    $_CAMILA['user_attrib_15'] = $utable['attrib_15'];
}
camila_translation_init();
$fmt = '';
$f = array();
$m = camila_get_translation('camila.dateformat.monthpos');
$d = camila_get_translation('camila.dateformat.daypos');
$y = camila_get_translation('camila.dateformat.yearpos');
$f[$m] = 'm';
$f[$d] = 'd';
$f[$y] = 'Y';
ksort($f);
reset($f);
$count = 0;
while (list($k, $v) = each($f)) {
    $fmt .= $v;
    if ($count < 2) {
        $fmt .= camila_get_translation('camila.dateformat.separator');