VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Alemantico on December 19, 2017, 09:26:46 AM

Title: language overwrite doesn't work at all!
Post by: Alemantico on December 19, 2017, 09:26:46 AM
Dear People,
Since I already translated all strings (at least I thought that), I'm again confronted with a great mistery;
1. The button "adding to shopping card" only works after refreshing the page
2. Many Strings on VM does not propagate, even defining them twice (inside the language file itself) and inside the joomla system. I wonder why that happens?
I'm running VM version 3.2.4 on joomla! version 3.8.3 - Somehow, these Versions are incompatible? Sinceeven the native overwrite does not work, at this moment I've no other explanations. Of course, I already cleared out all cookies. Any useful hint would be very much appreciated!

best regards!
Title: Re: language overwrite doesn't work at all!
Post by: GJC Web Design on December 19, 2017, 12:53:32 PM
Try adding the over rides in the admin section and ticking the apply to FE chk box

Have you installed the de VM lang files?
Title: Re: language overwrite doesn't work at all!
Post by: Alemantico on December 19, 2017, 15:12:38 PM
yes, I've installed the lang files! Also checked the strings; they're all proper translated. What do you mean by "Try adding the over rides in the admin section and ticking the apply to FE chk box "? What admin section? Inside of joomla! ? That's where the screenshots are from. " FE chk box"? What's that? Anyway, thank you very much for giving me again a hand here on the issue  8)!

best regards!
Title: Re: language overwrite doesn't work at all!
Post by: Alemantico on December 19, 2017, 15:18:31 PM
hey, as I can see, you're using the omg menu extension. Did you already tried to disable the omg menu comp and check than?
Title: Re: language overwrite doesn't work at all!
Post by: GJC Web Design on December 19, 2017, 16:30:10 PM
see screen
Title: Re: language overwrite doesn't work at all!
Post by: Alemantico on December 19, 2017, 21:05:54 PM
Hi GJC Web Design! Thank you for your quick response! Ok I did as you said; but even after clearing the caches, nothing has being changed. I also added you a screenshot of the language file. It's a weird thing, that the comp is only reading fractures from the entire lang file, hu? At first I considered the German Letter "ü" could cause the issue, but it neither changed, when I replaced it with "ue". 
Title: Re: language overwrite doesn't work at all!
Post by: GJC Web Design on December 20, 2017, 16:05:21 PM
switch on the Joomla Lang default and careful check the results at the bottom.. there if there are errors they will show
Title: Re: language overwrite doesn't work at all!
Post by: Alemantico on December 21, 2017, 08:49:08 AM
sorry, but may I ask you what  joomla! lang default you're talking about? Do you mean "installed languages" ? I changed that one into the other language, but its still the same. Do you want me to change it into another language? Hey, thank you so much for your time and for keep sticking with me! I really appreciate that  very much ;) !
Title: Re: language overwrite doesn't work at all!
Post by: GJC Web Design on December 21, 2017, 20:22:47 PM
typo sorry .. I meant  Joomla Lang debug
Title: Re: language overwrite doesn't work at all!
Post by: Alemantico on December 22, 2017, 08:29:12 AM
no problem 8) ! Hmm, language debug is not throwing any error, but;

Quote**Not loaded** : JROOT/language/de-DE/de-DE.mod_virtuemart_cart.ini
**Not loaded** : JROOT/modules/mod_virtuemart_cart/language/de-DE/de-DE.mod_virtuemart_cart.ini
**Not loaded** : JROOT/language/en-GB/en-GB.mod_virtuemart_cart.ini

That could cause the issue, or not?

thank you for keep sticking on my issue! I guess without you, I'd be totally lost.

best regard  8) !
Title: Re: language overwrite doesn't work at all!
Post by: GJC Web Design on December 22, 2017, 12:20:28 PM
hmm... that is only the cart module
Title: Re: language overwrite doesn't work at all!
Post by: Alemantico on December 27, 2017, 12:24:44 PM
hey, sorry for my late response, but currently it seems, that my virtuemart is getting worse day by day (already published under the respective topics). So, fixing all that mess on VM is making me quiet busy these days.
Anyway, because I have no idea, what file is  responsible for the not translated language strings I posted you here the entire lock of all to vm related not loaded (in Ger: **Nicht geladen**) files to check, which could cause the error. Just beneath  its showing you a list of "not translated language strings" on exactly that site. I hope that will narrow the cause?
Quote
       **Nicht geladen** : JROOT/administrator/language/de-DE/de-DE.plg_system_shlib.ini
    **Nicht geladen** : JROOT/plugins/system/shlib/language/de-DE/de-DE.plg_system_shlib.ini
        **Nicht geladen** : JROOT/language/de-DE/de-DE.lib_fof30.ini
        **Nicht geladen** : JROOT/administrator/language/de-DE/de-DE.plg_vmuserfield_realex_hpp_api.ini
       **Nicht geladen** : JROOT/language/de-DE/de-DE.com_virtuemart.sef.ini
       **Nicht geladen** : JROOT/language/de-DE/de-DE.tpl_flex.ini
    **Nicht geladen** : JROOT/templates/flex/language/de-DE/de-DE.tpl_flex.ini
       **Nicht geladen** : JROOT/administrator/language/de-DE/de-DE.plg_vmcustom_textinput.ini
      **Nicht geladen** : JROOT/administrator/language/de-DE/de-DE.plg_vmcustom_specification.ini
    **Nicht geladen** : JROOT/administrator/language/de-DE/de-DE.plg_system_quicklook_pro.ini
    **Nicht geladen** : JROOT/language/de-DE/de-DE.mod_eventgallery_latest.ini
        **Nicht geladen** : JROOT/language/de-DE/de-DE.mod_virtuemart_cart.ini
    **Nicht geladen** : JROOT/modules/mod_virtuemart_cart/language/de-DE/de-DE.mod_virtuemart_cart.ini
    **Nicht geladen** : JROOT/language/en-GB/en-GB.mod_virtuemart_cart.ini
       **Nicht geladen** : JROOT/administrator/language/de-DE/de-DE.plg_vmpayment_paypal.ini
      **Nicht geladen** : JROOT/administrator/language/de-DE/de-DE.plg_vmpayment_tco.ini
      **Nicht geladen** : JROOT/administrator/language/de-DE/de-DE.plg_vmpayment_sofort.ini
        **Nicht geladen** : JROOT/administrator/language/de-DE/de-DE.plg_vmpayment_sofort_ideal.ini
    **Nicht geladen** : JROOT/administrator/language/de-DE/de-DE.plg_vmpayment_standard.ini
and here'S the list of not translated language strings
Quote
# JROOT/administrator/components/com_virtuemart/helpers/vmtext.php
COM_VIRTUEMART_VIRTUEMART_CATEGORY_ID="VIRTUEMART VIRTUEMART CATEGORY ID??"
COM_VIRTUEMART_VIRTUEMART_RATING_ID="VIRTUEMART VIRTUEMART RATING ID??"
COM_VIRTUEMART_VIRTUEMART_USERFIELD_ID="VIRTUEMART VIRTUEMART USERFIELD ID??"
COM_VIRTUEMART_VIRTUEMART_USERINFO_ID="VIRTUEMART VIRTUEMART USERINFO ID??"
COM_VIRTUEMART_VIRTUEMART_USER_ID="VIRTUEMART VIRTUEMART USER ID??"
COM_VIRTUEMART_VIRTUEMART_VENDOR_ID="VIRTUEMART VIRTUEMART VENDOR ID??"
COM_VIRTUEMART_STRING_ERROR_PRIMARY_KEY="VIRTUEMART STRING ERROR PRIMARY KEY"
COM_VIRTUEMART_VIRTUEMART_CATEGORY_ID="VIRTUEMART VIRTUEMART CATEGORY ID"
COM_VIRTUEMART_VIRTUEMART_RATING_ID="VIRTUEMART VIRTUEMART RATING ID"
COM_VIRTUEMART_VIRTUEMART_USERFIELD_ID="VIRTUEMART VIRTUEMART USERFIELD ID"
COM_VIRTUEMART_VIRTUEMART_USERINFO_ID="VIRTUEMART VIRTUEMART USERINFO ID"
COM_VIRTUEMART_VIRTUEMART_USER_ID="VIRTUEMART VIRTUEMART USER ID"
COM_VIRTUEMART_VIRTUEMART_VENDOR_ID="VIRTUEMART VIRTUEMART VENDOR ID"
KRNTEN="Kärnten"
VM_RECENTLY_ADDED_ITEMS="RECENTLY ADDED ITEMS"
# JROOT/administrator/components/com_virtuemart/helpers/config.php
THE_PARAMETER_EMMERCHANT_EMAILEM_IS_REQUIRED_FOR_THE_PAYMENT_EM_EM_EM1EM="parameter ??**Merchant e-mail**?? is required for the payment    (??1??)**"
# JROOT/libraries/src/Language/Text.php
END="End"
FIRST="First"
FLEX_LOGIN_HI="LOGIN HI"
LAST="Last"
NEXT="Next"
PREV="Prev"
START="Start"

Does that help? Thank you very much for your help! I really appreciate your time and have a great day!

best regards!
Title: Re: language overwrite doesn't work at all!
Post by: Studio 42 on December 27, 2017, 15:35:04 PM
Have you perhaps some overide in the template?
Have your german language last language update ?
Joomla 3.7+ have some problem to load 2 language files at same time having same KEYs.
Eg if you have vm.ini in german  then vm.ini in english and another vm.sys.ini in german  if the key is missing  in last file, the english is used as fallback.
If you disable load additionnal language in VM, does it help ?
Title: Re: language overwrite doesn't work at all!
Post by: jjk on December 27, 2017, 16:05:39 PM
If language files are not loaded, the reason often is a parsing error in one of the language files, often usually to a typo.
Does Joomla 'Debug Language' list any parsing errors at the bottom of the page?
Can you provide a link to that website?

BTW: There seems to be a typo in one of your translations: In your cart view it says "Vornamme" instead of "Vorname".
Title: Re: language overwrite doesn't work at all!
Post by: Alemantico on December 27, 2017, 17:11:17 PM
Hi Studio 42,

thank you very much for your quick response! Going to your queries:
QuoteHave your german language last language update ?
Yes, the German language files (de-DE.com_virtuemart.ini, de-DE.com_virtuemart_shoppers.ini and all joomla! native lang files current ver. 3.8.0.1 ) are updated to their newest version. 
QuoteHave you perhaps some overide in the template?
About the template overwrite; I kind of doubt that, because the user can link the flex template directly to joomla! native language file. Further, even I changed the template for the onlineshop to beez, I still got the cancel and submit buttons in english. At this point, I also checked the german language files from "onepage" (VM-Extension) and from "VM Essentials". In none of them there's  such a string like "COM_VIRTUEMART_PRODUCT_ADDED_SUCCESSFULLY" (this is just one of many untranslated strings)
QuoteJoomla 3.7+ have some problem to load 2 language files at same time having same KEYs.
Im sorry, when I missed to mention in my intro, that I am using the current joomla! version 3.8.3. 
QuoteEg if you have vm.ini in german  then vm.ini in english and another vm.sys.ini in german  if the key is missing  in last file, the english is used as fallback.
Considerating that functioning, the german language file, wich contains the string "COM_VIRTUEMART_PRODUCT_ADDED_SUCCESSFULLY" has being loaded. Do you mean, in order to propagate, it will need another de - file with the same string? Or does one of the de.ini contains overwrite comments?
QuoteIf you disable load additionnal language in VM, does it help ?
What additional language do you mean? I only run de & en (Screenshots). This issue is getting kinda confusing. I just don't get it, why only some of the strings are taken and other not - and this from the same language file.

Anyway, thank you a lot for helping me to find the cause! investing your time by helping me is really appreciated!

Best regards!
Title: Re: language overwrite doesn't work at all!
Post by: Alemantico on December 27, 2017, 17:35:06 PM
Hi jjk,

thank you for taking a look on it! Well, the thing is, that there seems to be no errors on the language debug console (I added a screenshot). The link to my site is www.austrialandscapes.org (http://www.austrialandscapes.org). But it properly won't help you yet, because currently its set to offline. But as soon as the native plugin error on virtuemart (thats the link to the threat: ( http://forum.virtuemart.net/index.php?topic=139173.0 (http://forum.virtuemart.net/index.php?topic=139173.0) ) has being solved, I'll activate the site online.  For god's sake, that'll gotta be soon  :P !

Best regards & thank you again very much!
Title: Re: language overwrite doesn't work at all!
Post by: Alemantico on December 27, 2017, 17:36:46 PM
btw, thanx a lot for your hint about the "Vornamme"  8) !!!
Title: Re: language overwrite doesn't work at all!
Post by: jjk on December 27, 2017, 20:58:39 PM
I wonder if you actually installed the german language files for VirtueMart from here: http://virtuemart.net/community/translations
Title: Re: language overwrite doesn't work at all!
Post by: Alemantico on December 28, 2017, 08:42:12 AM
Hi jjk!
thanx for your reply! How do you come to such conclusion? Of course I did install the German lang files for VM! Would VM translate all other strings into German without any German language files? Or do you mean any special language file of VM, I've just overseen? In a prev. comment I just mentioned:
QuoteYes, the German language files (de-DE.com_virtuemart.ini, de-DE.com_virtuemart_shoppers.ini and all joomla! native lang files current ver. 3.8.0.1 ) are updated to their newest version.

best regards!
Title: Re: language overwrite doesn't work at all!
Post by: Studio 42 on December 28, 2017, 13:24:32 PM
You have to get the last one de-DE language pack, else some translation are missing.
Title: Re: language overwrite doesn't work at all!
Post by: jjk on December 28, 2017, 13:54:16 PM
Quote from: Studio 42 on December 28, 2017, 13:24:32 PM
You have to get the last one de-DE language pack, else some translation are missing.

I didn't have the time yet to update the german language pack the past few weeks, so a few lines are currently missing for users who are using the recently published VM versions.
However, some strings in Alemantico's screenshots are not in the original VM language files. For example "Product Info"  or 'Product successfully added to your shopping cart" is not in the original English VM language files. If those are language overrides, the overrides need to be in both languages.
Title: Re: language overwrite doesn't work at all!
Post by: Alemantico on December 29, 2017, 08:04:36 AM
Hey jik,

If you want, I could do that! What exactly would you need to do? The language strings which does not belong to the vm lang file has being retrieved from another language file. They're just additional loaded. Let me know, if I can give you a hand with the lang file update!

best regards!
Title: Re: language overwrite doesn't work at all!
Post by: jjk on December 29, 2017, 22:49:47 PM
Quote from: Alemantico on December 29, 2017, 08:04:36 AM
Let me know, if I can give you a hand with the lang file update!

I think I'll get most of the work done during this extended weekend.  :)
Title: Re: language overwrite doesn't work at all!
Post by: Alemantico on December 30, 2017, 09:19:20 AM
ok, no problem! If one day and somehow I can make it up to you, please let me know  8) !  Anyway, meanwhile and just for a moment I placed my site online. If you want to take a look on it; this is the the link to it: www.austrialandscapes.org (http://www.austrialandscapes.org)

best regards & thank you again so much for keep sticking in helping me!