News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Translation of customer fields, popup hints, required fields popup hints

Started by Gomad, September 29, 2021, 11:17:06 AM

Previous topic - Next topic

Gomad

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

balai

Regarding the translations, i suggest using the Joomla's Language Overrides.
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.

I think that the hint language string is not dynamic. But you can possibly override that as well, by editing the proper file.

Gomad

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)

balai

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.