Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] credit card error translations - someone?



******    message to minivend-users from Hans-Joachim Leidinger <jojo@buchonline.net>     ******

Michael Schwartz schrieb:
> 
> ******    message to minivend-users from "Michael Schwartz" <michael@panamacom.com>     ******
> 
> Hi all!!
> I am trying to translate the credit card errors (card is expired,
> etc...)....basically the same way i translate the session errors....example
> [if session failure =~ /Password and check value don't match./]
> [perl arg=scratch]
>         $Safe{'scratch'}->{'usermsg'} = 'La clave no coincide con su
> verificación';
>         return '';
> [/perl][/if]
> 
> I tried doing it with [if error] but i cant....I have MV4.04....any
> suggestions??
> Thanks!

You don´t need any codes to translate any check out error to another
language.
Edit your locale.txt and insert a line like (for example)

code  <tab>  en_US  <tab>  es_ES
.
.
First Name  <tab>    <tab>  Nombre

and change the line in your checkout.html

[error name=fname std_label="First Name" required=1]

to

[error name=fname std_label="[loc]First Name[/loc]" required=1]

or

try this

[seti dummy][error name=fname std_label="Nombre" required=1][/seti]
[if scratch dummy =~ /blank/]
<FONT COLOR="RED">Nombre (esconden)
[else]
[scratch dummy]
[/else]
[/if]

Joachim



-- 
-------------Hans-Joachim Leidinger---------------------


-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: