Translation does not take effect
-
Thanks for your great work!
I had a try for it and translated it into Chinese today. but I found the translation does not take effect.
There is an error:
The 195 line:
load_plugin_textdomain( 'content-control' );
Should be changed to:
load_plugin_textdomain( 'content-control', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
In addition, it is recommended to use wp_localize_script() function to make the text inside .js can be translated.
You can get Simplified Chinese language pack from https://img.wpdaxue.com/2016/10/content-control-zh_CN.zip
————————–
BTW, Could you make it be compatible with Woocommerce and Easy Digital Downloads, only buy one or more of the specified goods in order to view the content…
Thanks again!
- The topic ‘Translation does not take effect’ is closed to new replies.