How to have string "IP" language dependent

Didier31

Avatar: Didier31

2009-01-02 16:54

When displaying Customer orders, you may have noticed that text "IP" is hard-coded in source, as it does not show up in the language file.

To change this, do the following:

a) in file en.php (for example) add line

$lang['IPstring'] = "Internet address";

before line
$lang['yes'] = "Yes";

b) in file templates/orders_print.tpl line 20 change line

<dt class="orderIP">IP:</dt><dd class="orderIP">$aOrder[sIp]</dd>
to
<dt class="orderIP">$lang[IPstring]:</dt><dd class="orderIP">$aOrder[sIp]</dd>

c) in file templates/admin/orders.tpl lines 222 and seq. change

<tr class="l1">
<th>
IP
</th>

to

<tr class="l1">
<th>
$lang[IPstring]
</th>

Voil&#224;.

» Quick.Cart v3.x

26 years of DEC support, that was a wonderful job.

Back to top
about us | contact