Use an i18n tool
This commit is contained in:
parent
e487438606
commit
16dec853f9
12 changed files with 662 additions and 97 deletions
13
cache/lang/php_i18n_d48a8e99b41edc1d5ed4bc4c7cc8cfe0_L_fr.cache.php
vendored
Executable file
13
cache/lang/php_i18n_d48a8e99b41edc1d5ed4bc4c7cc8cfe0_L_fr.cache.php
vendored
Executable file
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
class L {
|
||||
const home = 'Accueil';
|
||||
public static function __callStatic($string, $args) {
|
||||
if (defined("self::" . $string)) {
|
||||
return vsprintf(constant("self::" . $string), $args);
|
||||
}
|
||||
}
|
||||
function L($string, $args=NULL) {
|
||||
$return = constant("L::".$string);
|
||||
return $args ? vsprintf($return,$args) : $return;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue