VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: Gomad on September 29, 2021, 11:17:06 AM

Title: Translation of customer fields, popup hints, required fields popup hints
Post by: Gomad on September 29, 2021, 11:17:06 AM
Hello

I am testing the translation of the customer fields, so far I could verify that using the suggested method to use the language overrides does work. So far so good.

I also tried to add the constants in the public_html/language/xx-XX/xx-XXcom_virtuemart_shoppers.ini files, it works as well, however, why is this possibility never mentioned nowhere? Is there any problem using this way?

What I could not do however is to find a way to translate the popup hint that appears when a user hover with the mouse cursor on the fields.

Which is the method to have the popup hints on the fields translated?

I tried to search but so far I could find no info.

Another thing I noticed is that when a filed is required, the popup hint is always the same one reminding that is a required field, how to change this fixed hint into more useful ones depending on the field and the language of the page?

Thank you
Best regards
Title: Re: Translation of customer fields, popup hints, required fields popup hints
Post by: balai on September 29, 2021, 15:16:17 PM
Regarding the translations, i suggest using the Joomla's Language Overrides (https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla).
This allows you both to insert new translations (without touching the language files) and also search for existing language strings, which can overwritten.

Btw. If you are looking for an easy way to have multi-lingual custom fields, have a look at breakdesigns' Custom Fields for All (https://breakdesigns.net/extensions/customfields-for-all).

I think that the hint language string is not dynamic. But you can possibly override that as well, by editing the proper file.
Title: Re: Translation of customer fields, popup hints, required fields popup hints
Post by: Gomad on September 30, 2021, 11:31:05 AM
Hi I tried to override it placing the constant into the description, as I imagined did not work.
I have no idea where to look in order to override for each language the popup hints for the customer fields, or also for the custom fields for products etc.. (did not look into the latter yet)
Title: Re: Translation of customer fields, popup hints, required fields popup hints
Post by: balai on September 30, 2021, 11:38:38 AM
QuoteHi I tried to override it placing the constant into the description, as I imagined did not work.
The constant should be inserted in the "Language Constant" input and the value in the "Text"

Not sure about where the hint resides. Possibly a grep search could help.