Jump to content

Validation failed for lang.php


drexdis

Recommended Posts

Hello,

 

The story short: I had english language installed and translated it in romanian (like 30%), then i thought maybe i should use the romanian pack. So i copy the romanian language over the english one and now i have more translation problems than i had before.

 

The good news is that i exported the english language so i can use it later.

 

The problem is that i get an error when i try to import it: "validation failed for mails/en/lang.php"

 

I have opened the file and searched for "$_LANGMAIL['Email verification'] = '';" as suggested from one post, but i can't find this line. All langmail are translated.

 

Where is the problem? What should i do to import this saved language back?

 

Thanks in advance

post-870166-0-74583500-1419287148_thumb.png

Link to comment
Share on other sites

  • 4 weeks later...

It was not that... :( So here is what is in lang.php with default translations and attaching language pack with my translations from 1.6.0.9... (txt just rename to gzip)

 

lang.php

 

 <?php

 
global $_LANGMAIL;
$_LANGMAIL = array();
 
$_LANGMAIL['Your guest account has been transformed into a customer account'] = 'Váš návštěvnický účet byl převeden na zákaznický účet';
$_LANGMAIL['The virtual product that you bought is available for download'] = 'Produkt, který jste si koupili je připraven ke stažení';
$_LANGMAIL['New voucher for your order %s'] = 'Nový slevový kupón k vaší objednávce %s';
$_LANGMAIL['Order confirmation'] = 'Potvrzení objednávky';
$_LANGMAIL['Log: You have a new alert from your shop'] = 'Log: Máte nový záznam v logu z Vašeho obchodu';
$_LANGMAIL['Fwd: Customer message'] = 'Fwd: Zpráva zákazníka';
$_LANGMAIL['An answer to your message is available #ct%1$s #tc%2$s'] = 'Je k dispozici odpověď na vaší zprávu, #ct%1$s #tc%2$s';
$_LANGMAIL['Your new password'] = 'Vaše nové heslo';
$_LANGMAIL['Package in transit'] = 'Zásilka na cestě';
$_LANGMAIL['New message regarding your order'] = 'Nová zpráva k objednávce';
$_LANGMAIL['New voucher for your order #%s'] = 'Nový slevový kupón k vaší objednávce %s';
$_LANGMAIL['New credit slip regarding your order'] = 'Nový slevový kupón k Vaší objednávce';
$_LANGMAIL['Process the payment of your order'] = 'Zpracování Vaší platby';
$_LANGMAIL['Your order has been changed'] = 'Vaše objednávka byla změněna';
$_LANGMAIL['Your order return status has changed'] = 'Stav vratky objednávky byl změněn';
$_LANGMAIL['Welcome!'] = 'Dobrý den!';
$_LANGMAIL['Your message has been correctly sent #ct%1$s #tc%2$s'] = 'Vaše zpráva byla v pořádku odeslána #ct%1$s #tc%2$s ';
$_LANGMAIL['Your message has been correctly sent'] = 'Vaše zpráva byla v pořádku odeslána';
$_LANGMAIL['Message from contact form'] = 'Zpráva z kontaktního formuláře';
$_LANGMAIL['Message from a customer'] = 'Zpráva od zákazníka';
$_LANGMAIL['Password query confirmation'] = 'Potvrzení požadavku na nové heslo';
$_LANGMAIL['Newsletter voucher'] = 'Odběr novinek – slevový kupón';
$_LANGMAIL['Newsletter confirmation'] = 'Potvrzení přihlášky k odběru novinek';
$_LANGMAIL['Email verification'] = 'Potvrzení e-mailu';
$_LANGMAIL['Your wishlist\'s link'] = 'Odkaz na Váš seznam přání';
$_LANGMAIL['Message from %1$s %2$s'] = 'Zpráva od %1$s %2$s ';
$_LANGMAIL['Your cart and your discount'] = 'Nabídka slevy pro položky ve vašem košíku';
$_LANGMAIL['Thanks for your order'] = 'Děkujeme za Vaši objednávku!';
$_LANGMAIL['You are one of our best customers'] = 'Děkujeme za to, že jste jedním z našich nejlepších zákazníků';
$_LANGMAIL['We miss you'] = 'Chybíte nám';
$_LANGMAIL['Product available'] = 'Váš sledovaný produkt je nyní k dispozici';
$_LANGMAIL['New order : #%d - %s'] = 'Nová objednávka: #%d - %s';
$_LANGMAIL['Product out of stock'] = 'Produkt(y) jsou téměř vyprodané';
$_LANGMAIL['Stock coverage'] = 'Pokrytí zásob';
$_LANGMAIL['Referral Program'] = 'Sponzorský program';
$_LANGMAIL['Congratulations!'] = 'Blahopřejeme!';
$_LANGMAIL['%1$s sent you a link to %2$s'] = '%1$s Vám poslal odkaz %2$s';
 
 
return $_LANGMAIL;

cs.txt

Edited by hrackysdusi (see edit history)
Link to comment
Share on other sites

No, when I upload repaired language file, it´s without error. Tells me that upload was successful, but tranlations are not there... :( could it be error in gzip file? I decompressed and compressed that with 7-zip, which turns it into ".gz" and I rename it to ".gzip"...?

Link to comment
Share on other sites

Hello, i attach my lang also, maybe you know where there is a problem:

 

global $_LANGMAIL;
$_LANGMAIL = array();

$_LANGMAIL['Virtual product to download'] = 'Virtual product(s) available for download';
$_LANGMAIL['Your guest account has been transformed to customer account'] = 'Your guest account has been transformed to a customer account';
$_LANGMAIL['Your order return state has changed'] = 'Your order return status has changed';
$_LANGMAIL['Password query confirmation'] = 'Forgot password';
$_LANGMAIL['New voucher regarding your order %s'] = 'New voucher for your order %s';
$_LANGMAIL['Newsletter confirmation'] = 'Newsletter subscription confirmation';
$_LANGMAIL['Your cart and your discount'] = 'Discount offer for items in your cart';
$_LANGMAIL['Thanks for your order'] = 'Thanks for your order!';
$_LANGMAIL['You are one of our best customers'] = 'Thank you for being one of our best customers';
$_LANGMAIL['Product available'] = 'Your watched product is now available';
$_LANGMAIL['Product out of stock'] = 'One or more products are almost out of stock';
$_LANGMAIL['We miss you'] = 'We miss you';
$_LANGMAIL['Email verification'] = 'Email verification';
$_LANGMAIL['Newsletter voucher'] = 'Newsletter voucher';
$_LANGMAIL['New order'] = 'New order : #%d - %s';
$_LANGMAIL['Stock coverage'] = 'Stock coverage';
$_LANGMAIL['Congratulations!'] = 'Congratulations!';
$_LANGMAIL['Your wishlists link'] = 'Your wishlist\'s link';
$_LANGMAIL['Message from %1$s %2$s'] = 'Message from %1$s %2$s';
$_LANGMAIL['Your order has been changed'] = 'Your order has been changed';
$_LANGMAIL['Welcome!'] = 'Welcome!';
$_LANGMAIL['New credit slip regarding your order'] = 'New credit slip regarding your order';
$_LANGMAIL['Fwd: Customer message'] = 'Fwd: Customer message';
$_LANGMAIL['Package in transit'] = 'Package in transit';
$_LANGMAIL['Order confirmation'] = 'Order confirmation';
$_LANGMAIL['Message from a customer'] = 'Message from a customer';
$_LANGMAIL['New message regarding your order'] = 'New message regarding your order';
$_LANGMAIL['Process the payment of your order'] = 'Process the payment of your order';
$_LANGMAIL['Log: You have a new alert from your shop'] = 'Log: You have a new alert from your shop';
$_LANGMAIL['Your new password'] = 'Your new password';
$_LANGMAIL['An answer to your message is available #ct%1$s #tc%2$s'] = 'An answer to your message is available #ct%1$s #tc%2$s';
$_LANGMAIL['%1$s sent you a link to %2$s'] = '%1$s sent you a link to %2$s';

 

PS: If i change the english language to another one, everytime i update to newer prestashop i lose my translations? Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...