- 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
2 files added
2 files modified
| | |
| | | $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; |
| | | |
| | |
| | | }
|
| | | 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';
|
| | |
| | | $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 = '') {
|
New file |
| | |
| | | <?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'; |
| | | ?> |
New file |
| | |
| | | <?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'; |
| | | ?> |