VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Tentaurus on October 23, 2018, 10:04:01 AM

Title: Order confirmation email / wrong language
Post by: Tentaurus on October 23, 2018, 10:04:01 AM
Since I've updated to VM 3.4.x I get the order confirmation email (the SUBJECT) in english instead of german. Both vendor and customer email.
I use the latest language file.
Title: Re: Order confirmation email / wrong language
Post by: jjk on October 24, 2018, 14:00:39 PM
I can't reproduce that with VM 3.4.0 or 3.4.2. My shopper/vendor emails arrive in the correct language. Which exact Joomla and VM version do you use? Did you change a language setting in Joomla?
Title: Re: Order confirmation email / wrong language
Post by: Milbo on October 24, 2018, 19:11:24 PM
There is one in the team with the same problem, but I was also not able to reproduce it.

In my case, I set the joomla default to german, the shop language to english, the possible languages to german, english, russian. Checked out in german, the vendor got an english email, the shopper a german email. Also the subjects were okey.

Please enable the email debug mode in the vm config, then send the lines with
vmdebug 3 Languages, default shoplanguage (VmConfig::$jDefLang): en_gb en-GB Fallback language (VmConfig::$defaultLang): en_gb Selected VM language (VmConfig::$vmlang): de_de de-DE SEF: de
Title: Re: Order confirmation email / wrong language
Post by: Studio 42 on October 24, 2018, 22:19:49 PM
Do you have updated the virtuemart german language?
Title: Re: Order confirmation email / wrong language
Post by: MKI-Miro on October 27, 2018, 22:14:05 PM
I have same problem Virtuemart 3.4.2
Title: Re: Order confirmation email / wrong language
Post by: Studio 42 on October 28, 2018, 02:32:28 AM
A solution can be to add overrides in admin and site. The problem is that the SUBJECT is get from front for payment notification but from admin language when you change statut yourself in the order.
Title: Re: Order confirmation email / wrong language
Post by: Milbo on October 29, 2018, 08:58:49 AM
Any language report is also quite useless when people do not send the debug output showing which language got set. and yes, overrides should be created for the back and frontend.
Title: Re: Order confirmation email / wrong language
Post by: Tentaurus on November 15, 2018, 12:35:47 PM
Works well again with the latest language file!
Title: Re: Order confirmation email / wrong language
Post by: Marttyn on November 15, 2018, 13:38:24 PM
I have the same problem, i receive ONLY THE SUBJECT of the VM emails in english.
It looks like my spanish admin language file has the COM_VIRTUEMART_MAIL_SUBJ_xxx translations missing, although the site translations are there. I guess i will have to copy them.
Maybe i updated the language file and i dont remember? Or maybe VM made same change on where the translation is retrieved?
Anyway, that fixed the problem...

Just wanted to know how can i contact the Spanish translator from transifex. Spanish language have many errors i would like to correct, but asked for permission to edit, and never replied.
Title: Re: Order confirmation email / wrong language
Post by: Jörgen on November 15, 2018, 13:48:57 PM
@marttyn

Updating the language file on Your site is a bad idea, next update of the language pack will clear that. Use Joomla language tools and make overrides. This assures that Your corrections don´t disappear if the VM core language pack lacks the updated strings. And be sure to add the language overrides in the back end language and tick the box, use in both FE and BE.

regards
Jörgen @ Kreativ Fotografi
Title: Re: Order confirmation email / wrong language
Post by: Marttyn on November 15, 2018, 13:51:23 PM
Yes, dont worry, i did add the strings to the override file :)
Still want to know how to enter the trasifex spanish translation team
Title: Re: Order confirmation email / wrong language
Post by: jjk on November 16, 2018, 14:17:04 PM
Quote from: Marttyn on November 15, 2018, 13:51:23 PM
Still want to know how to enter the trasifex spanish translation team

This 'how to' link in the forum is still valid: http://forum.virtuemart.net/index.php?topic=98187.0
Title: Re: Order confirmation email / wrong language
Post by: Marttyn on November 17, 2018, 17:13:08 PM
Thanks, ive already did all that. But my corrections are never reviewed. I would like to be part of the Spanish team so i can fix some of this problems.
Ive added a message in the link you just gave me.
Regards!
Title: Re: Order confirmation email / wrong language
Post by: jjk on November 17, 2018, 22:54:56 PM
Quote from: Marttyn on November 17, 2018, 17:13:08 PM
Thanks, ive already did all that. But my corrections are never reviewed. I would like to be part of the Spanish team so i can fix some of this problems.
Ive added a message in the link you just gave me.
Regards!

As far as I can see on Transifex, your translations are included in the downloadable language files on Transifex and the generated language packs available from http://virtuemart.net/community/translations. If strings are marked as 'reviewed', translators can't change them anymore. But it's not a requirement to be included in the generated language packs available for download. 
Title: Re: Order confirmation email / wrong language
Post by: Marttyn on November 27, 2018, 17:54:06 PM
Ive noticed that the language files now are in the extension folder instead of the language folder.
Whats the order of preference in the language files?

Can i delete the language files from the language folder and keep the ones on the extension folder? Because the language folder have "old" files, while the extension folder have the new ones.
For example, the strings for order confirmation we are talking in this thread, used to be included in the xx_XX.com_virtuemart.ini and now are in the xx_XX.com_virtuemart_orders.ini. But having the old and the new files may interfere and that why sometimes the wrong language translation is shown  :o
Title: Re: Order confirmation email / wrong language
Post by: Jörgen on November 27, 2018, 18:37:46 PM
Copy the right ones to the language folder, then you should be safe. Keep both.

Jörgen @ Kreativ Fotografi
Title: Re: Order confirmation email / wrong language
Post by: jjk on November 27, 2018, 19:20:58 PM
@Marttyn
http://forum.virtuemart.net/index.php?topic=140133.msg492502#msg492502
Title: Re: Order confirmation email / wrong language
Post by: Marttyn on November 27, 2018, 19:37:10 PM
Great! Thanks!
I will check if this solve the problem