Skip to content

Commit 039a034

Browse files
committed
Add translation for Traditional Chinese
1 parent 337188b commit 039a034

8 files changed

+166
-37
lines changed

README.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Donate link: http://1fix.io/
55
Tags: featured image, metabox
66
Requires at least: 3.5
77
Tested up to: 3.9.1
8-
Stable tag: 0.9.5
8+
Stable tag: 1.0.0
99
License: GPLv2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

@@ -51,5 +51,5 @@ With this plugin, you can custom the Featured Image metabox by:
5151

5252
== Changelog ==
5353

54-
= 0.9.5 =
54+
= 1.0.0 =
5555
* The first version

custom-featured-image-metabox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Plugin Name: Custom Featured Image Metabox
1515
* Plugin URI: http://1fix.io
1616
* Description: Custom the title, content and set / remove link text in the Featured Image metabox.
17-
* Version: 0.9.5
17+
* Version: 1.0.0
1818
* Author: 1fixdotio
1919
* Author URI: http://1fix.io
2020
* Text Domain: cfim
700 Bytes
Binary file not shown.
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Copyright (C) 2013 TODO
2+
# This file is distributed under the same license as the TODO package.
3+
msgid ""
4+
msgstr ""
5+
"Project-Id-Version: Custom Featured Image Metabox\n"
6+
"Report-Msgid-Bugs-To: http://wordpress.org/plugins/plugin-name\n"
7+
"POT-Creation-Date: 2014-06-01 15:44+0800\n"
8+
"PO-Revision-Date: 2014-06-01 15:44+0800\n"
9+
"Last-Translator: Yoren Chang <yorenchang@gmail.com>\n"
10+
"Language-Team: 1Fix.io <1fixdotio@gmail.com>\n"
11+
"Language: en_US\n"
12+
"MIME-Version: 1.0\n"
13+
"Content-Type: text/plain; charset=UTF-8\n"
14+
"Content-Transfer-Encoding: 8bit\n"
15+
"X-Generator: Poedit 1.6.5\n"
16+
"X-Poedit-KeywordsList: __;_e;_n;_x;esc_html_e;esc_html__;esc_attr_e;"
17+
"esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2\n"
18+
"X-Poedit-Basepath: ../\n"
19+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
20+
"X-Poedit-SearchPath-0: .\n"
21+
22+
#: admin/class-custom-featured-image-metabox-admin.php:118
23+
#: admin/class-custom-featured-image-metabox-admin.php:119
24+
msgid "Custom Featured Image Metabox"
25+
msgstr ""
26+
27+
#: admin/class-custom-featured-image-metabox-admin.php:145
28+
msgid "Settings"
29+
msgstr ""
30+
31+
#: admin/class-custom-featured-image-metabox-admin.php:216
32+
#: admin/includes/settings.php:165
33+
msgid "Set featured image"
34+
msgstr ""
35+
36+
#: admin/class-custom-featured-image-metabox-admin.php:220
37+
#: admin/includes/settings.php:176
38+
msgid "Remove featured image"
39+
msgstr ""
40+
41+
#: admin/includes/settings.php:88
42+
#, php-format
43+
msgid "Featured Image Metabox in %s"
44+
msgstr ""
45+
46+
#: admin/includes/settings.php:95
47+
msgid "Title Text"
48+
msgstr ""
49+
50+
#: admin/includes/settings.php:104
51+
msgid "Instruction"
52+
msgstr ""
53+
54+
#: admin/includes/settings.php:113
55+
msgid "Set Text"
56+
msgstr ""
57+
58+
#: admin/includes/settings.php:122
59+
msgid "Remove Text"
60+
msgstr ""
61+
62+
#: admin/includes/settings.php:143
63+
msgid "Enter your custom title for Featured Image Metabox."
64+
msgstr ""
65+
66+
#: admin/includes/settings.php:154
67+
msgid "Enter the instructions for Featured Image, like image dimensions."
68+
msgstr ""
69+
70+
#: admin/includes/settings.php:165 admin/includes/settings.php:176
71+
#, php-format
72+
msgid "Enter the custom text to replace the default \"%s\"."
73+
msgstr ""
74+
75+
#: public/class-custom-featured-image-metabox.php:258
76+
#, php-format
77+
msgid ""
78+
"Custom the Featured Image Metabox at <strong><a href=\"%s\">Settings</a></"
79+
"strong> page."
80+
msgstr ""

languages/plugin-name.pot

Lines changed: 0 additions & 31 deletions
This file was deleted.

languages/zh_TW.mo

1.6 KB
Binary file not shown.

languages/zh_TW.po

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Copyright (C) 2013 TODO
2+
# This file is distributed under the same license as the TODO package.
3+
msgid ""
4+
msgstr ""
5+
"Project-Id-Version: Custom Featured Image Metabox\n"
6+
"Report-Msgid-Bugs-To: http://wordpress.org/plugins/plugin-name\n"
7+
"POT-Creation-Date: 2014-06-01 15:44+0800\n"
8+
"PO-Revision-Date: 2014-06-01 15:52+0800\n"
9+
"Last-Translator: Yoren Chang <yorenchang@gmail.com>\n"
10+
"Language-Team: 1Fix.io <1fixdotio@gmail.com>\n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: 8bit\n"
14+
"X-Generator: Poedit 1.6.5\n"
15+
"X-Poedit-KeywordsList: __;_e;_n;_x;esc_html_e;esc_html__;esc_attr_e;"
16+
"esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2\n"
17+
"X-Poedit-Basepath: ../\n"
18+
"Plural-Forms: nplurals=1; plural=0;\n"
19+
"Language: zh_TW\n"
20+
"X-Poedit-SearchPath-0: .\n"
21+
22+
#: admin/class-custom-featured-image-metabox-admin.php:118
23+
#: admin/class-custom-featured-image-metabox-admin.php:119
24+
msgid "Custom Featured Image Metabox"
25+
msgstr ""
26+
27+
#: admin/class-custom-featured-image-metabox-admin.php:145
28+
msgid "Settings"
29+
msgstr "設定"
30+
31+
#: admin/class-custom-featured-image-metabox-admin.php:216
32+
#: admin/includes/settings.php:165
33+
msgid "Set featured image"
34+
msgstr "設定特色圖片"
35+
36+
#: admin/class-custom-featured-image-metabox-admin.php:220
37+
#: admin/includes/settings.php:176
38+
msgid "Remove featured image"
39+
msgstr "移除特色圖片"
40+
41+
#: admin/includes/settings.php:88
42+
#, php-format
43+
msgid "Featured Image Metabox in %s"
44+
msgstr "%s 的特色圖片"
45+
46+
#: admin/includes/settings.php:95
47+
msgid "Title Text"
48+
msgstr "標題文字"
49+
50+
#: admin/includes/settings.php:104
51+
msgid "Instruction"
52+
msgstr "提示文字"
53+
54+
#: admin/includes/settings.php:113
55+
msgid "Set Text"
56+
msgstr "設定文字"
57+
58+
#: admin/includes/settings.php:122
59+
msgid "Remove Text"
60+
msgstr "移除文字"
61+
62+
#: admin/includes/settings.php:143
63+
msgid "Enter your custom title for Featured Image Metabox."
64+
msgstr "輸入你的客製化標題。"
65+
66+
#: admin/includes/settings.php:154
67+
msgid "Enter the instructions for Featured Image, like image dimensions."
68+
msgstr "輸入提示文字,例如圖片尺寸。"
69+
70+
#: admin/includes/settings.php:165 admin/includes/settings.php:176
71+
#, php-format
72+
msgid "Enter the custom text to replace the default \"%s\"."
73+
msgstr "輸入客製化文字以取代 \"%s\""
74+
75+
#: public/class-custom-featured-image-metabox.php:258
76+
#, php-format
77+
msgid ""
78+
"Custom the Featured Image Metabox at <strong><a href=\"%s\">Settings</a></"
79+
"strong> page."
80+
msgstr ""
81+
"請至 <strong><a href=\"%s\">設定</a></strong> 頁面,開始客製化特色圖片區域。"

public/class-custom-featured-image-metabox.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Custom_Featured_Image_Metabox {
2828
*
2929
* @var string
3030
*/
31-
const VERSION = '0.9.5';
31+
const VERSION = '1.0.0';
3232

3333
/**
3434
* Unique identifier for your plugin.
@@ -276,8 +276,7 @@ public function load_plugin_textdomain() {
276276
$domain = $this->plugin_slug;
277277
$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
278278

279-
load_textdomain( $domain, trailingslashit( WP_LANG_DIR ) . $domain . '/' . $domain . '-' . $locale . '.mo' );
280-
load_plugin_textdomain( $domain, FALSE, basename( plugin_dir_path( dirname( __FILE__ ) ) ) . '/languages/' );
279+
load_textdomain( $domain, trailingslashit( WP_PLUGIN_DIR ) . 'custom-featured-image-metabox/languages/' . $locale . '.mo' );
281280

282281
}
283282

0 commit comments

Comments
 (0)