VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: Margriet on March 16, 2015, 11:44:40 AM

Title: Weird behaviour Warning cart shipment/payment
Post by: Margriet on March 16, 2015, 11:44:40 AM
Instructions to reproduce:
Make payment method and shipment method and set country for both. Order product and go to cart. English warning is ok:
(http://yndidev.tk/vm3/images/vmtest/Yndi%2020150316%20-%20110810.jpg)
Dutch translation shows the same warning twice:
(http://yndidev.tk/vm3/images/vmtest/Yndi%2020150316%20-%20111540.jpg)
I checked the language files, but can't find any errors. Translation is present, but somehow not shown.
COM_VIRTUEMART_NO_PAYMENT_METHODS_CONFIGURED="Er is geen betaalmethode geconfigureerd %1$s"
COM_VIRTUEMART_NO_PAYMENT_METHODS_CONFIGURED="No payment method has been configured %1$s"

VM 3.0.6.2
Joomla 3.4.0
Title: Re: Weird behaviour Warning cart shipment/payment
Post by: jjk on March 16, 2015, 21:58:23 PM
I just had a look at the dutch language files and don't see an error either. It displays COM_VIRTUEMART_CART_ENTER_ADDRESS_FIRST="Vul AUB eerst uw adres in"
If you enable 'Debug System' and 'Debug Language' in Joomla configuration, does it show a language parsing error at the bottom of cart view?
Title: Re: Weird behaviour Warning cart shipment/payment
Post by: Margriet on March 17, 2015, 09:56:55 AM
No parsing errors, untranslated strings shows this, but it doesn't make sense to me:
(http://yndidev.tk/vm3/images/vmtest/Yndi%2020150317%20-%20094805.jpg)

(http://yndidev.tk/vm3/images/vmtest/Yndi%2020150317%20-%20094826.jpg)

(http://yndidev.tk/vm3/images/vmtest/Yndi%2020150317%20-%20095523.jpg)


Title: Re: Weird behaviour Warning cart shipment/payment
Post by: jjk on March 17, 2015, 11:19:12 AM
I think this is not a problem with your dutch language file. Please check the configuration of your shipment and payment methods in both languages. If I understand the code correctly VM first checks if there is a shipment method configured and then checks if there is a payment method configured. In both cases it displays "Please enter your address first" if the BillTo address is empty. Maybe you just need to configure a payment method for 'English' countries.
Title: Re: Weird behaviour Warning cart shipment/payment
Post by: Margriet on March 17, 2015, 11:56:14 AM
Correct. So it's just not very nice that the same warning text is shown twice, but indeed it has nothing to do with translation.

Thx!
And I should have searched the forum first. Sorry. Same problem here (http://forum.virtuemart.net/index.php?topic=127585.0).