Commit 3505605c authored by fantu's avatar fantu
Browse files

- Improve of multilanguage, now the string of list-file mustn't be repeated in...

- Improve of multilanguage, now the string of list-file mustn't be repeated in dozens of files and dozens of times translate and check for this any list page is not necessary now
parent bef7e249
......@@ -62,6 +62,9 @@ class listform {
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_'.$this->listDef['name'].'_list.lng';
if(!file_exists($lng_file)) $lng_file = 'lib/lang/en_'.$this->listDef['name'].'_list.lng';
include($lng_file);
$lng_file = ISPC_WEB_PATH.'/lang/lib/lang/'.$_SESSION['s']['language'].'_list.lng';
if(!file_exists($lng_file)) $lng_file = ISPC_WEB_PATH.'/lang/lib/lang/en_'.'_list.lng';
include($lng_file);
$this->wordbook = $wb;
......
......@@ -132,7 +132,7 @@ class listform_tpl_generator {
}
fclose($handle);
$lang["page_txt"] = 'Page';
/*$lang["page_txt"] = 'Page';
$lang["page_of_txt"] = 'of';
$lang["page_next_txt"] = 'Next';
$lang["page_back_txt"] = 'Back';
......@@ -141,7 +141,7 @@ class listform_tpl_generator {
$lang["add_new_record_txt"] = 'Add new record';
// save language file
$this->lng_add($lang,$listDef,$module);
$this->lng_add($lang,$listDef,$module);*/
}
function lng_add($lang,$listDef,$module = '') {
......
<?php
$wb["page_txt"] = 'Page';
$wb["page_of_txt"] = 'of';
$wb["page_next_txt"] = 'Next';
$wb["page_back_txt"] = 'Back';
$wb["delete_txt"] = 'Delete';
$wb["filter_txt"] = 'Filter';
$wb["add_new_record_txt"] = 'Add new record';
?>
<?php
$wb['page_txt'] = 'Pagina';
$wb['page_of_txt'] = 'di';
$wb['page_next_txt'] = 'Successiva';
$wb['page_back_txt'] = 'Precedente';
$wb['delete_txt'] = 'Cancella';
$wb['filter_txt'] = 'Filtra';
$wb['add_new_record_txt'] = 'Aggiungi nuovo record';
?>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment