wb-archiv283/branches/2.8.x/wb/include/quickSkin_alpha/_lib/qx/qx_lang.php @ 1585
1 |
<?php
|
---|---|
2 |
|
3 |
function qx_lang($var) { |
4 |
$retval = '{'.$var.'}'; |
5 |
$arr = explode('_', $var); |
6 |
$var0 = array_shift($arr); |
7 |
while( sizeof($arr) > 0 ) { |
8 |
$var1 = implode('_', $arr); |
9 |
$retval = ( isset($GLOBALS[$var0][$var1]) ? $GLOBALS[$var0][$var1] : $retval ); |
10 |
$var0 .= '_'.array_shift($arr); |
11 |
}
|
12 |
return $retval; |
13 |
}
|