X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Finst_lang.php;h=b076cc02d1bf1892d1553cc7ce6fc7b45056c276;hb=f63c58475b057c9f4a05894a6935ea351b6d7af3;hp=e5eae2e79f727338021d532a3bcf2dfd123f1c04;hpb=da8311619dd73feae101d246a1957b972e00cbd2;p=fa-stable.git diff --git a/admin/inst_lang.php b/admin/inst_lang.php index e5eae2e7..b076cc02 100644 --- a/admin/inst_lang.php +++ b/admin/inst_lang.php @@ -165,6 +165,14 @@ function handle_submit() if (is_uploaded_file($_FILES['uploadfile']['tmp_name'])) { $file1 = $_FILES['uploadfile']['tmp_name']; + $file2 = $directory . "/LC_MESSAGES/".$_POST['code'].".po"; + if (file_exists($file2)) + unlink($file2); + move_uploaded_file($file1, $file2); + } + if (is_uploaded_file($_FILES['uploadfile2']['tmp_name'])) + { + $file1 = $_FILES['uploadfile2']['tmp_name']; $file2 = $directory . "/LC_MESSAGES/".$_POST['code'].".mo"; if (file_exists($file2)) unlink($file2); @@ -305,10 +313,11 @@ function display_language_edit($selected_id) yesno_list_row(_("Right To Left"), 'rtl', null, "", "", false); - label_row(_("Language File"), ""); + label_row(_("Language File") . " (PO)", ""); + label_row(_("Language File") . " (MO)", ""); end_table(0); - display_note(_("Select your language MO file from your local harddisk."), 0, 1); + display_note(_("Select your language files from your local harddisk."), 0, 1); echo "
";