From: <rc...@us...> - 2013-11-03 18:36:21
|
Revision: 6388 http://sourceforge.net/p/web-erp/reponame/6388 Author: rchacon Date: 2013-11-03 18:36:18 +0000 (Sun, 03 Nov 2013) Log Message: ----------- Allow translate the name of the currency on CompanyPreferences.php. Modified Paths: -------------- trunk/CompanyPreferences.php trunk/doc/Change.log Modified: trunk/CompanyPreferences.php =================================================================== --- trunk/CompanyPreferences.php 2013-11-03 12:50:45 UTC (rev 6387) +++ trunk/CompanyPreferences.php 2013-11-03 18:36:18 UTC (rev 6388) @@ -231,6 +231,7 @@ $result=DB_query("SELECT currabrev, currency FROM currencies",$db); +include($PathPrefix . 'includes/CurrenciesArray.php'); // To get the currency name. echo '<tr> <td>' . _('Home Currency') . ':</td> @@ -238,9 +239,9 @@ while ($myrow = DB_fetch_array($result)) { if ($_POST['CurrencyDefault']==$myrow['currabrev']){ - echo '<option selected="selected" value="'. $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; + echo '<option selected="selected" value="'. $myrow['currabrev'] . '">' . $CurrenciesArray[$myrow['currabrev']]['Currency'] . '</option>'; } else { - echo '<option value="' . $myrow['currabrev'] . '">' . $myrow['currency']. '</option>'; + echo '<option value="' . $myrow['currabrev'] . '">' . $CurrenciesArray[$myrow['currabrev']]['Currency'] . '</option>'; } } //end while loop Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2013-11-03 12:50:45 UTC (rev 6387) +++ trunk/doc/Change.log 2013-11-03 18:36:18 UTC (rev 6388) @@ -1,5 +1,6 @@ webERP Change Log +03/11/2013 rchacon: Allow translate the name of the currency on CompanyPreferences.php. 3/11/2013 Exson fixed the bug that discount id for category cannot be set and add an error message when there is no stockid set for the respective category. 03/11/2013 Exson: Fi3/11/2013 Exson: fixed bug by removing pattern and add no-illegal-chars to stockid in StockReorderLevel.php.xed bug in MiscFunctions.js allow '0' input as number. 01/11/2013 rchacon: Allow translate the name of the currency on Currencies.php. |