News:

Looking for documentation? Take a look on our wiki

Main Menu

multilangual shop

Started by web-itc, March 29, 2018, 20:54:12 PM

Previous topic - Next topic

web-itc

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

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Studio 42

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.

jjk

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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

web-itc

#4
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.


Studio 42

web-itc, Try to update Joomla to 3.8.5 and Virtuemart 3.2.12 , if it's not the case

web-itc

Everything is already up-to-date.

Studio 42

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.

jjk

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?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

jjk

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>
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations