News:

Support the VirtueMart project and become a member

Main Menu

Problem with German language file in VM 4.0.7

Started by patbe60, October 30, 2022, 15:51:27 PM

Previous topic - Next topic

patbe60

The German site of VM 4.0.7.10730 doesn't work. I only get an error in
administrator/components/com_virtuemart/helpers/vmtext.php on line 150

When I uncomment this line the error disappears and the site works fine. But then the "Back to Category button" in detail view of a product is only a small button without text.
I have downloaded the German language file from here:
https://virtuemart.net/community/translations/virtuemart/de-DE

The English site works fine, also the "Back to Category" button.

VM 4.0.7.10730
J 4.2.4

hazael

It is possible that one of the language files has a line with a translation not enclosed in quotation marks

GJC Web Design

or the variable hasn't been changed ... all variables got changed to %1$s in the lang files I think

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

patbe60

The problem is the language file from this link I told in my first post. The language files will be installed into the Joomla language folder. The error is caused by the file de-DE.com_virtuemart.ini in the Joomla language folder. As soon as I delete this file the site works without problems.

There is also a de-DE.com_virtuemart.ini in the VM language folder. But I don't remember where from I got it. Is there an other download link for the VM language files?

GJC Web Design

Yes, and your contribution to this free software can be to check thru the file looking for one of the suggested problems and report back here what you find...  :)
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Milbo

Quote from: GJC Web Design on October 31, 2022, 11:15:01 AM
or the variable hasn't been changed ... all variables got changed to %1$s in the lang files I think

It depends! %1$s for the first position if string. But we have also %2$s for the second position, or %1$i or d for other datatypes. Languages are here, the german file should be updated. https://virtuemart.net/community/translations/virtuemart
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

StefanSTS

Quote from: patbe60 on October 31, 2022, 17:19:59 PM
Is there an other download link for the VM language files?

I made an installer for German language files for my customers.
https://www.jooglies.com/virtuemart-erweiterungen/deutsche-sprachpakete-f%C3%BCr-virtuemart
Those work, based on the original files.

Stefan
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

patbe60

QuoteI made an installer for German language files for my customers.

Thank you very much. Works fine.