Author Topic: Translation of customer fields, popup hints, required fields popup hints  (Read 311 times)

Gomad

  • Beginner
  • *
  • Posts: 11
  • A beginner
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

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1455
Re: Translation of customer fields, popup hints, required fields popup hints
« Reply #1 on: September 29, 2021, 15:16:17 pm »
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

  • Beginner
  • *
  • Posts: 11
  • A beginner
Re: Translation of customer fields, popup hints, required fields popup hints
« Reply #2 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)

balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1455
Re: Translation of customer fields, popup hints, required fields popup hints
« Reply #3 on: September 30, 2021, 11:38:38 am »
Quote
Hi 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.