From: <rc...@us...> - 2013-11-07 22:51:09
|
Revision: 6399 http://sourceforge.net/p/web-erp/reponame/6399 Author: rchacon Date: 2013-11-07 22:51:06 +0000 (Thu, 07 Nov 2013) Log Message: ----------- Allow translation of the key name in FormDesigner.php. Modified Paths: -------------- trunk/FormDesigner.php trunk/doc/Change.log Modified: trunk/FormDesigner.php =================================================================== --- trunk/FormDesigner.php 2013-11-07 11:16:56 UTC (rev 6398) +++ trunk/FormDesigner.php 2013-11-07 22:51:06 UTC (rev 6399) @@ -189,7 +189,7 @@ foreach ($FormDesign as $key) { switch ($key['type']) { case 'image': - echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="8">' . $key['name'] . '</th></tr>'; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="8">' . _($key['name']) . '</th></tr>'; echo '<tr>'; echo '<td class="number">' . _('x').' = ' . '</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'" /></td>'; echo '<td class="number">' . _('y').' = ' . '</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'" /></td>'; @@ -200,7 +200,7 @@ $counter=$counter+1; break; case 'SimpleText': - echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">' . $key['name'] . '</th></tr>' . "\n"; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">' . _($key['name']) . '</th></tr>' . "\n"; echo '<tr>'; SimpleTextLine($key); echo '</tr>'; @@ -208,7 +208,7 @@ $counter=$counter+1; break; case 'MultiLineText': - echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="4">' . $key['name'] . '</th></tr>' . "\n"; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="4">' . _($key['name']) . '</th></tr>' . "\n"; echo '<tr>'; MultiTextLine($key); echo '</tr>'; @@ -216,7 +216,7 @@ $counter=$counter+1; break; case 'ElementArray': - echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="7">' . $key['name'] . '</th></tr>' . "\n"; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="7">' . _($key['name']) . '</th></tr>' . "\n"; foreach ($key as $subkey) { if ($subkey['type']=='SimpleText') { echo '<tr>'; @@ -243,7 +243,7 @@ $counter=$counter+1; break; case 'CurvedRectangle': - echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">' . $key['name'] . '</th></tr>'; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">' . _($key['name']) . '</th></tr>'; echo '<tr>'; echo '<td class="number">' . _('x').' = ' . '</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'" /></td>'; echo '<td class="number">' . _('y').' = ' . '</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'" /></td>'; @@ -255,7 +255,7 @@ $counter=$counter+1; break; case 'Rectangle': - echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">' . $key['name'] . '</th></tr>'; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">' . _($key['name']) . '</th></tr>'; echo '<tr>'; echo '<td class="number">' . _('x').' = ' . '</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'" /></td>'; echo '<td class="number">' . _('y').' = ' . '</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'" /></td></tr><tr>'; @@ -266,7 +266,7 @@ $counter=$counter+1; break; case 'Line': - echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">' . $key['name'] . '</th></tr>'; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">' . _($key['name']) . '</th></tr>'; echo '<tr>'; echo '<td class="number">' . _('Start x co-ordinate').' = ' . '</td><td><input type="text" class="number" name="'.$key['id'].'startx" size="4" maxlength="4" value="'.$key->startx.'" /></td>'; echo '<td class="number">' . _('Start y co-ordinate').' = ' . '</td><td><input type="text" class="number" name="'.$key['id'].'starty" size="4" maxlength="4" value="'.$key->starty.'" /></td></tr><tr>'; Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2013-11-07 11:16:56 UTC (rev 6398) +++ trunk/doc/Change.log 2013-11-07 22:51:06 UTC (rev 6399) @@ -1,7 +1,8 @@ webERP Change Log +07/11/2013 rchacon: Allow translation of the key name in FormDesigner.php. 7/11/2013 Exson: Add check box to allow user to decide weather raw material is sellable or not. 7/11/2013 Exson Revise the bin definition to NOT NULL DEFAULT '' as suggest by Tim to make it more ISO compatible. -06/11/2013 rchacon: Allow multiline printing of salesorderdetails.narrative in Quotations. +06/11/2013 rchacon: Allow multiline printing of salesorderdetails.narrative in quotations. 5/11/2013 Phil: Fixed the warning error in GLAccountInquiry.php add change variable type to array to make min() and max() reasonable. Reported by Jo 04/11/2013 icedlava: change insert new clone stock event to transaction as in Stocks.php for new item. 03/11/2013 rchacon: Allow translate the name of the currency on CompanyPreferences.php. |