Home › Forums › Calendar Products › Events Calendar PRO › I can not modify custom fields
- This topic has 4 replies, 4 voices, and was last updated 9 years ago by
Nicolás.
-
AuthorPosts
-
March 9, 2017 at 5:02 pm #1252111
Nicolás
ParticipantHi,
I’m using Event Calendar Pro with WPML and TheGem template.
The problem I have is that when I create a new language from the original with Event Calendar (Events, Places, Organizers, etc) I always copy everything from the original language.
WPML has the option to modify this, but it is locked for everything in Event Calendar (photo21).
Regards
[email protected]March 10, 2017 at 5:50 am #1252278Nicolás
ParticipantHi,
I really did not know which of the two could solve the problem. And I asked the same question to support WPML.
WPML Support has replied to the same question as follows:Support WPML ———————————————–
In fact, you’re following a good path already. In most of the cases, if you want to make some custom fields translatable, you just need to go to WPML>Translation Management>Multilingual Content Setup>Custom fields and mark these fields as translatable instead of ‘copy’.
In your case, though, these fields options are appearing disabled and you can’t change them. The reason why this is happening is because this plugin is already specifying WPML the default translation option of these fields. Themes and plugins can specify these settings in a file named wpml-config.xml (you can read more about it here: https://wpml.org/documentation/support/language-configuration-files/).
If you check your plugin folder you’ll probably see this wpml-config.xml file and if you edit it, you’ll see the translation options for these fields inside “” node. Something like this:
<custom-fields>
<custom-field action=”copy”>_EventCost</custom-field>
<custom-field action=”copy”>_EventCurrencyPosition</custom-field>
<custom-field action=”copy”>_EventCurrencySymbol</custom-field>
<custom-field action=”copy”>_EventDuration</custom-field>
<custom-field action=”copy”>_EventEndDate</custom-field>
[…]
</custom-fields>
If you want to change any of these options, you could change their ‘action’ parameter to whatever fits you (like ‘translate’) or delete these lines of code and change their translation option in WPML>Translation Management>Multilingual Content Setup>Custom fields (after deleting these fields from wpml-config.xml file their options will be enabled again).
Please remember that if you modify the plugin wpml-config.xml file, you should be aware when updating the plugin, as its contents will be overwritten with the default one and you’ll need to update them again.
If you think that these shouldn’t be the default translation options for these fields, you should contact the plugin authors and let them know so they can correct it in next releases.
Support WPML ———————————————–
Regards
[email protected]March 10, 2017 at 1:39 pm #1252641Andras
KeymasterHello Nicolás,
Thanks for using our plugins and welcome to the forums!
I checked also on a clean install, and indeed those custom fields are copied to the other languages.
It sortof makes sense because if you are running the same site and events in different languages, then most of that data (date, time, cost etc.) should be the same in all languages.
I can check for you if we can change that in future releases if you’d like me to. In this case please give me some more details how you would like to use it and why do you want it to be translatable.
Thanks and cheers,
AndrasApril 1, 2017 at 9:35 am #1263019Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘I can not modify custom fields’ is closed to new replies.
