- Posts: 238
- Thank you received: 4
Translation of custom fields in fields.xml
- Patrick
-
Topic Author
- Offline
- Elite Member
-
Less
More
10 years 11 months ago #60719
by Patrick
Translation of custom fields in fields.xml was created by Patrick
Hello
I want to add some extra fields as described here:
documentation.joomdonation.com/2-events-...ow-custom-field.html
But how can I make them multi language? I have not found a way to translate the fields.
Thanks for your help.
Pat
I want to add some extra fields as described here:
documentation.joomdonation.com/2-events-...ow-custom-field.html
But how can I make them multi language? I have not found a way to translate the fields.
Thanks for your help.
Pat
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
10 years 11 months ago #60739
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Translation of custom fields in fields.xml
Hi Pat
I think the solution would be:
1. Edit the custom fields in the file fields.xml, change label to language items such as EB_NAME_OF_CUSTOM_FIELD
2. Then go to Events Booking -> Translation, press new button in the toolbar to add that language item and make the translation
After that, it should work as expected
Tuan
I think the solution would be:
1. Edit the custom fields in the file fields.xml, change label to language items such as EB_NAME_OF_CUSTOM_FIELD
2. Then go to Events Booking -> Translation, press new button in the toolbar to add that language item and make the translation
After that, it should work as expected
Tuan
The following user(s) said Thank You: Patrick
Please Log in or Create an account to join the conversation.
- Patrick
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 238
- Thank you received: 4
10 years 11 months ago #60740
by Patrick
Replied by Patrick on topic Translation of custom fields in fields.xml
Hi Tuan
Works fine, thank you.
I figured out that core language override from Joomla is working as well. I can add the language strings there, too
Patrick
Works fine, thank you.
I figured out that core language override from Joomla is working as well. I can add the language strings there, too
Patrick
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
10 years 11 months ago #60771
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Translation of custom fields in fields.xml
Yeah, that works, too (although I haven't used that function of Joomla core )
Tuan
Tuan
Please Log in or Create an account to join the conversation.
- Zelena
- Offline
- Junior Member
-
Less
More
- Posts: 39
- Thank you received: 1
10 years 1 month ago #76817
by Zelena
Replied by Zelena on topic Translation of custom fields in fields.xml
I've got a related question. I have this working, and the field *labels* translate fine - but how would I translate the field *contents*?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
10 years 1 month ago #76826
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Translation of custom fields in fields.xml
Hi Zelena
Unfortunately, at the moment, we don't have a way to translate the file content. What content you tried to enter? Is it simple string ? If so, I can try to edit code to make it translatable for you
Regards,
Tuan
Unfortunately, at the moment, we don't have a way to translate the file content. What content you tried to enter? Is it simple string ? If so, I can try to edit code to make it translatable for you
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Zelena
- Offline
- Junior Member
-
Less
More
- Posts: 39
- Thank you received: 1
10 years 1 month ago #76859
by Zelena
Replied by Zelena on topic Translation of custom fields in fields.xml
Thanks Tuan. Never mind - I just figured out it is easier to create double the number of fields, and show each set where relevant. Avoids editing the language files too.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
10 years 1 month ago #76861
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Translation of custom fields in fields.xml
Smart, nice solution. Thanks for sharing !
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2026 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.