VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: web-itc on March 29, 2018, 20:54:12 PM

Title: multilangual shop
Post by: web-itc on March 29, 2018, 20:54:12 PM
HI

I have a strange issue.  I installed Dutch as standard language, I created articles in Dutch, I installed Dutch language package but yet add to cart is put in English, see product details is in english.
How can I have this in Dutch?
www.web-ict.be
Title: Re: multilangual shop
Post by: Jörgen on March 29, 2018, 21:03:51 PM
Is the dutch language completely translated. How does the language key "COM_VIRTUEMART_CART_ADD_TO" look like in the dutch language file ? Is it translated, if not use the joomla language handler and add an override for Dutch.

regards

Jörgen @ Kreativ Fotografi
Title: Re: multilangual shop
Post by: Studio 42 on March 29, 2018, 22:08:26 PM
Check here to get the files : https://virtuemart.net/community/translations
If some key are missing in the translations, then you see it in english.
Title: Re: multilangual shop
Post by: jjk on March 30, 2018, 13:58:25 PM
I suppose you have illegal characters in the language file(s) of your 'Custom Fields for All' plugin. Enable 'Debug Language' in the Joomla configuration and then check if it lists errors the at the bottom the category and product details views. Could be for example be an illegal " inside the language string, which causes a parsing error.
Title: Re: multilangual shop
Post by: web-itc on March 30, 2018, 20:37:16 PM
I debug it.
When I look at the frontend when it is debposh welly spamed , then the buttons product details and add to cart are translated.
But When I debug it again then it is back in english.

Title: Re: multilangual shop
Post by: Studio 42 on March 30, 2018, 21:07:42 PM
web-itc, Try to update Joomla to 3.8.5 and Virtuemart 3.2.12 , if it's not the case
Title: Re: multilangual shop
Post by: web-itc on March 30, 2018, 21:51:11 PM
Everything is already up-to-date.
Title: Re: multilangual shop
Post by: Studio 42 on March 31, 2018, 00:15:58 AM
Have you try https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla on search, you should see your translation, if the translation is valid.
You need to edit a translation then You can search by key : "COM_VIRTUEMART_CART_ADD_TO" or your Dutch translation, if you search by value.
Title: Re: multilangual shop
Post by: jjk on March 31, 2018, 09:43:23 AM
Just noticed that the source code of the website pages have the wrong language type in the doctype information:

<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<![endif]-->

I guess you will have to find out the reason for this.

A few things that come into my mind are:
Do you have the Joomla content language set to Dutch?
Are your Menus language set to Dutch?
Does the template set the wrong language in its index.php?
Title: Re: multilangual shop
Post by: jjk on April 01, 2018, 00:52:36 AM
It appears to be the same problem as http://forum.virtuemart.net/index.php?topic=139850.0
Both shops show the same error in the source code of the category and product detail pages (Seems to be related to the custom filters plugin):

<script type="application/json" class="joomla-script-options new">{"csrf.token":"191be94ac37dd35f42055a5224e6b90d","system.paths":{"root":"","base":""},"joomla.jtext":{"MOD_CF_FILTERING_INVALID_CHARACTER":"Foutieve invoer. Gebruik numerieke waarde","MOD_CF_FILTERING_PRICE_MIN_PRICE_CANNOT_EXCEED_MAX_PRICE":"MOD_CF_FILTERING_PRICE_MIN_PRICE_CANNOT_EXCEED_MAX_PRICE","MOD_CF_FILTERING_MIN_CHARACTERS_LIMIT":"Please enter at least 2 characters"}}</script>

<script type="application/json" class="joomla-script-options new">{"csrf.token":"d48a68cb49feb907e102ab68ab849f3e","system.paths":{"root":"","base":""},"system.keepalive":{"interval":840000,"uri":"\/component\/ajax\/?format=json"},"joomla.jtext":{"MOD_CF_FILTERING_INVALID_CHARACTER":"Invalid input. Please use numerical values","MOD_CF_FILTERING_PRICE_MIN_PRICE_CANNOT_EXCEED_MAX_PRICE":"MOD_CF_FILTERING_PRICE_MIN_PRICE_CANNOT_EXCEED_MAX_PRICE"}}</script>