diff --git a/admin/admin.php b/admin/admin.php index db5d5ce..bd8d1b2 100644 --- a/admin/admin.php +++ b/admin/admin.php @@ -133,3 +133,13 @@ function vbp_admin_enqueue_scripts( $hook_suffix ) { wp_localize_script( 'vk-patterns-admin-js', 'vkpOptions', $vbp_options ); } add_action( 'admin_enqueue_scripts', 'vbp_admin_enqueue_scripts' ); + +/** + * Add admin js transration + * + * @return void + */ +function vbp_admin_script_translations() { + wp_set_script_translations( 'vk-patterns-admin-js', 'vk-block-patterns' ); +} +add_action( 'init', 'vbp_admin_script_translations' ); diff --git a/languages/vk-block-patterns-ja.mo b/languages/vk-block-patterns-ja.mo deleted file mode 100644 index fc913ce..0000000 Binary files a/languages/vk-block-patterns-ja.mo and /dev/null differ diff --git a/languages/vk-block-patterns-ja.po b/languages/vk-block-patterns-ja.po deleted file mode 100644 index 2068606..0000000 --- a/languages/vk-block-patterns-ja.po +++ /dev/null @@ -1,49 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: VK Block Patterns\n" -"POT-Creation-Date: 2020-08-19 13:31+0900\n" -"PO-Revision-Date: 2020-08-19 13:31+0900\n" -"Last-Translator: \n" -"Language-Team: \n" -"Language: ja\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.4.1\n" -"X-Poedit-Basepath: ..\n" -"Plural-Forms: nplurals=1; plural=0;\n" -"X-Poedit-Flags-xgettext: --add-comments=translators:\n" -"X-Poedit-WPHeader: vk-block-patterns.php\n" -"X-Poedit-SourceCharset: UTF-8\n" -"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;" -"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;" -"_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n" -"X-Poedit-SearchPath-0: .\n" -"X-Poedit-SearchPathExcluded-0: *.min.js\n" - -#: inc/vk-block-patterns/package/class-vk-block-patterns.php:31 -msgid "Block Patterns" -msgstr "ブロックパターン" - -#. Plugin Name of the plugin/theme -msgid "VK Block Patterns" -msgstr "VK Block Patterns" - -#. Plugin URI of the plugin/theme -#. Author URI of the plugin/theme -msgid "https://lightning.nagoya/" -msgstr "https://lightning.nagoya/" - -#. Description of the plugin/theme -msgid "You can make and register your original custom block patterns." -msgstr "オリジナルのカスタムブロックパターンを作って登録できます。" - -#. Author of the plugin/theme -msgid "Vektor,Inc." -msgstr "Vektor,Inc." - -#~ msgid "Category" -#~ msgstr "カテゴリー" - -#~ msgid "Block Patterns Category" -#~ msgstr "ブロックパターンカテゴリー" diff --git a/readme.txt b/readme.txt index 8626e8c..cddabaa 100644 --- a/readme.txt +++ b/readme.txt @@ -16,6 +16,9 @@ When you activate this plugin that create new custom post type for custom block == Changelog == += 1.16.2 = +[ Bug fix ] Admin transration + = 1.16.1 = [ Add ][ Japanese ] Add VK Pattern Library link to block editor [ Add style ] Add Table class diff --git a/vk-block-patterns.php b/vk-block-patterns.php index 54dc608..129db06 100644 --- a/vk-block-patterns.php +++ b/vk-block-patterns.php @@ -3,7 +3,7 @@ * Plugin Name: VK Block Patterns * Plugin URI: https://github.com/vektor-inc/vk-block-patterns * Description: You can make and register your original custom block patterns. - * Version: 1.16.1 + * Version: 1.16.2 * Requires at least: 5.8 * Author: Vektor,Inc. * Author URI: https://vektor-inc.co.jp