- Improved merge in language: add remove of line how not exists in master language
| | |
| | | |
| | | - Add, extend or modify comments in PEAR syntax so that they can be read with phpdocumentor. |
| | | |
| | | |
| | | Language editor |
| | | -------------------------------------- |
| | | - Merge: remove the line how exists in language to merge but not in main (removed in main because not use or change for fix) |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | $r = 0; |
| | | foreach($wb as $key => $val) { |
| | | if(!isset($wb_master[$key])) { |
| | | unset($wb[$key]); |
| | | $r++; |
| | | } |
| | | } |
| | | |
| | | $file_content = "<?php\n"; |
| | | foreach($wb as $key => $val) { |
| | | $val = str_replace("'",'',$val); |
| | |
| | | $file_content .= "?>\n"; |
| | | |
| | | $msg .= "Added $n lines to the file $langfile<br />"; |
| | | if($r!=0) |
| | | $msg .= "Removed $r lines to the file $langfile<br />"; |
| | | file_put_contents($langfile ,$file_content); |
| | | } else { |
| | | $msg .= "File does not exist yet. Copied file $masterfile to $langfile<br />"; |