VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: patbe60 on October 30, 2022, 15:51:27 PM

Title: Problem with German language file in VM 4.0.7
Post by: patbe60 on October 30, 2022, 15:51:27 PM
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
Title: Re: Problem with German language file in VM 4.0.7
Post by: hazael on October 30, 2022, 21:57:51 PM
It is possible that one of the language files has a line with a translation not enclosed in quotation marks
Title: Re: Problem with German language file in VM 4.0.7
Post by: 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

Title: Re: Problem with German language file in VM 4.0.7
Post by: patbe60 on October 31, 2022, 17:19:59 PM
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?
Title: Re: Problem with German language file in VM 4.0.7
Post by: GJC Web Design on October 31, 2022, 19:29:24 PM
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...  :)
Title: Re: Problem with German language file in VM 4.0.7
Post by: Milbo on November 01, 2022, 18:29:13 PM
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
Title: Re: Problem with German language file in VM 4.0.7
Post by: StefanSTS on November 01, 2022, 19:12:44 PM
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
Title: Re: Problem with German language file in VM 4.0.7
Post by: patbe60 on November 01, 2022, 19:47:17 PM
QuoteI made an installer for German language files for my customers.

Thank you very much. Works fine.