VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: balai on November 27, 2019, 14:57:56 PM

Title: Bug translating in another language
Post by: balai on November 27, 2019, 14:57:56 PM
I am checking the translation functionality in a multi-lingual site (English - Greek).

When i turn in Greek, the VM pages remain in English, although the rest of the site is translated normally.
(https://i.ibb.co/vwXqHXm/front-end-details.png) (https://ibb.co/yf4PX45)

The site is configured as multi-lingual in the VM configuration
The mentioned product is translated in both languages in VM.
The menu items for the different languages as well as the Joomla content languages exist.
Also there are language files for both languages (en-GB, el-GR).

(https://i.ibb.co/k6NSrzk/VM-config-Configuration.png) (https://ibb.co/yBHQMKG)


Checking further seems to be related with the vmText::_() function.
Replacing the vmText with the JText, in the VM layouts, fixes the issue.

System:
Virtuemart 3.6.8 10197
Joomla 3.9.11
PHP 7.1.x
Title: Re: Bug translating in another language
Post by: jjk on November 27, 2019, 16:31:36 PM
Please also check if you have a "_QQ_" in your VM frontend el-GR.com_virtuemart.ini. If yes, it can prevent the language file from loading. Joomla's 'Debug Language' would show an affected file as 'not loaded'.
See: https://forum.virtuemart.net/index.php?topic=143950.msg509317#msg509317
Title: Re: Bug translating in another language
Post by: Studio 42 on November 28, 2019, 02:08:32 AM
You have to activate the Joomla multi-language plugin too and set it first in the list.
Title: Re: Bug translating in another language
Post by: balai on November 28, 2019, 11:04:48 AM
As said, i am using the VM language files and the translation works for the rest of the Joomla site. Also works if i replace vmText with JText in the VM layouts.
Title: Re: Bug translating in another language
Post by: Milbo on November 28, 2019, 18:56:53 PM
Did you read already http://forum.virtuemart.net/index.php?topic=143870.msg509295#msg509295
Title: Re: Bug translating in another language
Post by: balai on November 29, 2019, 14:20:22 PM
Thanks!
I replied to the mentioned post, to avoid duplicates.
http://forum.virtuemart.net/index.php?topic=143870.msg509411#msg509411