@@ -132,47 +132,8 @@ function buildHTML($listDef,$module = '') {
132132 }
133133 fclose ($ handle );
134134
135- /*$lang["page_txt"] = 'Page';
136- $lang["page_of_txt"] = 'of';
137- $lang["page_next_txt"] = 'Next';
138- $lang["page_back_txt"] = 'Back';
139- $lang["delete_txt"] = 'Delete';
140- $lang["filter_txt"] = 'Filter';
141- $lang["add_new_record_txt"] = 'Add new record';
142-
143- // save language file
144- $this->lng_add($lang,$listDef,$module);*/
145135 }
146-
147- function lng_add ($ lang ,$ listDef ,$ module = '' ) {
148- global $ go_api , $ go_info ,$ conf ;
149-
150- if ($ module == '' ) {
151- $ lng_file = "lib/lang/ " .$ conf ["language " ]."_ " .$ listDef ['name ' ]."_list.lng " ;
152- } else {
153- $ lng_file = '../ ' .$ module ."/lib/lang/en_ " .$ listDef ['name ' ]."_list.lng " ;
154- }
155-
156- if (is_file ($ lng_file )) {
157- include_once ($ lng_file );
158- } else {
159- $ wb = array ();
160- }
161-
162- $ wb_out = array_merge ($ lang ,$ wb );
163-
164- if (is_array ($ wb_out )) {
165- $ fp = fopen ($ lng_file , "w " );
166- fwrite ($ fp ,"<?php \r\n" );
167- foreach ($ wb_out as $ key => $ val ) {
168- $ new_line = '$wb[" ' .$ key .'"] = ' ."' $ val'; \r\n" ;
169- fwrite ($ fp ,$ new_line );
170-
171- }
172- fwrite ($ fp ,"?> " );
173- fclose ($ fp );
174- }
175- }
136+
176137}
177138
178139?>
0 commit comments