From: Joe Hunt Date: Thu, 13 Sep 2007 20:43:39 +0000 (+0000) Subject: We forgot to upload the PO file when installing new language. Used when GETTEXT is... X-Git-Tag: 2.3-final~1523 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=381800ed0f062bdf285ae68c03da604c0b0eb8f1;p=fa-stable.git We forgot to upload the PO file when installing new language. Used when GETTEXT is not installed on Server. --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 01cb0a17..44395e06 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +14-Sep-2007 Joe Hunt + # We forgot to upload the PO file when installing new language. Used when GETTEXT is not installed on Server. + $ /admin/inst_lang.php + 10-Sep-2007 Joe Hunt ! Changed Bank Address field from text to textarea (multirows) $ /gl/manage/bank_accounts.php 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 "
";