SEID Posted October 9, 2016 Share Posted October 9, 2016 Hello, I have a problem with PrestaShop v1.6.1.7 whenever I want to send an e-mail from the administration show:Error - The language file is missing for: sk Modules, theme, error messages, I have everything translated into English, but I do not know why this error occurs. This error is when I want to send an e-mail with the invoice. It even does not work order confirmation to the customer. The entire e-mail system is not working. I tried also to define ('_ PS_MODE_DEV_', true) I find nothing more than this Error - The language file is missing for: sk Please help me.... Link to comment Share on other sites More sharing options...
rocky Posted October 9, 2016 Share Posted October 9, 2016 That error message means that mails/sk/lang.php is missing. Make sure that file exists and contains all the subject line translations. For example: <?php global $_LANGMAIL; $_LANGMAIL = array(); $_LANGMAIL['Your guest account has been transformed into a customer account'] = 'Your guest account was converted to a customer account'; $_LANGMAIL['The virtual product that you bought is available for download'] = 'The virtual product that you bought is available for download'; $_LANGMAIL['New voucher for your order %s'] = 'New voucher for your order %s'; $_LANGMAIL['Order confirmation'] = 'Order confirmation'; $_LANGMAIL['Log: You have a new alert from your shop'] = 'Log: You have a new alert from your shop'; $_LANGMAIL['Fwd: Customer message'] = 'Fwd: Customer message'; $_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['Your new password'] = 'Your new password'; $_LANGMAIL['Package in transit'] = 'Package in transit'; $_LANGMAIL['New message regarding your order'] = 'New message regarding your order'; $_LANGMAIL['New voucher for your order #%s'] = 'New voucher for your order #%s'; $_LANGMAIL['New credit slip regarding your order'] = 'New credit slip regarding your order'; $_LANGMAIL['Process the payment of your order'] = 'Process the payment of your order'; $_LANGMAIL['Your order has been changed'] = 'Your order has been changed'; $_LANGMAIL['Your order return status has changed'] = 'Your order return status has changed'; $_LANGMAIL['Welcome!'] = 'Welcome!'; $_LANGMAIL['Your message has been correctly sent #ct%1$s #tc%2$s'] = 'Your message has been correctly sent #ct%1$s #tc%2$s'; $_LANGMAIL['Your message has been correctly sent'] = 'Your message has been correctly sent'; $_LANGMAIL['Message from contact form'] = 'Message from contact form'; $_LANGMAIL['Message from a customer'] = 'Message from a customer'; $_LANGMAIL['Password query confirmation'] = 'Password query confirmation'; $_LANGMAIL['Newsletter voucher'] = 'Newsletter voucher'; $_LANGMAIL['Newsletter confirmation'] = 'Newsletter confirmation'; $_LANGMAIL['Email verification'] = 'Email verification'; $_LANGMAIL['Your wishlist\'s link'] = 'Your wishlist\'s link'; $_LANGMAIL['Message from %1$s %2$s'] = 'Message from %1$s %2$s'; $_LANGMAIL['Your cart and your discount'] = 'Your cart and your discount'; $_LANGMAIL['Thanks for your order'] = 'Thanks for your order'; $_LANGMAIL['You are one of our best customers'] = 'You are one of our best customers'; $_LANGMAIL['We miss you'] = 'We miss you'; $_LANGMAIL['Product available'] = 'Product available'; $_LANGMAIL['New order : #%d - %s'] = 'New order : #%d - %s'; $_LANGMAIL['Product out of stock'] = 'Product out of stock'; $_LANGMAIL['Stock coverage'] = 'Stock coverage'; $_LANGMAIL['Referral Program'] = 'Referral Program'; $_LANGMAIL['Congratulations!'] = 'Congratulations!'; $_LANGMAIL['%1$s sent you a link to %2$s'] = '%1$s sent you a link to %2$s'; return $_LANGMAIL; Translate the text after the = only. Link to comment Share on other sites More sharing options...
Logical IT Posted October 10, 2016 Share Posted October 10, 2016 Hello, Also try importing a localization pack for your language, as this should also import the mails/sk/lang.php file. From back office go to -> localization -> Import a localization pack -> select the language pack you want to import -> import Link to comment Share on other sites More sharing options...
SEID Posted October 10, 2016 Author Share Posted October 10, 2016 Thank you very much )) Link to comment Share on other sites More sharing options...
Tahsin_85 Posted October 28, 2016 Share Posted October 28, 2016 <?php global $_LANGMAIL; $_LANGMAIL = array(); $_LANGMAIL['Your guest account has been transformed into a customer account'] = 'Your guest account was converted to a customer account'; $_LANGMAIL['The virtual product that you bought is available for download'] = 'The virtual product that you bought is available for download'; $_LANGMAIL['New voucher for your order %s'] = 'New voucher for your order %s'; $_LANGMAIL['Order confirmation'] = 'Order confirmation'; $_LANGMAIL['Log: You have a new alert from your shop'] = 'Log: You have a new alert from your shop'; $_LANGMAIL['Fwd: Customer message'] = 'Fwd: Customer message'; $_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['Your new password'] = 'Your new password'; $_LANGMAIL['Package in transit'] = 'Package in transit'; $_LANGMAIL['New message regarding your order'] = 'New message regarding your order'; $_LANGMAIL['New voucher for your order #%s'] = 'New voucher for your order #%s'; $_LANGMAIL['New credit slip regarding your order'] = 'New credit slip regarding your order'; $_LANGMAIL['Process the payment of your order'] = 'Process the payment of your order'; $_LANGMAIL['Your order has been changed'] = 'Your order has been changed'; $_LANGMAIL['Your order return status has changed'] = 'Your order return status has changed'; $_LANGMAIL['Welcome!'] = 'Welcome!'; $_LANGMAIL['Your message has been correctly sent #ct%1$s #tc%2$s'] = 'Your message has been correctly sent #ct%1$s #tc%2$s'; $_LANGMAIL['Your message has been correctly sent'] = 'Your message has been correctly sent'; $_LANGMAIL['Message from contact form'] = 'Message from contact form'; $_LANGMAIL['Message from a customer'] = 'Message from a customer'; $_LANGMAIL['Password query confirmation'] = 'Password query confirmation'; $_LANGMAIL['Newsletter voucher'] = 'Newsletter voucher'; $_LANGMAIL['Newsletter confirmation'] = 'Newsletter confirmation'; $_LANGMAIL['Email verification'] = 'Email verification'; $_LANGMAIL['Your wishlist\'s link'] = 'Your wishlist\'s link'; $_LANGMAIL['Message from %1$s %2$s'] = 'Message from %1$s %2$s'; $_LANGMAIL['Your cart and your discount'] = 'Your cart and your discount'; $_LANGMAIL['Thanks for your order'] = 'Thanks for your order'; $_LANGMAIL['You are one of our best customers'] = 'You are one of our best customers'; $_LANGMAIL['We miss you'] = 'We miss you'; $_LANGMAIL['Product available'] = 'Product available'; $_LANGMAIL['New order : #%d - %s'] = 'New order : #%d - %s'; $_LANGMAIL['Product out of stock'] = 'Product out of stock'; $_LANGMAIL['Stock coverage'] = 'Stock coverage'; $_LANGMAIL['Referral Program'] = 'Referral Program'; $_LANGMAIL['Congratulations!'] = 'Congratulations!'; $_LANGMAIL['%1$s sent you a link to %2$s'] = '%1$s sent you a link to %2$s'; return $_LANGMAIL; Hello, i add a new file modules/blocknewsletter/mails/en/lang.php with your translations like above. But i get the same error: Error - The language file is missing for: en Link to comment Share on other sites More sharing options...
rocky Posted October 28, 2016 Share Posted October 28, 2016 Try copying it to themes/<your_theme>/modules/blocknewsletter/translations/en.php too. Link to comment Share on other sites More sharing options...
Tahsin_85 Posted October 28, 2016 Share Posted October 28, 2016 (edited) Thanks, language files are inside. Only difference is the name of array $_MODULE instead of $_LANGMAIL. themes/mytheme/modules/blocknewsletter/translations/en.php: <?php global $_MODULE; $_MODULE = array(); $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_9e31b08a00c1ed653bcaa517dee84714'] = 'Newsletter block'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_ba457fab18d697d978befb95e827eb91'] = 'Adds a block for newsletter subscription.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_396c88991101b5ca362932952293d291'] = 'Are you sure that you want to delete all of your contacts?'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_c3987e4cac14a8456515f0d200da04ee'] = 'All countries'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_fa01fd956e87307bce4c90a0de9b0437'] = 'Customers\' country'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_7599b57d77ef1608b2f6da579794cc5b'] = 'Filter customers\' country.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_2198f293f5e1e95dddeff819fbca0975'] = 'Newsletter subscribers'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_99006a61d48499231e1be92241cf772a'] = 'Filter newsletter subscribers.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_7e3a51a56ddd2846e21c33f05e0aea6f'] = 'All customers'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_39f7a3e2b56e9bfd753ba6325533a127'] = 'Subscribers'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_011d8c5d94f729f013963d856cd78745'] = 'Non-subscribers'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_793ee192a9124cd6f529460eef17d3e5'] = 'Opted-in subscribers'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_7b15c043d66fecc45c8752592aa38e38'] = 'Filter opted-in subscribers.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_417d63b1effb110e438d4b4b9f0fbd95'] = 'The voucher code is invalid.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_c888438d14855d7d96a2724ee9c306bd'] = 'Settings updated'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_b718adec73e04ce3ec720dd11a06a308'] = 'ID'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_9f82518d468b9fee614fcc92f76bb163'] = 'Shop'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_019ec3132cdf8ee0f2e2a75cf5d3e459'] = 'Gender'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_dff4bf10409100d989495c6d5486035e'] = 'Lastname'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_04176f095283bc729f1e3926967e7034'] = 'Firstname'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_ce8ae9da5b7cd6c3df2929543a9af92d'] = 'Email'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_808c7457c768423c5651cbf676d9f6d7'] = 'Subscribed'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_ec59738d441f28011a81e62bdcea6200'] = 'Subscribed on'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_3a1205098d0a13a9c41a8d538fd6a34a'] = 'Newsletter registrations'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_4351cfebe4b61d8aa5efa1d020710005'] = 'View'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_4182c8f19d40c7ca236a5f4f83faeb6b'] = 'Unsubscribe'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_e267e2be02cf3e29f4ba53b5d97cf78a'] = 'Invalid email address.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_1c623b291d95f4f1b1d0c03d0dc0ffa1'] = 'This email address is not registered.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_3b1f17a6fd92e35bc744e986b8e7a61c'] = 'An error occurred while attempting to unsubscribe.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_d4197f3e8e8b4b5d06b599bc45d683bb'] = 'Unsubscription successful.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_f6618fce0acbfca15e1f2b0991ddbcd0'] = 'This email address is already registered.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_e172cb581e84f43a3bd8ee4e3b512197'] = 'An error occurred during the subscription process.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_ebc069b1b9a2c48edfa39e344103be1e'] = 'A verification email has been sent. Please check your inbox.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_77c576a354d5d6f5e2c1ba50167addf8'] = 'You have successfully subscribed to this newsletter.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_99c8b8e5e51bf8f00f1d66820684be9a'] = 'This email is already registered and/or invalid.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_4e1c51e233f1ed368c58db9ef09010ba'] = 'Thank you for subscribing to our newsletter.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_f4f70727dc34561dfde1a3c529b6205c'] = 'Settings'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_54d2f1bab16b550e32395a7e6edb8de5'] = 'Would you like to send a verification email after subscription?'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_93cba07454f06a4a960172bbd6e2a435'] = 'Yes'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_bafd7322c6e97d25b6299b5d6fe8920b'] = 'No'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_b37f32d509cf5aabe806b16791588aa3'] = 'Would you like to send a confirmation email after subscription?'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_506e58042922bff5bd753dc612e84f5b'] = 'Welcome voucher code'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_1d612b943b8f4792bff603384a46e5f1'] = 'Leave blank to disable by default.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_c9cc8cce247e49bae79f15173ce97354'] = 'Save'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_c48244f3d519c8c3260f2a40022f8d27'] = 'Export customers\' addresses'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_521f7e76a7d4f9e50c50bb945559b942'] = 'Filter customers by country.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_1b09c341aa487e26dac94d2467b7f7e3'] = 'Filter customers who have subscribed to the newsletter or not, and who have an account or not.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_e8be50a6977f278040458abdb2b18229'] = 'Customers can subscribe to your newsletter when registering, or by entering their email in the newsletter block.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_847b0223c73ac0fec0d9df6539c7cad6'] = 'All subscribers'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_a307579714b75082f3f8734971b125cd'] = 'Subscribers with account'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_d0da5609e4aebc5d532de97511a5a34a'] = 'Subscribers without account'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_6395c19dc5a1cef9ca125b9736358dc7'] = 'Opt-in subscribers'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_498bed86a7c58dcf1125dd21f40a6482'] = 'Filter customers who have agreed to receive your partners\' offers or not.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_e72237358bd145d6dba764c39e53bba5'] = 'Opt-in subscribers have agreed to receive your partners\' offers.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_85d02b888be056b290282ab2021341dc'] = 'Opt-in non-subscribers'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_dbb392a2dc9b38722e69f6032faea73e'] = 'Export .CSV file'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_f6df4ad6dc4798f26d1f2460eef4f2e9'] = 'Search for addresses'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_375afa60efcc1d48300bd339cb8154b0'] = 'Email address to search'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_e347582d22a4ba3c822de504b23d4704'] = 'Example: [email protected] or @prestashop.com'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_13348442cc6a27032d2b4aa28b75a5d3'] = 'Search'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_82e5e0bc0f9c776c98253d569c111c0f'] = 'No customers found with these filters!'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_644ecc2486a059ca16b001a77909bf40'] = 'The .CSV file has been successfully exported: %d customers found.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_48e3d5f66961b621c78f709afcd7d437'] = 'Download the file'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_dca37b874cf34bd5ebcf1c2fdc59a8b4'] = 'WARNING: When opening this .csv file with Excel, choose UTF-8 encoding to avoid strange characters.'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_b40866b115d74009183e06fc86b5c014'] = 'Error: Write access limited'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_87b0ca57db642f4e7780174a6abdc37d'] = 'No result found!'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_ffb7e666a70151215b4c55c6268d7d72'] = 'Newsletter'; $_MODULE['<{blocknewsletter}mytheme>blocknewsletter_416f61a2ce16586f8289d41117a2554e'] = 'your e-mail'; return $_MODULE; Edited October 28, 2016 by Tahsin_85 (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted October 28, 2016 Share Posted October 28, 2016 Oh, sorry. Just realised it's the mail translations, not the module translations. The following are the files it may be looking for: mails/en/lang.php themes/<your_theme>/mails/en/lang.php modules/blocknewsletter/mails/en/lang.php themes/<your_theme>/mails/en/lang.php themes/<your_theme>/modules/blocknewsletter/mails/en/lang.php Link to comment Share on other sites More sharing options...
Tahsin_85 Posted October 28, 2016 Share Posted October 28, 2016 Perfect, thank you very much. 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