|
From: <rc...@us...> - 2014-09-11 16:27:02
|
Revision: 6879
http://sourceforge.net/p/web-erp/reponame/6879
Author: rchacon
Date: 2014-09-11 16:26:54 +0000 (Thu, 11 Sep 2014)
Log Message:
-----------
Fixes text replacing with other. Spanish translation improvements.
Modified Paths:
--------------
trunk/Suppliers.php
trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo
trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po
Modified: trunk/Suppliers.php
===================================================================
--- trunk/Suppliers.php 2014-09-11 15:03:03 UTC (rev 6878)
+++ trunk/Suppliers.php 2014-09-11 16:26:54 UTC (rev 6879)
@@ -1,14 +1,13 @@
<?php
-
/* $Id$ */
include('includes/session.inc');
-
$Title = _('Supplier Maintenance');
/* webERP manual links before header.inc */
$ViewTopic= 'AccountsPayable';
$BookMark = 'NewSupplier';
include('includes/header.inc');
+
include('includes/SQL_CommonFunctions.inc');
include('includes/CountriesArray.php');
@@ -50,7 +49,7 @@
}
break;
case '03':
- if (!(($BranchNumber >= 1 and $BranchNumber <= 999) or ($BranchNumber >= 1300 and $BranchNumber <= 1399))) {
+ if (!(($BranchNumber >= 1 and $BranchNumber <= 999) or ($BranchNumber >= 1300 and $BranchNumber <= 1399))) {
echo _('Westpac Trust branches must be between 0001 and 0999 or between 1300 and 1399') . '. ' . _('The branch number used is invalid');
return False;
exit;
@@ -83,7 +82,7 @@
//"13" "14" "15", "16", "17", "18", "19", "20", "21", "22", "23", "24":
- if (!($BranchNumber >= 3000 and $BranchNumber <= 4999)){
+ if (!($BranchNumber >= 3000 and $BranchNumber <= 4999)) {
echo _('Trust Bank and Regional Bank branches must be between 3000 and 4999') . '. ' . _('The branch number used is invalid');
return False;
exit;
@@ -91,7 +90,7 @@
break;
case '11':
- if (!($BranchNumber >= 5000 and $BranchNumber <= 6499)){
+ if (!($BranchNumber >= 5000 and $BranchNumber <= 6499)) {
echo _('Post Office Bank branches must be between 5000 and 6499') . '. ' . _('The branch number used is invalid');
return False;
exit;
@@ -99,14 +98,14 @@
break;
case '25':
- if (!($BranchNumber >= 2500 and $BranchNumber <= 2599)){
+ if (!($BranchNumber >= 2500 and $BranchNumber <= 2599)) {
echo _('Countrywide Bank branches must be between 2500 and 2599') . '. ' . _('The branch number used is invalid');
return False;
exit;
}
break;
case '29':
- if (!($BranchNumber >= 2150 and $BranchNumber <= 2299)){
+ if (!($BranchNumber >= 2150 and $BranchNumber <= 2299)) {
echo _('United Bank branches must be between 2150 and 2299') . '. ' . _('The branch number used is invalid');
return False;
exit;
@@ -114,7 +113,7 @@
break;
case '30':
- if (!($BranchNumber >= 2900 and $BranchNumber <= 2949)){
+ if (!($BranchNumber >= 2900 and $BranchNumber <= 2949)) {
echo _('Hong Kong and Shanghai branches must be between 2900 and 2949') . '. ' . _('The branch number used is invalid');
return False;
exit;
@@ -122,7 +121,7 @@
break;
case '31':
- if (!($BranchNumber >= 2800 and $BranchNumber <= 2849)){
+ if (!($BranchNumber >= 2800 and $BranchNumber <= 2849)) {
echo _('Citibank NA branches must be between 2800 and 2849') . '. ' . _('The branch number used is invalid');
return False;
exit;
@@ -130,7 +129,7 @@
break;
case '33':
- if (!($BranchNumber >= 6700 and $BranchNumber <= 6799)){
+ if (!($BranchNumber >= 6700 and $BranchNumber <= 6799)) {
echo _('Rural Bank branches must be between 6700 and 6799') . '. ' . _('The branch number used is invalid');
return False;
exit;
@@ -151,7 +150,7 @@
switch ($i) {
case 3:
- if ($BankPrefix == '08' or $BankPrefix == '09' or $BankPrefix == '25' or $BankPrefix == '33'){
+ if ($BankPrefix == '08' or $BankPrefix == '09' or $BankPrefix == '25' or $BankPrefix == '33') {
$CheckSum = 0;
} else {
$CheckSum = $CheckSum + ($DigitVal * 6);
@@ -159,7 +158,7 @@
break;
case 4:
- if ($BankPrefix == '08' or $BankPrefix == '09' or $BankPrefix == '25' or $BankPrefix == '33'){
+ if ($BankPrefix == '08' or $BankPrefix == '09' or $BankPrefix == '25' or $BankPrefix == '33') {
$CheckSum = 0;
} else {
$CheckSum = $CheckSum + ($DigitVal * 3);
@@ -167,7 +166,7 @@
break;
case 5:
- if ($BankPrefix == '08' or $BankPrefix == '09' or $BankPrefix == '25' or $BankPrefix == '33'){
+ if ($BankPrefix == '08' or $BankPrefix == '09' or $BankPrefix == '25' or $BankPrefix == '33') {
$CheckSum = 0;
} else {
$CheckSum = $CheckSum + ($DigitVal * 7);
@@ -175,7 +174,7 @@
break;
case 6:
- if ($BankPrefix == '08' or $BankPrefix == '09' or $BankPrefix == '25' or $BankPrefix == '33'){
+ if ($BankPrefix == '08' or $BankPrefix == '09' or $BankPrefix == '25' or $BankPrefix == '33') {
$CheckSum = 0;
} else {
$CheckSum = $CheckSum + ($DigitVal * 9);
@@ -185,13 +184,13 @@
case 7:
if ($BankPrefix == '08') {
$CheckSum = $CheckSum + $DigitVal * 7;
- } elseif ($BankPrefix == '25' Or $BankPrefix == '33'){
+ } elseif ($BankPrefix == '25' Or $BankPrefix == '33') {
$CheckSum = $CheckSum + $DigitVal * 1;
}
break;
case 8:
- if ($BankPrefix == '08'){
+ if ($BankPrefix == '08') {
$CheckSum = $CheckSum + ($DigitVal * 6);
} elseif ($BankPrefix == '09') {
$CheckSum = 0;
@@ -203,9 +202,9 @@
break;
case 9:
- if ($BankPrefix == '09'){
+ if ($BankPrefix == '09') {
$CheckSum = 0;
- } elseif ($BankPrefix == '25' or $BankPrefix == '33'){
+ } elseif ($BankPrefix == '25' or $BankPrefix == '33') {
$CheckSum = $CheckSum + $DigitVal * 3;
} else {
$CheckSum = $CheckSum + $DigitVal * 5;
@@ -213,7 +212,7 @@
break;
case 10:
- if ($BankPrefix == '08'){
+ if ($BankPrefix == '08') {
$CheckSum = $CheckSum + $DigitVal * 4;
} elseif ($BankPrefix == '09') {
If (($DigitVal * 5) > 9) {
@@ -229,9 +228,9 @@
break;
case 11:
- if ($BankPrefix == '08'){
+ if ($BankPrefix == '08') {
$CheckSum = $CheckSum + $DigitVal * 3;
- } elseif ($BankPrefix == '09'){
+ } elseif ($BankPrefix == '09') {
if (($DigitVal * 4) > 9) {
$CheckSum = $CheckSum + (int) mb_substr(($DigitVal * 4),0,1) + (int)mb_substr(($DigitVal * 4),mb_strlen($DigitVal * 4)-1, 1);
} else {
@@ -294,9 +293,9 @@
} //End Function
-if (isset($_GET['SupplierID'])){
+if (isset($_GET['SupplierID'])) {
$SupplierID = mb_strtoupper($_GET['SupplierID']);
-} elseif (isset($_POST['SupplierID'])){
+} elseif (isset($_POST['SupplierID'])) {
$SupplierID = mb_strtoupper($_POST['SupplierID']);
} else {
unset($SupplierID);
@@ -304,7 +303,7 @@
echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$Theme.'/images/supplier.png" title="' . _('Search') . '" alt="" />' . ' ' . _('Suppliers') . '</p>';
if (isset($SupplierID)) {
- echo '<p>
+ echo '<p>
<a href="' . $RootPath . '/SupplierContacts.php?SupplierID=' . $SupplierID . '">' . _('Review Supplier Contact Details') . '</a>
</p>';
}
@@ -403,13 +402,13 @@
}
*/
- if ($InputError != 1){
+ if ($InputError != 1) {
$SQL_SupplierSince = FormatDateForSQL($_POST['SupplierSince']);
$latitude = 0;
$longitude = 0;
- if ($_SESSION['geocode_integration']==1 ){
+ if ($_SESSION['geocode_integration']==1 ) {
// Get the lat/long from our geocoding host
$sql = "SELECT * FROM geocode_param WHERE 1";
$ErrMsg = _('An error occurred in retrieving the information');
@@ -595,10 +594,10 @@
prnMsg(_('A new supplier for') . ' ' . $_POST['SuppName'] . ' ' . _('has been added to the database'),'success');
echo '<p>
- <a href="' . $RootPath . '/SupplierContacts.php?SupplierID=' . $SupplierID . '">' . _('Review Supplier Contact Details') . '</a>
- </p>';
-
- unset($SupplierID);
+ <a href="' . $RootPath . '/SupplierContacts.php?SupplierID=' . $SupplierID . '">' . _('Review Supplier Contact Details') . '</a>
+ </p>';
+
+ unset($SupplierID);
unset($_POST['SuppName']);
unset($_POST['Address1']);
unset($_POST['Address2']);
@@ -682,7 +681,7 @@
/*If the page was called without $SupplierID passed to page then assume a new supplier is to be entered show a form with a Supplier Code field other wise the form showing the fields with the existing entries against the supplier will show for editing with only a hidden SupplierID field*/
echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">';
- echo '<div>';
+ echo '<div>';
echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
echo '<input type="hidden" name="New" value="Yes" />';
@@ -690,22 +689,22 @@
echo '<table class="selection">';
/* if $AutoSupplierNo is off (not 0) then provide an input box for the SupplierID to manually assigned */
- if ($_SESSION['AutoSupplierNo']== 0 ) {
+ if ($_SESSION['AutoSupplierNo']== 0 ) {
echo '<tr><td>' . _('Supplier Code') . ':</td>
<td><input type="text" data-type="no-illegal-chars" title="'._('The supplier id should not be within 10 legal characters and cannot be blank').'" required="required" name="SupplierID" placeholder="'._('within 10 characters').'" size="11" maxlength="10" /></td>
</tr>';
}
echo '<tr>
<td>' . _('Supplier Name') . ':</td>
- <td><input type="text" pattern="(?!^\s+$)[^<>+]{1,40}" required="required" title="'._('The supplier name should not be blank and should be less than 40 legal characters').'" name="SuppName" size="42" placeholder="'._('Within 40 legal characters').'" maxlength="40" /></td>
+ <td><input type="text" pattern="(?!^\s+$)[^<>+] {1,40}" required="required" title="'._('The supplier name should not be blank and should be less than 40 legal characters').'" name="SuppName" size="42" placeholder="'._('Within 40 legal characters').'" maxlength="40" /></td>
</tr>
<tr>
<td>' . _('Address Line 1 (Street)') . ':</td>
- <td><input type="text" pattern=".{1,40}" title="'._('The input should be less than 40 characters').'" placeholder="'._('Less than 40 characters').'" name="Address1" size="42" maxlength="40" /></td>
+ <td><input type="text" pattern=". {1,40}" title="'._('The input should be less than 40 characters').'" placeholder="'._('Less than 40 characters').'" name="Address1" size="42" maxlength="40" /></td>
</tr>
<tr>
<td>' . _('Address Line 2 (Street)') . ':</td>
- <td><input type="text" name="Address2" pattern=".{1,40}" title="'._('The input should be less than 40 characters').'" placeholder="'._('Less than 40 characters').'" size="42" maxlength="40" /></td>
+ <td><input type="text" name="Address2" pattern=". {1,40}" title="'._('The input should be less than 40 characters').'" placeholder="'._('Less than 40 characters').'" size="42" maxlength="40" /></td>
</tr>
<tr>
<td>' . _('Address Line 3 (Suburb/City)') . ':</td>
@@ -722,28 +721,28 @@
<tr>
<td>' . _('Country') . ':</td>
<td><select name="Address6">';
- foreach ($CountriesArray as $CountryEntry => $CountryName){
- if (isset($_POST['Address6']) AND ($_POST['Address6'] == $CountryName)){
- echo '<option selected="selected" value="' . $CountryName . '">' . $CountryName . '</option>';
+ foreach ($CountriesArray as $CountryEntry => $CountryName) {
+ if (isset($_POST['Address6']) AND ($_POST['Address6'] == $CountryName)) {
+ echo '<option selected="selected" value="' . $CountryName . '">' . $CountryName . '</option>';
}elseif (!isset($_POST['Address6']) AND $CountryName == "") {
- echo '<option selected="selected" value="' . $CountryName . '">' . $CountryName . '</option>';
+ echo '<option selected="selected" value="' . $CountryName . '">' . $CountryName . '</option>';
} else {
- echo '<option value="' . $CountryName . '">' . $CountryName . '</option>';
+ echo '<option value="' . $CountryName . '">' . $CountryName . '</option>';
}
}
echo '</select></td>
</tr>
<tr>
<td>' . _('Telephone') . ':</td>
- <td><input type="tel" pattern="[\s\d+)(-]{1,40}" title="'._('The input should be phone number').'" placeholder="'._('only number + - ( and ) allowed').'" name="Phone" size="30" maxlength="40" /></td>
+ <td><input type="tel" pattern="[\s\d+)(-] {1,40}" title="'._('The input should be phone number').'" placeholder="'._('only number + - ( and ) allowed').'" name="Phone" size="30" maxlength="40" /></td>
</tr>
<tr>
<td>' . _('Facsimile') . ':</td>
- <td><input type="tel" pattern="[\s\d+)(-]{1,40}" title="'._('The input should be fax number').'" placeholder="'._('only number + - ( and ) allowed').'" name="Fax" size="30" maxlength="40" /></td>
+ <td><input type="tel" pattern="[\s\d+)(-] {1,40}" title="'._('The input should be fax number').'" placeholder="'._('only number + - ( and ) allowed').'" name="Fax" size="30" maxlength="40" /></td>
</tr>
<tr>
<td>' . _('Email Address') . ':</td>
- <td><input type="email" name="Email" title="'._('Only email address are allowed').'" placeholder="'._('email format such as xx...@ma...').'" size="30" maxlength="50" pattern="[a-z0-9!#$%&\'*+/=?^_`{|}~.-]+@[a-z0-9-]+(\.[a-z0-9-]+)*" /></td>
+ <td><input type="email" name="Email" title="'._('Only email address are allowed').'" placeholder="'._('email format such as xx...@ma...').'" size="30" maxlength="50" pattern="[a-z0-9!#$%&\'*+/=?^_` {|}~.-]+@[a-z0-9-]+(\.[a-z0-9-]+)*" /></td>
</tr>
<tr>
<td>' . _('URL') . ':</td>
@@ -754,7 +753,7 @@
<td><select name="SupplierType">';
$result=DB_query("SELECT typeid, typename FROM suppliertype", $db);
while ($myrow = DB_fetch_array($result)) {
- echo '<option value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>';
+ echo '<option value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>';
} //end while loop
echo '</select></td>
</tr>';
@@ -783,10 +782,10 @@
<td><select name="PaymentTerms">';
while ($myrow = DB_fetch_array($result)) {
- echo '<option value="'. $myrow['termsindicator'] . '">' . $myrow['terms'] . '</option>';
+ echo '<option value="'. $myrow['termsindicator'] . '">' . $myrow['terms'] . '</option>';
} //end while loop
DB_data_seek($result, 0);
- echo '</select></td></tr>';
+ echo '</select></td></tr>';
$result=DB_query("SELECT id, coyname FROM factorcompanies", $db);
@@ -795,10 +794,10 @@
<td><select name="FactorID">';
echo '<option value="0">' . _('None') . '</option>';
while ($myrow = DB_fetch_array($result)) {
- if (isset($_POST['FactorID']) AND $_POST['FactorID'] == $myrow['id']){
- echo '<option selected="selected" value="' . $myrow['id'] . '">' . $myrow['coyname'] . '</option>';
+ if (isset($_POST['FactorID']) AND $_POST['FactorID'] == $myrow['id']) {
+ echo '<option selected="selected" value="' . $myrow['id'] . '">' . $myrow['coyname'] . '</option>';
} else {
- echo '<option value="' . $myrow['id'] . '">' . $myrow['coyname'] . '</option>';
+ echo '<option value="' . $myrow['id'] . '">' . $myrow['coyname'] . '</option>';
}
} //end while loop
DB_data_seek($result, 0);
@@ -809,7 +808,7 @@
<td><input type="text" name="TaxRef" placehoder="'._('Within 20 characters').'" size="21" maxlength="20" /></td></tr>';
$result=DB_query("SELECT currency, currabrev FROM currencies", $db);
- if (!isset($_POST['CurrCode'])){
+ if (!isset($_POST['CurrCode'])) {
$CurrResult = DB_query("SELECT currencydefault FROM companies WHERE coycode=1", $db);
$myrow = DB_fetch_row($CurrResult);
$_POST['CurrCode'] = $myrow[0];
@@ -819,7 +818,7 @@
<td>' . _('Supplier Currency') . ':</td>
<td><select name="CurrCode">';
while ($myrow = DB_fetch_array($result)) {
- if ($_POST['CurrCode'] == $myrow['currabrev']){
+ if ($_POST['CurrCode'] == $myrow['currabrev']) {
echo '<option selected="selected" value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>';
} else {
echo '<option value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>';
@@ -846,7 +845,7 @@
$result = DB_query($sql, $db);
while ($myrow = DB_fetch_array($result)) {
- if (isset($_POST['TaxGroup']) and $_POST['TaxGroup'] == $myrow['taxgroupid']){
+ if (isset($_POST['TaxGroup']) and $_POST['TaxGroup'] == $myrow['taxgroupid']) {
echo '<option selected="selected" value="' . $myrow['taxgroupid'] . '">' . $myrow['taxgroupdescription'] . '</option>';
} else {
echo '<option value="' . $myrow['taxgroupid'] . '">' . $myrow['taxgroupdescription'] . '</option>';
@@ -857,9 +856,9 @@
</tr>
</table>
<br />
- <div class="centre"><input type="submit" name="submit" value="' . _('Insert New Supplier') . '" /></div>';
+ <div class="centre"><input type="submit" name="submit" value="' . _('Insert New Supplier') . '" /></div>';
echo '</div>
- </form>';
+ </form>';
}
else {
@@ -867,7 +866,7 @@
//SupplierID exists - either passed when calling the form or from the form itself
echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">';
- echo '<div>';
+ echo '<div>';
echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
echo '<table class="selection">';
@@ -902,24 +901,24 @@
$myrow = DB_fetch_array($result);
$_POST['SuppName'] = stripcslashes($myrow['suppname']);
- $_POST['Address1'] = stripcslashes($myrow['address1']);
- $_POST['Address2'] = stripcslashes($myrow['address2']);
- $_POST['Address3'] = stripcslashes($myrow['address3']);
- $_POST['Address4'] = stripcslashes($myrow['address4']);
- $_POST['Address5'] = stripcslashes($myrow['address5']);
- $_POST['Address6'] = stripcslashes($myrow['address6']);
- $_POST['CurrCode'] = stripcslashes($myrow['currcode']);
+ $_POST['Address1'] = stripcslashes($myrow['address1']);
+ $_POST['Address2'] = stripcslashes($myrow['address2']);
+ $_POST['Address3'] = stripcslashes($myrow['address3']);
+ $_POST['Address4'] = stripcslashes($myrow['address4']);
+ $_POST['Address5'] = stripcslashes($myrow['address5']);
+ $_POST['Address6'] = stripcslashes($myrow['address6']);
+ $_POST['CurrCode'] = stripcslashes($myrow['currcode']);
$_POST['Phone'] = $myrow['telephone'];
$_POST['Fax'] = $myrow['fax'];
$_POST['Email'] = $myrow['email'];
$_POST['URL'] = $myrow['url'];
$_POST['SupplierType'] = $myrow['supptype'];
- $_POST['SupplierSince'] = ConvertSQLDate($myrow['suppliersince']);
- $_POST['PaymentTerms'] = $myrow['paymentterms'];
- $_POST['BankPartics'] = stripcslashes($myrow['bankpartics']);
- $_POST['Remittance'] = $myrow['remittance'];
- $_POST['BankRef'] = stripcslashes($myrow['bankref']);
- $_POST['BankAct'] = $myrow['bankact'];
+ $_POST['SupplierSince'] = ConvertSQLDate($myrow['suppliersince']);
+ $_POST['PaymentTerms'] = $myrow['paymentterms'];
+ $_POST['BankPartics'] = stripcslashes($myrow['bankpartics']);
+ $_POST['Remittance'] = $myrow['remittance'];
+ $_POST['BankRef'] = stripcslashes($myrow['bankref']);
+ $_POST['BankAct'] = $myrow['bankact'];
$_POST['TaxGroup'] = $myrow['taxgroupid'];
$_POST['FactorID'] = $myrow['factorcompanyid'];
$_POST['TaxRef'] = $myrow['taxref'];
@@ -928,10 +927,10 @@
} else {
// its a new supplier being added
-
+
echo '<tr><td><input type="hidden" name="New" value="Yes" />';
/* if $AutoSupplierNo is off (i.e. 0) then provide an input box for the SupplierID to manually assigned */
- if ($_SESSION['AutoSupplierNo']== 0 ) {
+ if ($_SESSION['AutoSupplierNo']== 0 ) {
echo _('Supplier Code') . ':</td>
<td><input '.(in_array('ID',$Errors) ? 'class="inputerror"' : '').' type="text" name="SupplierID" value="' . $SupplierID . '" size="12" maxlength="10" /></td></tr>';
}
@@ -943,7 +942,7 @@
</tr>
<tr>
<td>' . _('Address Line 1 (Street)') . ':</td>
- <td><input type="text" name="Address1" value="' . $_POST['Address1'] . '" size="42" maxlength="40" /></td>
+ <td><input type="text" name="Address1" value="' . $_POST['Address1'] . '" size="42" maxlength="40" /></td>
</tr>
<tr>
<td>' . _('Address Line 2 (Street)') . ':</td>
@@ -959,19 +958,19 @@
</tr>
<tr>
<td>' . _('Address Line 5 (Postal Code)') . ':</td>
- <td><input type="text" name="Address5" value="' . $_POST['Address5'] . '" size="42" placeholder="'._('Witin 40 characters').'" maxlength="40" /></td>
+ <td><input type="text" name="Address5" value="' . $_POST['Address5'] . '" size="42" placeholder="'._('Within 40 characters').'" maxlength="40" /></td>
</tr>
<tr>
<td>' . _('Country') . ':</td>
<td><select name="Address6">';
-
- foreach ($CountriesArray as $CountryEntry => $CountryName){
- if (isset($_POST['Address6']) AND ($_POST['Address6'] == $CountryName)){
- echo '<option selected="selected" value="' . $CountryName . '">' . $CountryName . '</option>';
+
+ foreach ($CountriesArray as $CountryEntry => $CountryName) {
+ if (isset($_POST['Address6']) AND ($_POST['Address6'] == $CountryName)) {
+ echo '<option selected="selected" value="' . $CountryName . '">' . $CountryName . '</option>';
}elseif (!isset($_POST['Address6']) AND $CountryName == "") {
- echo '<option selected="selected" value="' . $CountryName . '">' . $CountryName . '</option>';
+ echo '<option selected="selected" value="' . $CountryName . '">' . $CountryName . '</option>';
} else {
- echo '<option value="' . $CountryName . '">' . $CountryName . '</option>';
+ echo '<option value="' . $CountryName . '">' . $CountryName . '</option>';
}
}
echo '</select></td>
@@ -979,15 +978,15 @@
echo '<tr>
<td>' . _('Telephone') . ':</td>
- <td><input '.(in_array('Name',$Errors) ? 'class="inputerror"' : '').' type="tel" pattern="[\s\d+()-]{1,40}" placeholder="'._('Only digit blank ( ) and - allowed').'" name="Phone" value="' . $_POST['Phone'] . '" size="42" maxlength="40" /></td>
+ <td><input '.(in_array('Name',$Errors) ? 'class="inputerror"' : '').' type="tel" pattern="[\s\d+()-] {1,40}" placeholder="'._('Only digit blank ( ) and - allowed').'" name="Phone" value="' . $_POST['Phone'] . '" size="42" maxlength="40" /></td>
</tr>
<tr>
<td>' . _('Facsimile') . ':</td>
- <td><input '.(in_array('Name',$Errors) ? 'class="inputerror"' : '').' type="tel" pattern="[\s\d+()-]{1,40}" placeholder="'._('Only digit blank ( ) and - allowed').'" name="Fax" value="' . $_POST['Fax'] . '" size="42" maxlength="40" /></td>
+ <td><input '.(in_array('Name',$Errors) ? 'class="inputerror"' : '').' type="tel" pattern="[\s\d+()-] {1,40}" placeholder="'._('Only digit blank ( ) and - allowed').'" name="Fax" value="' . $_POST['Fax'] . '" size="42" maxlength="40" /></td>
</tr>
<tr>
<td>' . _('Email Address') . ':</td>
- <td><input '.(in_array('Name',$Errors) ? 'class="inputerror"' : '').' type="email" title="'._('The input must be in email format').'" name="Email" value="' . $_POST['Email'] . '" size="42" maxlength="40" placeholder="'._('email format such as xx...@ma...').'" pattern="[a-z0-9!#$%&\'*+/=?^_`{|}~.-]+@[a-z0-9-]+(\.[a-z0-9-]+)*" /></td>
+ <td><input '.(in_array('Name',$Errors) ? 'class="inputerror"' : '').' type="email" title="'._('The input must be in email format').'" name="Email" value="' . $_POST['Email'] . '" size="42" maxlength="40" placeholder="'._('email format such as xx...@ma...').'" pattern="[a-z0-9!#$%&\'*+/=?^_` {|}~.-]+@[a-z0-9-]+(\.[a-z0-9-]+)*" /></td>
</tr>
<tr>
<td>' . _('URL') . ':</td>
@@ -999,16 +998,16 @@
$result=DB_query("SELECT typeid, typename FROM suppliertype", $db);
while ($myrow = DB_fetch_array($result)) {
if ($_POST['SupplierType']==$myrow['typeid']) {
- echo '<option selected="selected" value="'. $myrow['typeid'] . '">' . $myrow['typename'] . '</option>';
+ echo '<option selected="selected" value="'. $myrow['typeid'] . '">' . $myrow['typename'] . '</option>';
} else {
- echo '<option value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>';
+ echo '<option value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>';
}
} //end while loop
echo '</select></td>
</tr>
<tr>
<td>' . _('Supplier Since') . ' (' . $_SESSION['DefaultDateFormat'] .'):</td>
- <td><input '.(in_array('SupplierSince',$Errors) ? 'class="inputerror"' : '').' size="12" maxlength="10" type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="SupplierSince" value="' . $_POST['SupplierSince'] . '" /></td>
+ <td><input '.(in_array('SupplierSince',$Errors) ? 'class="inputerror"' : '').' size="12" maxlength="10" type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="SupplierSince" value="' . $_POST['SupplierSince'] . '" /></td>
</tr>
<tr>
<td>' . _('Bank Particulars') . ':</td>
@@ -1016,7 +1015,7 @@
</tr>
<tr>
<td>' . _('Bank Reference') . ':</td>
- <td><input '.(in_array('BankRef',$Errors) ? 'class="inputerror"' : '').' type="text" name="BankRef" size="13" maxlength="12" value="' . $_POST['BankRef'] . '" /></td>
+ <td><input '.(in_array('BankRef',$Errors) ? 'class="inputerror"' : '').' type="text" name="BankRef" size="13" maxlength="12" value="' . $_POST['BankRef'] . '" /></td>
</tr>
<tr>
<td>' . _('Bank Account No') . ':</td>
@@ -1030,14 +1029,14 @@
<td><select name="PaymentTerms">';
while ($myrow = DB_fetch_array($result)) {
- if ($_POST['PaymentTerms'] == $myrow['termsindicator']){
- echo '<option selected="selected" value="' . $myrow['termsindicator'] . '">' . $myrow['terms'] . '</option>';
+ if ($_POST['PaymentTerms'] == $myrow['termsindicator']) {
+ echo '<option selected="selected" value="' . $myrow['termsindicator'] . '">' . $myrow['terms'] . '</option>';
} else {
- echo '<option value="' . $myrow['termsindicator'] . '">' . $myrow['terms'] . '</option>';
+ echo '<option value="' . $myrow['termsindicator'] . '">' . $myrow['terms'] . '</option>';
}
} //end while loop
DB_data_seek($result, 0);
- echo '</select></td></tr>';
+ echo '</select></td></tr>';
$result=DB_query("SELECT id, coyname FROM factorcompanies", $db);
@@ -1046,14 +1045,14 @@
<td><select name="FactorID">';
echo '<option value="0">' . _('None') . '</option>';
while ($myrow = DB_fetch_array($result)) {
- if ($_POST['FactorID'] == $myrow['id']){
- echo '<option selected="selected" value="' . $myrow['id'] . '">' . $myrow['coyname'] . '</option>';
+ if ($_POST['FactorID'] == $myrow['id']) {
+ echo '<option selected="selected" value="' . $myrow['id'] . '">' . $myrow['coyname'] . '</option>';
} else {
- echo '<option value="' . $myrow['id'] . '">' . $myrow['coyname'] . '</option>';
+ echo '<option value="' . $myrow['id'] . '">' . $myrow['coyname'] . '</option>';
}
} //end while loop
DB_data_seek($result, 0);
- echo '</select></td></tr>';
+ echo '</select></td></tr>';
echo '<tr>
<td>' . _('Tax Reference') . ':</td>
<td><input type="text" name="TaxRef" size="21" maxlength="20" value="' . $_POST['TaxRef'] .'" /></td>
@@ -1065,10 +1064,10 @@
<td>' . _('Supplier Currency') . ':</td>
<td><select name="CurrCode">';
while ($myrow = DB_fetch_array($result)) {
- if ($_POST['CurrCode'] == $myrow['currabrev']){
- echo '<option selected="selected" value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>';
+ if ($_POST['CurrCode'] == $myrow['currabrev']) {
+ echo '<option selected="selected" value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>';
} else {
- echo '<option value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>';
+ echo '<option value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>';
}
} //end while loop
DB_data_seek($result, 0);
@@ -1079,12 +1078,12 @@
<td>' . _('Remittance Advice') . ':</td>
<td><select name="Remittance">';
- if ($_POST['Remittance'] == 0){
- echo '<option selected="selected" value="0">' . _('Not Required') . '</option>';
- echo '<option value="1">' . _('Required') . '</option>';
+ if ($_POST['Remittance'] == 0) {
+ echo '<option selected="selected" value="0">' . _('Not Required') . '</option>';
+ echo '<option value="1">' . _('Required') . '</option>';
} else {
- echo '<option value="0">' . _('Not Required') . '</option>';
- echo '<option selected="selected" value="1">' . _('Required') . '</option>';
+ echo '<option value="0">' . _('Not Required') . '</option>';
+ echo '<option selected="selected" value="1">' . _('Required') . '</option>';
}
@@ -1114,9 +1113,9 @@
if (isset($_POST['New'])) {
echo '<br />
- <div class="centre">
- <input type="submit" name="submit" value="' . _('Add These New Supplier Details') . '" />
- </div>';
+ <div class="centre">
+ <input type="submit" name="submit" value="' . _('Add These New Supplier Details') . '" />
+ </div>';
} else {
echo '<br />
<div class="centre">
@@ -1131,7 +1130,7 @@
</div>';
}
echo '</div>
- </form>';
+ </form>';
} // end of main ifs
include('includes/footer.inc');
Modified: trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo
===================================================================
(Binary files differ)
Modified: trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po
===================================================================
--- trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po 2014-09-11 15:03:03 UTC (rev 6878)
+++ trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po 2014-09-11 16:26:54 UTC (rev 6879)
@@ -8,7 +8,7 @@
"Project-Id-Version: webERP 4.11.3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-09-11 08:16-0600\n"
-"PO-Revision-Date: 2014-08-30 17:36-0600\n"
+"PO-Revision-Date: 2014-09-11 10:07-0600\n"
"Last-Translator: Rafael Chacon <raf...@gm...>\n"
"Language-Team: TecnoSoluciones.com <web...@te...>\n"
"Language: es_ES\n"
@@ -7944,7 +7944,7 @@
#: CustItem.php:145
msgid "Customer Unit"
-msgstr ""
+msgstr "Unidad del cliente"
#: CustItem.php:146 PurchData.php:274 SupplierPriceList.php:536
msgid "Conversion Factor"
@@ -7952,11 +7952,11 @@
#: CustItem.php:147 SelectOrderItems.php:1645
msgid "Customer Item"
-msgstr ""
+msgstr "Artículo del cliente"
#: CustItem.php:148
msgid "Customer Description"
-msgstr ""
+msgstr "Descripción del cliente"
#: CustItem.php:167
#, php-format
@@ -8062,7 +8062,7 @@
#: CustItem.php:425
msgid "Customer Unit of Measure"
-msgstr ""
+msgstr "Unidad de medida del cliente"
#: CustItem.php:434 PurchData.php:639
msgid "Conversion Factor (to our UOM)"
@@ -8070,11 +8070,11 @@
#: CustItem.php:438
msgid "Customer Stock Code"
-msgstr ""
+msgstr "Código de inventario del cliente"
#: CustItem.php:442
msgid "Customer Stock Description"
-msgstr ""
+msgstr "Descricpción de inventario del cliente"
#: CustItem.php:455 MailingGroupMaintenance.php:250 PurchData.php:763
#: SellThroughSupport.php:481 Shipments.php:523 StockAdjustments.php:485
@@ -8534,15 +8534,21 @@
#: CustomerAllocations.php:416
msgid ""
-"Check this box to allocate the entire amount of this transaction. Just "
-"enter the amount without ticking this check box for a partial allocation"
+"Check this box to allocate the entire amount of this transaction. Just enter "
+"the amount without ticking this check box for a partial allocation"
msgstr ""
+"Marque esta casilla para asignar la totalidad del monto de esta transacción. "
+"Solo introduzca la cantidad sin marcar esta casilla para una asignación "
+"parcial"
#: CustomerAllocations.php:425
msgid ""
"Enter the amount of this transaction to be allocated. Nothing should be "
"entered here if the entire transaction is to be allocated, use the check box"
msgstr ""
+"Ingrese el monto de esta transacción a ser asignado. Nada debe ser "
+"introducido aquí si toda la transacción es a ser asignada, para eso use la "
+"casilla"
#: CustomerAllocations.php:435 SupplierAllocations.php:506
msgid "Total Allocated"
@@ -9173,7 +9179,7 @@
#: CustomerInquiry.php:305
msgid "Credit "
-msgstr ""
+msgstr "Crédito"
#: CustomerInquiry.php:305
msgid "Click to credit the invoice"
@@ -9181,7 +9187,7 @@
#: CustomerInquiry.php:307 CustomerInquiry.php:311
msgid "HTML "
-msgstr ""
+msgstr "HTML"
#: CustomerInquiry.php:307 CustomerTransInquiry.php:146
#, php-format
@@ -9190,7 +9196,7 @@
#: CustomerInquiry.php:308 CustomerInquiry.php:312
msgid "PDF "
-msgstr ""
+msgstr "PDF"
#: CustomerInquiry.php:308 CustomerInquiry.php:312 SelectSalesOrder.php:768
#: SelectSalesOrder.php:795
@@ -9200,7 +9206,7 @@
#: CustomerInquiry.php:309
msgid "Email "
-msgstr ""
+msgstr "Correo-e"
#: CustomerInquiry.php:309
msgid "Click to email the invoice"
@@ -20804,7 +20810,7 @@
#: PO_Items.php:1175 PO_Items.php:1251
msgid "Order some"
-msgstr ""
+msgstr "Pedir algunos"
#: PO_Items.php:1189
msgid "Our Units"
@@ -23620,7 +23626,7 @@
#: PrintWOItemSlip.php:109
msgid "Item Produced By"
-msgstr ""
+msgstr "Artículo producido por"
#: PrintWOItemSlip.php:109
msgid "Quality Control By"
@@ -23640,7 +23646,7 @@
#: PrintWOItemSlip.php:150 WOCanBeProducedNow.php:42
msgid "WO"
-msgstr ""
+msgstr "Orden de trabajo"
#: PrintWOItemSlip.php:168
msgid "Component Code"
@@ -23652,7 +23658,7 @@
#: PrintWOItemSlip.php:171
msgid "Qty Needed"
-msgstr ""
+msgstr "Cantidad necesaria"
#: PrintWOItemSlip.php:173 WOCanBeProducedNow.php:51
msgid "Shrinkage"
@@ -30821,11 +30827,11 @@
#: StockLocTransferReceive.php:342
msgid "Qty received"
-msgstr ""
+msgstr "Cantidad recibida"
#: StockLocTransferReceive.php:343
msgid "By user"
-msgstr ""
+msgstr "Por usuario"
#: StockLocTransferReceive.php:344
msgid "At"
@@ -32305,7 +32311,7 @@
#: SuppLoginSetup.php:146
msgid "email address format"
-msgstr ""
+msgstr "formato de dirección de correo-e"
#: SuppLoginSetup.php:181
msgid ""
@@ -34064,7 +34070,7 @@
#: SupplierTypes.php:230
msgid "less than 100 characters"
-msgstr ""
+msgstr "menos de 100 caracteres"
#: Suppliers.php:18
msgid "NZ account numbers must have 16 numeric characters in it"
@@ -34306,7 +34312,7 @@
#: Suppliers.php:695
msgid "within 10 characters"
-msgstr ""
+msgstr "Hasta 10 caracteres"
#: Suppliers.php:700
msgid ""
@@ -34384,7 +34390,7 @@
#: Suppliers.php:809 TaxAuthorities.php:257
msgid "Within 20 characters"
-msgstr ""
+msgstr "Hasta 20 caracteres"
#: Suppliers.php:835 Suppliers.php:1083 Suppliers.php:1086
msgid "Not Required"
@@ -34396,11 +34402,11 @@
#: Suppliers.php:954 Suppliers.php:958
msgid "Within 40 characters"
-msgstr ""
+msgstr "Hasta 40 caracteres"
#: Suppliers.php:962
msgid "Witin 40 characters"
-msgstr ""
+msgstr "Hasta 40 caracteres"
#: Suppliers.php:982 Suppliers.php:986
msgid "Only digit blank ( ) and - allowed"
@@ -36112,11 +36118,11 @@
#: TaxCategories.php:237
msgid "Tax Category Name"
-msgstr "Nombre de la Clase de Impuesto"
+msgstr "Nombre de la clase de impuesto"
#: TaxCategories.php:238
msgid "No more than 30 characters"
-msgstr ""
+msgstr "No más de 30 caracteres"
#: TaxCategories.php:238
msgid "No illegal characters allowed and cannot be blank"
@@ -36129,7 +36135,7 @@
#: TaxGroups.php:5
msgid "Tax Groups"
-msgstr "Grupos de Impuestos"
+msgstr "Grupos de impuestos"
#: TaxGroups.php:30
msgid "The Group description entered must be at least 4 characters long"
@@ -36253,11 +36259,11 @@
#: TaxGroups.php:285 TaxGroups.php:338
msgid "Calculation Order"
-msgstr "Orden de Cálculo"
+msgstr "Orden de cálculo"
#: TaxGroups.php:290
msgid "Tax on Prior Taxes"
-msgstr "Impuesto sobre Impuesto Anterior"
+msgstr "Impuesto sobre impuestos anteriores"
#: TaxGroups.php:307
msgid "The input must be positive integer and less than 5"
@@ -36396,7 +36402,7 @@
#: TaxProvinces.php:227
msgid "Tax Province Name"
-msgstr "Nombre de La Jurisdicción Fiscal"
+msgstr "Nombre de la jurisdicción fiscal"
#: TaxProvinces.php:228
msgid "The tax province cannot be left blank and includes illegal characters"
@@ -47844,7 +47850,7 @@
#: includes/MainMenuLinksArray.php:378
msgid "Bank Accounts"
-msgstr "Cuentas Bancarias"
+msgstr "Cuentas bancarias"
#: includes/MainMenuLinksArray.php:389
msgid "Add a new Asset"
@@ -50500,7 +50506,7 @@
#: ../webSHOP/includes/Functions.php:474
msgid "web"
-msgstr ""
+msgstr "web"
#: ../webSHOP/includes/Functions.php:487
msgid "payment for order"
|