mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
- Generate_lang_file : correction/actualisation/evolution
This commit is contained in:
parent
24296fd3b6
commit
538cabcdab
1 changed files with 7 additions and 3 deletions
|
@ -21,15 +21,19 @@
|
||||||
|
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
|
require_once('../core.php');
|
||||||
require_once('../conf/config.inc.php');
|
require_once('../conf/config.inc.php');
|
||||||
require_once('../'.LS_INCLUDE_DIR.'/functions.php');
|
|
||||||
|
if (isset($argv[2]) && is_file($argv[2])) {
|
||||||
|
@include($argv[2]);
|
||||||
|
}
|
||||||
|
|
||||||
$data=array();
|
$data=array();
|
||||||
|
|
||||||
function add($msg) {
|
function add($msg) {
|
||||||
if ($msg!='') {
|
if ($msg!='') {
|
||||||
global $data;
|
global $data;
|
||||||
$data[$msg]="";
|
$data[$msg]=$GLOBALS['LSlang'][$msg];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,7 +104,7 @@ ksort($data);
|
||||||
echo "<?php\n\n\$GLOBALS['LSlang'] = array (\n";
|
echo "<?php\n\n\$GLOBALS['LSlang'] = array (\n";
|
||||||
|
|
||||||
foreach($data as $key => $val) {
|
foreach($data as $key => $val) {
|
||||||
print "\n\"$key\" =>\n \"\",\n";
|
print "\n\"$key\" =>\n \"$val\",\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "\n);\n\n?>\n";
|
echo "\n);\n\n?>\n";
|
||||||
|
|
Loading…
Reference in a new issue