How to fix CONSTANTS for custom fields?

  • Posts: 231
  • Thank you received: 28
  • Hikashop Business
3 years 6 months ago #332356

-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.25
-- PHP version -- : 7.3.27

Hi,
So I have created some custom fields, and the label was created in my language, and the language have this characters: Ț Ș Ă Î Â .
I have this custom field: Colecție and the constant for this is COLEC__IE .
The constant is generated automatically from label every time is displayed?
Because I can't find the constant in any language file or in database.

For now I will use COLEC__IE to translate the content.

Thank you, and LLHS! :P

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
3 years 6 months ago #332410

Hi,

The constant is generated dynamically from the name yes.
If you want to change them, no problem.
You can directly enter the constant you want in the field's label. You just need to enter your translation override for each language, including the main one, while when you let the system generate it dynamically from the name, you just need to enter the translation override for the other languages.

The following user(s) said Thank You: oxido

Please Log in or Create an account to join the conversation.

  • Posts: 231
  • Thank you received: 28
  • Hikashop Business
3 years 6 months ago #332413

I'm an idiot... :whistle: :P I should have realized that I should write the label without diacritics and overwrite the translation, I apologize nicolas.
Thank you!

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
3 years 6 months ago #332414

No worries :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.043 seconds
Powered by Kunena Forum