tutankhamen Posted February 13, 2010 Share Posted February 13, 2010 (Prestashop v.1.2.5)I haven't been able to figure out how to translate some of the email subjects. I know some of them are in mails/**/lang.php but many are not. These, for example, I've only been able to find in admin/tabs/AdminOrders.php:New message regarding your orderNew voucher regarding your orderNew credit slip regarding your orderAdminOrders.php? Is this really where I should be messing around with translations?Any help?And just generally speaking, I feel like many of the standard modules are missing from the translation tool, especially all the email stuff. Link to comment Share on other sites More sharing options...
cactusman2 Posted August 20, 2010 Share Posted August 20, 2010 Same problem here.Anyone have an idea? Link to comment Share on other sites More sharing options...
arlmxli2 Posted August 20, 2010 Share Posted August 20, 2010 Do you try BackOffice - Tools - Translation ?? Must be there. Link to comment Share on other sites More sharing options...
cactusman2 Posted August 20, 2010 Share Posted August 20, 2010 The translations are already there at least in French. But some mails title stay in English (credit slip, vouchers...).I can see all the French translation in the translation for AdminOrders in the backoffice. Link to comment Share on other sites More sharing options...
cactusman2 Posted August 20, 2010 Share Posted August 20, 2010 I found the origin of the problem but can not find a solution.I have a customer who order in French.The order is delivered but later the customer decide to return the productI create a voucherThen the customer get an email New voucher regarding your order #If I use the back office in English:the email is in French except the Title which is 'New voucher regarding your order #'If I use the back office in French:the email is in French including the title which is 'Nouveau coupon à propos de votre commande n°'So In admin/tabs/AdminOrders.php line 273: @Mail::Send(intval($order->id_lang), 'voucher', html_entity_decode($this->l('New voucher regarding your order #') The $order->id_lang does not seems to work as the language of the title depends of the language used in the back office and no about the language of the order Link to comment Share on other sites More sharing options...
rocky Posted August 21, 2010 Share Posted August 21, 2010 You shouldn't change PrestaShop's code to translate the email subject lines. Simply edit mails/iso_code/lang.php. If one doesn't exist, copy one from another language and then change the translations. Link to comment Share on other sites More sharing options...
cactusman2 Posted August 22, 2010 Share Posted August 22, 2010 Hi,I tried to add the french translation in the lang.php file but it doesn't do anything.I will try to be more clear.If a customer order something in English (the website is in English when the customer order something), the order messages are normally in English as well.If the customer return a product I create a voucher through the order admin.If I create the voucher while using the admin in English, the title of the email will be in English and the content in EnglishIf I create the voucher while using the admin in French, the title of the email will be in French and the content in EnglishIf a customer order something in French (the website is in French when the customer order something), the order messages are normally in French as well.If the customer return a product I create a voucher through the order admin.If I create the voucher while using the admin in English, the title of the email will be in English and the content in FrenchIf I create the voucher while using the admin in French, the title of the email will be in French and the content in FrenchSo the problem comes from the program which does not select the proper language: it select the BO language in use instead of the order language.I guess they forgot to call the id_lang variable on the SQL table in a function Link to comment Share on other sites More sharing options...
cactusman2 Posted August 28, 2010 Share Posted August 28, 2010 Un petit Up! Link to comment Share on other sites More sharing options...
outlet.ee Posted May 14, 2011 Share Posted May 14, 2011 It still hasn't been fixed in 1.4 - if I add a comment to an order in BO, the email subject sent to customer IS IN MY BO LANGUAGE (you have a new message regarding your order). The customer shouldn't care what language I use in my BO. And what's worse, in 1.4 it is not that easy to change BO language either, you have to go to preferences, change the language, save it, locate back to orders, send the message, then change the language back in preferences.Is there any solution for this - to have the subject in order language not BO language? Link to comment Share on other sites More sharing options...
mouse1 Posted September 11, 2011 Share Posted September 11, 2011 Hi everyone. I had the same problem with the mail subject 'New voucher regarding your order'. The text was translated in my language in lang.php, but it didn't work. I got the solution eventually! I found this text in classes/PaymentModule.php and checked the EXACT quote. It was 'New voucher regarding your order #' (including the number sign #). Then I checked the file lang.php in my 'mails' folder (for me it was mails/cs/lang.php). But it was 'New voucher regarding your order' (without #). So I only added the number sign (#) at the end of the English sentence in lang.php, so that the text in English was completely the same as in PaymentModule.php. Then I made a test. The mail received was finally in my language, not in English anymore. Hope it works for you, too. My Prestashop version: 1.4.0.17 1 Link to comment Share on other sites More sharing options...
cactusman2 Posted September 12, 2011 Share Posted September 12, 2011 Thank you ! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now