[Plugin: Shortcodes Pro] some options don't work with localization
-
I noticed that Shortcodes Pro had a issue with localization when I have tlanslated this awesome plugin into my mother tongue.
The following is a part of the .po file that I have made.
#: inc/class-shortcodespro-type.php:897 msgid "Wrap content with" msgstr "内容を囲む" #: inc/class-shortcodespro-type.php:898 msgid "Insert custom code" msgstr "カスタムコードを挿入"After the translation, options with <select> element haven’t worked correctly in “Add New Shortcode” page.
Because ShortCodes Pro outputs strange HTML like below.<select name="type" id="type"> <option value="%e5%86%85%e5%ae%b9%e3%82%92%e5%9b%b2%e3%82%80">内容を囲む</option> <option value="%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%b3%e3%83%bc%e3%83%89%e3%82%92%e6%8c%bf%e5%85%a5">カスタムコードを挿入</option> </select>‘Type’ option in ‘New Attribute Details’ popup window also doesn’t work.
This issue seems to come from inc/class-shortcodespro-type.php.
For example,function _custom_define_metaboxes() { // ... 'options' => array( 'wrap-content-with' => __( 'Wrap content with', 'shortcodes-pro' ), 'insert-custom-code' => __( 'Insert custom code', 'shortcodes-pro' ) )),This should be the following.
function _custom_define_metaboxes() { // ... 'options' => array( 'wrap-content-with' => array( 'id' => 'wrap-content-with', 'title' => __( 'Wrap content with', 'shortcodes-pro' ) ), 'insert-custom-code' => array( 'id' => 'insert-custom-code', 'title' => __( 'Insert custom code', 'shortcodes-pro' ) ) )),It would be nice if this issue were fixed.
The topic ‘[Plugin: Shortcodes Pro] some options don't work with localization’ is closed to new replies.