 Ionut
|
Background of the issue:
I am working on a site under development and trying to translate custom Ninja Form fields using WPML.
Symptoms:
I didn't find any documentation on how to translate custom Ninja Form fields.
Questions:
How can I translate custom Ninja Form fields using WPML?
|
 Ionut
|
A bit more context:
If i edit `wp-content/plugins/wpml-ninja-forms/wpml-forms-config.xml` and add my own stuff, it works
[code]
<forms>
<form name="ninja-forms">
<property type="ARRAY" properties="f_label">my-custom-field</property>
[/code]
But this is not very future proof.
|
 Shekhar Bhandari
WPML Supporter since 03/2015
Languages:
English (English )
Timezone:
Asia/Kathmandu (GMT+05:45)
|
Hello there,
Can you please copy the wpml-forms-config.xml to your root folder of custom plugin and check if this helps?
Thanks
|
 Ionut
|
@Shekhar Bhandari: `wpml-forms-config` is not loaded automatically, it's only loaded by the nf wpml plugin:
$config_helper->getXmlArray( dirname( $this->pluginFilePath ) . 'https://cdn.wpml.org/wpml-forms-config.xml' );
There is no logic within code that will load the file when stored in a different place
|
 Shekhar Bhandari
WPML Supporter since 03/2015
Languages:
English (English )
Timezone:
Asia/Kathmandu (GMT+05:45)
|
Hello there,
I will pass this info to our 2nd tier supporters.
Thanks
|