theoisak Posted August 11, 2017 Share Posted August 11, 2017 Hi i am running af site in danish and english, when my user creat and order they got a mail in the language the chose but when i update the status from pending to payed or shiped they will get a english mail with danish status (i change the status to danish) how can i translate the mail for danish custmors ? Link to comment Share on other sites More sharing options...
theoisak Posted August 11, 2017 Author Share Posted August 11, 2017 This is the mail now Link to comment Share on other sites More sharing options...
Harald Ponce de Leon Posted August 11, 2017 Share Posted August 11, 2017 This is a limitation of the v2.3 release series - the language of the email is based on the language of the Administration Tool session you're logged into. This is going to be addressed in the v2.4 release series. , osCommerce Link to comment Share on other sites More sharing options...
theoisak Posted August 12, 2017 Author Share Posted August 12, 2017 but even when i logged in at danish in admin tools the mail is still english :/ Link to comment Share on other sites More sharing options...
Harald Ponce de Leon Posted August 12, 2017 Share Posted August 12, 2017 Could you confirm that the language definitions are Danish in the following Administration Tool language file: catalog/admin/includes/language/danish/orders.php The language definitions used in the email start with EMAIL_TEXT_* , osCommerce Link to comment Share on other sites More sharing options...
theoisak Posted August 12, 2017 Author Share Posted August 12, 2017 no it is not danish there define('EMAIL_SEPARATOR', '------------------------------------------------------'); define('EMAIL_TEXT_SUBJECT', 'Ordre opdatering'); define('EMAIL_TEXT_ORDER_NUMBER', 'Ordrenummer:'); define('EMAIL_TEXT_INVOICE_URL', 'Detaljeret faktura:'); define('EMAIL_TEXT_DATE_ORDERED', 'Ordredato:'); define('EMAIL_TEXT_STATUS_UPDATE', 'Your order has been updated to the following status.' . "\n\n" . 'New status: %s' . "\n\n" . 'Please reply to this email if you have any questions.' . "\n"); define('EMAIL_TEXT_COMMENTS_UPDATE', 'The comments for your order are' . "\n\n%s\n\n"); do i just translate them ? :) Link to comment Share on other sites More sharing options...
Harald Ponce de Leon Posted August 12, 2017 Share Posted August 12, 2017 Yep. Be aware though of how the quotes are used. The definitions are defined in single quotes, so any single quote in the text needs to have a backslash. New lines are created with \n but that only works in double quotes which is why the string is separated and joined together again. The %s part is a placeholder which will be replaced with a value. If you have any problems, post the text that you want here and we'll show you the exact code to use. , osCommerce Link to comment Share on other sites More sharing options...
theoisak Posted August 12, 2017 Author Share Posted August 12, 2017 thank you i will try :) Link to comment Share on other sites More sharing options...
Harald Ponce de Leon Posted August 12, 2017 Share Posted August 12, 2017 This is the reason why it's not possible to send out multilingual emails in v2.3 as the text is defined in php constants. As soon as a constant is defined, the value can no longer be updated. This is fine for loading a page, however makes it impossible to load modules in different languages. This has been fixed for v2.4 where the definitions are now loaded as variables and are even defined in groups/scopes. And the definitions are now plain text so no more messing around with single and double quotes. , osCommerce Link to comment Share on other sites More sharing options...
theoisak Posted August 12, 2017 Author Share Posted August 12, 2017 when will 2.4 bepublished ? Link to comment Share on other sites More sharing options...
Harald Ponce de Leon Posted August 12, 2017 Share Posted August 12, 2017 First v2.3.5/v2.3.6 this month, then v2.4 next month. , osCommerce Link to comment Share on other sites More sharing options...
theoisak Posted August 12, 2017 Author Share Posted August 12, 2017 okay :) btw it worked . the mail is now danish :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.