Skip to content

Commit 94355d9

Browse files
Add a wpml-config.xml file.
This lets WPML recognize which of our options are strings that may need to be translated. A share feature option is a WP option, so to make it translatable we need to add it to wpml-config.xml file. When plugins use get_option, they read values from the wp_options table, WPML can filter these calls and provide translation to the values of these options. A greeting text option is a WP option, so to make it translatable we need to add it to wpml-config.xml file. When plugins use get_option, they read values from the wp_options table, WPML can filter these calls and provide translation to the values of these options. Props: WPML.org
1 parent 5cf7213 commit 94355d9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

wpml-config.xml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<wpml-config>
2+
<admin-texts>
3+
<key name="sharing-options">
4+
<key name="global">
5+
<key name="sharing_label" />
6+
</key>
7+
</key>
8+
<key name="highlander_comment_form_prompt" />
9+
</admin-texts>
10+
</wpml-config>

0 commit comments

Comments
 (0)