[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[3515] trunk/templates/demo
- Subject: SF.net SVN: ledger-smb:[3515] trunk/templates/demo
- From: ..hidden..
- Date: Fri, 15 Jul 2011 00:54:00 +0000
Revision: 3515
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3515&view=rev
Author: einhverfr
Date: 2011-07-15 00:54:00 +0000 (Fri, 15 Jul 2011)
Log Message:
-----------
More localization for html templates
Modified Paths:
--------------
trunk/templates/demo/letterhead.html
trunk/templates/demo/packing_list.html
trunk/templates/demo/pick_list.html
trunk/templates/demo/printPayment.html
trunk/templates/demo/purchase_order.html
Modified: trunk/templates/demo/letterhead.html
===================================================================
--- trunk/templates/demo/letterhead.html 2011-07-15 00:07:38 UTC (rev 3514)
+++ trunk/templates/demo/letterhead.html 2011-07-15 00:54:00 UTC (rev 3515)
@@ -10,13 +10,16 @@
<?lsmb address ?>
</h4>
</td>
+ <!-- Commenting out the image tag for now. In general, folks can
+ customize this to their servers, but if the server is behind a
+ firewall, then this won't work. Recommend that if people do this,
+ they hardwire in a link to a publically accessible image. - CT -->
+ <th><!-- <img src=<?lsmb images ?>/logo.png border=0 height=58> --></th>
- <th><img src=<?lsmb images ?>/logo.png border=0 height=58></th>
-
<td align=right>
<h4>
- Tel: <?lsmb tel ?><br>
- Fax: <?lsmb fax ?>
+ <?lsmb text('Tel: [_1]', tel) ?><br>
+ <?lsmb text('Fax: [_1]', fax) ?>
</h4>
</td>
</tr>
Modified: trunk/templates/demo/packing_list.html
===================================================================
--- trunk/templates/demo/packing_list.html 2011-07-15 00:07:38 UTC (rev 3514)
+++ trunk/templates/demo/packing_list.html 2011-07-15 00:54:00 UTC (rev 3515)
@@ -9,7 +9,8 @@
<td width=10> </td>
<th colspan=3>
- <h4>P A C K I N G L I S T</h4>
+ <h4 style="text-transform:uppercase; letter-spacing:0.5em">
+ <?lsmb text('Packing List') ?></h4>
</th>
</tr>
@@ -19,7 +20,9 @@
<td>
<table width=100% cellspacing=0 cellpadding=0>
<tr bgcolor=000000>
- <th width=50% align=left><font color=ffffff>Ship To:</th>
+ <th width=50% align=left><font color=ffffff>
+ <?lsmb text('Ship To:') ?>
+ </th>
<th width="50%"> </th>
</tr>
@@ -41,15 +44,15 @@
<td>
<?lsmb IF shiptocontact ?>
- <br>Attn: <?lsmb shiptocontact ?>
+ <br><?lsmb text('Attn: [_1]', shiptocontact) ?>
<?lsmb END ?>
<?lsmb IF shiptophone ?>
- <br>Tel: <?lsmb shiptophone ?>
+ <br><?lsmb text('Tel: [_1]', shiptophone) ?>
<?lsmb END ?>
<?lsmb IF shiptofax ?>
- <br>Fax: <?lsmb shiptofax ?>
+ <br><?lsmb text('Fax: [_1]', shiptofax) ?>
<?lsmb END ?>
<?lsmb shiptoemail ?>
@@ -67,15 +70,15 @@
<td>
<table width=100% border=1>
<tr>
- <th width=17% align=left>Invoice #</th>
- <th width=17% align=left>Order #</th>
- <th width=17% align=left>Date</th>
- <th width=17% align=left nowrap>Contact</th>
+ <th width=17% align=left><?lsmb text('Invoice #') ?></th>
+ <th width=17% align=left><?lsmb text('Order #') ?></th>
+ <th width=17% align=left><?lsmb text('Date') ?></th>
+ <th width=17% align=left nowrap><?lsmb text('Contact') ?></th>
<?lsmb IF warehouse ?>
- <th width=17% align=left>Warehouse</th>
+ <th width=17% align=left><?lsmb text('Warehouse') ?></th>
<?lsmb END ?>
- <th width=17% align=left>Shipping Point</th>
- <th width=15% align=left>Ship via</th>
+ <th width=17% align=left><?lsmb text('Shipping Point') ?></th>
+ <th width=15% align=left><?lsmb text('Ship via') ?></th>
</tr>
<tr>
@@ -107,13 +110,13 @@
<td>
<table width="100%">
<tr bgcolor=000000>
- <th align=left><font color=ffffff>Item</th>
- <th align=left><font color=ffffff>Number</th>
- <th align=left><font color=ffffff>Description</th>
- <th align=left><font color=ffffff>Serial #</th>
+ <th align=left><font color=ffffff><?lsmb text('Item') ?></th>
+ <th align=left><font color=ffffff><?lsmb text('Number') ?></th>
+ <th align=left><font color=ffffff><?lsmb text('Description') ?></th>
+ <th align=left><font color=ffffff><?lsmb text('Serial #') ?></th>
<th> </th>
- <th><font color=ffffff>Qty</th>
- <th><font color=ffffff>Ship</th>
+ <th><font color=ffffff><?lsmb text('Qty') ?></th>
+ <th><font color=ffffff><?lsmb text('Ship') ?></th>
<th> </th>
</tr>
@@ -163,11 +166,7 @@
<table width="100%">
<tr valign=top>
<td width="70%"><font size=-3>
- Items returned are subject to
- a 10% restocking charge. A return authorization must be obtained
- from <?lsmb company ?> before goods are returned. Returns must be shipped
- prepaid and properly insured. <?lsmb company ?> will not be responsible
- for damages during transit.
+ <?lsmb text('Items returned are subject to a 10% restocking charge. A return authorization must be obtained from [_1] before goods are returned. Returns must be shipped prepaid and properly insured. [_1] will not be responsible for damages during transit.', company) ?>
</font>
</td>
<td width="30%">
Modified: trunk/templates/demo/pick_list.html
===================================================================
--- trunk/templates/demo/pick_list.html 2011-07-15 00:07:38 UTC (rev 3514)
+++ trunk/templates/demo/pick_list.html 2011-07-15 00:54:00 UTC (rev 3515)
@@ -9,7 +9,8 @@
<td width=10> </td>
<th colspan=3>
- <h4>P I C K L I S T</h4>
+ <h4 style="text-transform:uppercase; letter-spacing:0.5em">
+ <?lsmb text('Pick List') ?>
</th>
</tr>
@@ -19,7 +20,8 @@
<td>
<table width=100% cellspacing=0 cellpadding=0>
<tr bgcolor=000000>
- <th width=50% align=left><font color=ffffff>Ship To:</th>
+ <th width=50% align=left><font color=ffffff><?lsmb text('Ship To:')
+ ?></th>
<th width="50%"> </th>
</tr>
@@ -41,15 +43,15 @@
<td>
<?lsmb IF shiptocontact ?>
- <br>Attn: <?lsmb shiptocontact ?>
+ <br><?lsmb text('Attn: [_1]', shiptocontact) ?>
<?lsmb END ?>
<?lsmb IF shiptophone ?>
- <br>Tel: <?lsmb shiptophone ?>
+ <br><?lsmb text('Tel: [_1]', shiptophone) ?>
<?lsmb END ?>
<?lsmb IF shiptofax ?>
- <br>Fax: <?lsmb shiptofax ?>
+ <br><?lsmb text('Fax: [_1]', shiptofax) ?>
<?lsmb END ?>
<?lsmb shiptoemail ?>
@@ -67,13 +69,13 @@
<td>
<table width=100% border=1>
<tr>
- <th width=15% align=left>Invoice #</th>
- <th width=15% align=left>Order #</th>
- <th width=10% align=left>Date</th>
- <th width=15% align=left nowrap>Contact</th>
- <th width=15% align=left>Warehouse</th>
- <th width=10% align=left>Shipping Point</th>
- <th width=10% align=left>Ship via</th>
+ <th width=15% align=left><?lsmb text('Invoice #') ?></th>
+ <th width=15% align=left><?lsmb text('Order #') ?></th>
+ <th width=10% align=left><?lsmb text('Date') ?></th>
+ <th width=15% align=left nowrap><?lsmb text('Contact') ?></th>
+ <th width=15% align=left><?lsmb text('Warehouse') ?></th>
+ <th width=10% align=left><?lsmb text('Shipping Point') ?></th>
+ <th width=10% align=left><?lsmb text('Ship via') ?></th>
</tr>
<tr>
@@ -100,13 +102,13 @@
<td>
<table width="100%">
<tr bgcolor=000000>
- <th align=left><font color=ffffff>Item</th>
- <th align=left><font color=ffffff>Number</th>
- <th align=left><font color=ffffff>Description</th>
- <th><font color=ffffff>Qty</th>
- <th><font color=ffffff>Ship</th>
+ <th align=left><font color=ffffff><?lsmb text('Item') ?></th>
+ <th align=left><font color=ffffff><?lsmb text('Number') ?></th>
+ <th align=left><font color=ffffff><?lsmb text('Description') ?></th>
+ <th><font color=ffffff><?lsmb text('Qty') ?></th>
+ <th><font color=ffffff><?lsmb text('Ship') ?></th>
<th> </th>
- <th><font color=ffffff>Bin</th>
+ <th><font color=ffffff><?lsmb text('Bin') ?></th>
</tr>
<?lsmb FOREACH number ?>
Modified: trunk/templates/demo/printPayment.html
===================================================================
--- trunk/templates/demo/printPayment.html 2011-07-15 00:07:38 UTC (rev 3514)
+++ trunk/templates/demo/printPayment.html 2011-07-15 00:54:00 UTC (rev 3515)
@@ -23,13 +23,13 @@
<th id="top_bar_header" colspan="2" width="30%" align="left">
<h5>
LOGO AREA
- <br/>Adress: <?lsmb company.address ?>
- <br/>Tel: <?lsmb company.telephone ?>
+ <br/><?lsmb text('Address: [_1]', company.address) ?>
+ <br/><?lsmb text('Tel: [_1]', company.telephone) ?>
</h5>
</th>
<th align="left">
- <h1>
- PAYMENT ORDER NUMBER <?lsmb header.payment_reference ?>
+ <h1 style="text-transform:uppercase">
+ <?lsmb text('Payment Order Number [_1]', header.payment_reference) ?>
</h1>
</th>
</tr>
@@ -63,7 +63,7 @@
</tr>
<?lsmb END -?>
<tr valign="top">
- <th align="right" colspan="4"> TOTAL</th>
+ <th align="right" colspan="4"> <?lsmb text('TOTAL' ?></th>
<td align="center"> <?lsmb header.amount ?> </td>
</tr>
</table>
@@ -78,13 +78,13 @@
<font color=000000><?lsmb text('Date') ?>: <?lsmb header.payment_date ?></font>
</th>
<th rowspan="5" width="30%" align="left">
- <font size=3>
- SIGNATURE
+ <font size=3 style="text-transform:uppercase">
+ <?lsmb text('Signature') ?>
<br></br>
<br></br>
<br></br>
<br>___________________________________________</br>
- IDENTIFICATION.
+ <?lsmb text('Identification') ?>
</font>
</th>
Modified: trunk/templates/demo/purchase_order.html
===================================================================
--- trunk/templates/demo/purchase_order.html 2011-07-15 00:07:38 UTC (rev 3514)
+++ trunk/templates/demo/purchase_order.html 2011-07-15 00:54:00 UTC (rev 3515)
@@ -9,7 +9,9 @@
<td width=10> </td>
<th colspan=3>
- <h4>P U R C H A S E O R D E R</h4>
+ <h4 style="text-transform:uppercase; letter-spacing:0.5em">
+ <?lsmb text('Purchase Order') ?>
+ </h4>
</th>
</tr>
@@ -19,8 +21,8 @@
<td>
<table width=100% cellspacing=0 cellpadding=0>
<tr bgcolor=000000>
- <th align=left width="50%"><font color=ffffff>To:</th>
- <th align=left width="50%"><font color=ffffff>Ship To:</th>
+ <th align=left width="50%"><font color=ffffff><?lsmb text('To:') ?></th>
+ <th align=left width="50%"><font color=ffffff><?lsmb text('Ship To:') ?></th>
</tr>
<tr valign=top>
@@ -40,15 +42,15 @@
<br>
<?lsmb IF contact ?>
- <br>Attn: <?lsmb contact ?>
+ <br><?lsmb text('Attn: [_1]', contact) ?>
<?lsmb END ?>
<?lsmb IF vendorphone ?>
- <br>Tel: <?lsmb vendorphone ?>
+ <br><?lsmb text('Tel: [_1]', vendorphone) ?>
<?lsmb END ?>
<?lsmb IF vendorfax ?>
- <br>Fax: <?lsmb vendorfax ?>
+ <br><?lsmb text('Fax: [_1]', vendorfax) ?>
<?lsmb END ?>
</td>
@@ -68,15 +70,15 @@
<br>
<?lsmb IF shiptocontact ?>
- <br>Attn: <?lsmb shiptocontact ?>
+ <br><?lsmb text('Attn: [_1]', shiptocontact) ?>
<?lsmb END ?>
<?lsmb IF shiptophone ?>
- <br>Tel: <?lsmb shiptophone ?>
+ <br><?lsmb text('Tel: [_1]', shiptophone) ?>
<?lsmb END ?>
<?lsmb IF shiptofax ?>
- <br>Fax: <?lsmb shiptofax ?>
+ <br><?lsmb text('Fax: [_1]', shiptofax) ?>
<?lsmb END ?>
</td>
</tr>
@@ -92,12 +94,12 @@
<td>
<table width=100% border=1>
<tr>
- <th width=17% align=left>Order #</th>
- <th width=17% align=left>Order Date</th>
- <th width=17% align=left>Required by</th>
- <th width=17% align=left>Contact</th>
- <th width=17% align=left>Shipping Point</th>
- <th width=15% align=left>Ship Via</th>
+ <th width=17% align=left><?lsmb text('Order #') ?></th>
+ <th width=17% align=left><?lsmb text('Order Date') ?></th>
+ <th width=17% align=left><?lsmb text('Required by') ?></th>
+ <th width=17% align=left><?lsmb text('Contact') ?></th>
+ <th width=17% align=left><?lsmb text('Shipping Point') ?></th>
+ <th width=15% align=left><?lsmb text('Ship Via') ?></th>
</tr>
<tr>
@@ -116,14 +118,14 @@
<td>
<table width="100%">
<tr bgcolor=000000>
- <th align=right><font color=ffffff>Item</th>
- <th align=left><font color=ffffff>Number</th>
- <th align=left><font color=ffffff>Description</th>
- <th><font color=ffffff>Qt'y</th>
+ <th align=right><font color=ffffff><?lsmb text('Item') ?></th>
+ <th align=left><font color=ffffff><?lsmb text('Number') ?></th>
+ <th align=left><font color=ffffff><?lsmb text('Description') ?></th>
+ <th><font color=ffffff><?lsmb text('Qty') ?></th>
<th> </th>
- <th><font color=ffffff>Price</th>
- <th><font color=ffffff>%</th>
- <th><font color=ffffff>Amount</th>
+ <th><font color=ffffff><?lsmb text('Price') ?></th>
+ <th><font color=ffffff><?lsmb text('%') ?></th>
+ <th><font color=ffffff><?lsmb text('Amount') ?></th>
</tr>
<?lsmb FOREACH number ?>
@@ -146,10 +148,10 @@
<tr>
<?lsmb IF taxincluded ?>
- <th colspan=7 align=right>Total</th>
+ <th colspan=7 align=right><?lsmb text('Total') ?></th>
<th colspan=1 align=right><?lsmb ordtotal ?></th>
<?lsmb ELSE ?>
- <th colspan=7 align=right>Subtotal</th>
+ <th colspan=7 align=right><?lsmb text('Subtotal') ?></th>
<td colspan=1 align=right><?lsmb subtotal ?></td>
<?lsmb END ?>
</tr>
@@ -168,21 +170,21 @@
</tr>
<?lsmb IF NOT taxincluded ?>
- <th colspan=7 align=right>Total</th>
+ <th colspan=7 align=right><?lsmb text('Total') ?></th>
<td colspan=1 align=right><?lsmb ordtotal ?></td>
<?lsmb END ?>
<?lsmb IF terms ?>
<tr>
- <td colspan=4>Terms Net <b><?lsmb terms ?></b> days</td>
- <th colspan=3 align=right>Total</th>
+ <td colspan=4><?lsmb text('Terms Net [_1] days', terms) ?></td>
+ <th colspan=3 align=right><?lsmb text('Total') ?></th>
<th colspan=1 align=right><?lsmb ordtotal ?></th>
</tr>
<?lsmb END ?>
<?lsmb IF taxincluded ?>
<tr>
- <td colspan=2>Tax included</td>
+ <td colspan=2><?lsmb text('Tax included') ?></td>
</tr>
<?lsmb END ?>
@@ -193,7 +195,7 @@
<?lsmb IF ordtotal ?>
<tr>
<td colspan=8 align=right>
- All prices in <b><?lsmb currency ?></b> Funds
+ <?lsmb text('All prices in [_1] funds', currency) ?>
</td>
</tr>
<?lsmb END ?>
@@ -209,7 +211,7 @@
<td>
<table width="100%">
<tr valign=top>
- <td>Notes</td>
+ <td><?lsmb text('Notes') ?></td>
<td><?lsmb notes ?></td>
</tr>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.