[Skip to main content](#vessel-content)

#   How to fix CONSTANTS for custom fields?

##

- **[oxido](/forum/user/29793-oxido "View oxido's Profile")**
- [![oxido's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29793-oxido "View oxido's Profile") Topic Author
- [ Offline](/forum/user/29793-oxido)

Less More

- Posts: 285
- Thank you received: 42
-
-

5 years 6 months ago [\#332356](#332356) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  *[How to fix CONSTANTS for custom fields?](/forum/10-translation/902528-how-to-fix-constants-for-custom-fields#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&#95;&#95;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&#95;&#95;IE to translate the content.  Thank you, and LLHS! :P")* was created by *[oxido](/forum/user/29793-oxido "View oxido's Profile")*

-- 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](/media/kunena/emoticons/14.png ":P")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzkwMjUyOC1ob3ctdG8tZml4LWNvbnN0YW50cy1mb3ItY3VzdG9tLWZpZWxkcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14305
-
-

5 years 6 months ago [\#332410](#332410) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to fix CONSTANTS for custom fields?](/forum/10-translation/902528-how-to-fix-constants-for-custom-fields#332410 "-- 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&#95;&#95;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&#95;&#95;IE to translate the content.  Thank you, and LLHS! :P")*

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](/forum/user/29793-oxido "View oxido's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzkwMjUyOC1ob3ctdG8tZml4LWNvbnN0YW50cy1mb3ItY3VzdG9tLWZpZWxkcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oxido](/forum/user/29793-oxido "View oxido's Profile")**
- [![oxido's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29793-oxido "View oxido's Profile") Topic Author
- [ Offline](/forum/user/29793-oxido)

Less More

- Posts: 285
- Thank you received: 42
-
-

5 years 6 months ago [\#332413](#332413) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  Replied by *[oxido](/forum/user/29793-oxido "View oxido's Profile")* on topic *[How to fix CONSTANTS for custom fields?](/forum/10-translation/902528-how-to-fix-constants-for-custom-fields#332413 "-- 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&#95;&#95;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&#95;&#95;IE to translate the content.  Thank you, and LLHS! :P")*

I'm an idiot... :whistle: ![:P](/media/kunena/emoticons/14.png ":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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzkwMjUyOC1ob3ctdG8tZml4LWNvbnN0YW50cy1mb3ItY3VzdG9tLWZpZWxkcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14305
-
-

5 years 6 months ago [\#332414](#332414) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to fix CONSTANTS for custom fields?](/forum/10-translation/902528-how-to-fix-constants-for-custom-fields#332414 "-- 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&#95;&#95;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&#95;&#95;IE to translate the content.  Thank you, and LLHS! :P")*

No worries ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzkwMjUyOC1ob3ctdG8tZml4LWNvbnN0YW50cy1mb3ItY3VzdG9tLWZpZWxkcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
