From 8c201e83ff0b1e9a265f9c3fcc7566c122c65c31 Mon Sep 17 00:00:00 2001 From: Alex Lion Date: Sun, 3 Nov 2024 14:08:23 -0800 Subject: [PATCH] Improve I18N Issues Based on version 0.5 (#104) --- includes/class-admin-settings.php | 10 +- languages/AspireUpdate-zh_TW.l10n.php | 2 + languages/AspireUpdate-zh_TW.mo | Bin 0 -> 2659 bytes languages/AspireUpdate-zh_TW.po | 131 ++++++++++++++++++++++++++ 4 files changed, 138 insertions(+), 5 deletions(-) create mode 100644 languages/AspireUpdate-zh_TW.l10n.php create mode 100644 languages/AspireUpdate-zh_TW.mo create mode 100644 languages/AspireUpdate-zh_TW.po diff --git a/includes/class-admin-settings.php b/includes/class-admin-settings.php index b7d6fc0..8f051da 100644 --- a/includes/class-admin-settings.php +++ b/includes/class-admin-settings.php @@ -116,7 +116,7 @@ public function reset_admin_notice() { isset( $_GET['reset-success-nonce'] ) && wp_verify_nonce( sanitize_key( $_GET['reset-success-nonce'] ), 'aspireupdate-reset-success-nonce' ) ) { - echo '

Settings have been reset to default.

'; + echo '

' . esc_html__( 'Settings have been reset to default.', 'AspireUpdate' ) . '

'; delete_option( 'aspireupdate-reset' ); } } @@ -276,8 +276,8 @@ public function the_settings_page() { do_settings_sections( 'aspireupdate-settings' ); ?>

- - Reset + +

@@ -352,7 +352,7 @@ public function register_settings() { ), array( 'value' => 'other', - 'label' => 'Other', + 'label' => esc_html__( 'Other', 'AspireUpdate' ), 'require-api-key' => 'false', ), ), @@ -491,7 +491,7 @@ public function add_settings_field_callback( $args = array() ) { case 'api-key': ?> - +

NULL,'plural-forms'=>NULL,'language'=>'zh_TW','project-id-version'=>'AspireUpdate','pot-creation-date'=>'2024-11-02 12:34-0700','po-revision-date'=>'2024-11-02 12:40-0700','x-generator'=>'Poedit 3.5','messages'=>['Settings have been reset to default.'=>'設定已重設為預設值。','AspireUpdate Settings'=>'AspireUpdate 設定','Save Changes'=>'儲存設定','Reset'=>'重設','API Configuration'=>'API 組態','Enable AspireUpdate API Rewrites'=>'啟用 AspireUpdate API 重寫','API Host'=>'API 主機','Your new API Host.'=>'設定新的 API 主機。','Other'=>'其他主機','API Key'=>'API 金鑰','Provides an API key for repositories that may require authentication.'=>'為需要驗證的存放庫提供 API 金鑰。','API Debug Configuration'=>'API 偵錯組態','Enable Debug Mode'=>'啟用偵錯模式','Enables debug mode for the plugin.'=>'為外掛啟用偵錯模式。','Enable Debug Type'=>'啟用偵錯類型','Request'=>'要求','Response'=>'回應','String'=>'字串','Outputs the request URL and headers / response headers and body / string that is being rewritten.'=>'輸出經過重寫的要求網址、標頭、回應標頭、內容及字串。','Disable SSL Verification'=>'停用 SSL 驗證','Disables the verification of SSL to allow local testing.'=>'停用 SSL 驗證,便能在本機環境進行測試。','Generate API Key'=>'產生 API 金鑰','AspireUpdate'=>'AspireUpdate','https://aspirepress.org/'=>'https://aspirepress.org/','Update plugins and themes for WordPress.'=>'更新 WordPress 的外掛及佈景主題。','AspirePress'=>'AspirePress','https://docs.aspirepress.org/aspireupdate/'=>'https://docs.aspirepress.org/aspireupdate/']]; \ No newline at end of file diff --git a/languages/AspireUpdate-zh_TW.mo b/languages/AspireUpdate-zh_TW.mo new file mode 100644 index 0000000000000000000000000000000000000000..2700e329f2c2f00fce15c57efe7b8e6adb2208f6 GIT binary patch literal 2659 zcmb`HTWl0n7{^D!+p35t-lIo@i6P8%TQD|TF>)zFEU;;dXkxNXcTRT)W@m;uXWOk$ zZGlvvP|#9@mP<*4CA3@`!CFdr^3lZj;)BMR(Amq2#>5vB6aAkv)7_#xXyPQhzjMCt zJKybmGe0g_cvQjjT=@F~d>OwV?!q4)_ijab6x;yqJ=@cW>Dzg2Spw&poqH@ zTn6UAd%=_7E8qyY1pFEl`TPVf2Y&}=kkc|ai(r2X#fbPngJS<@$OwXn`j&zs&Wqq< zpazP*tOZ4V&EWIkK~TgS3wbk?e+vrxUqRt#!2^o21zZePfeBFL-4}8o1y(qVlcC)Kj)*xtrxd+8*7N zMOtKAV*}A`gQTf$P>+!+g7&zM&1hL9)GdzD0UhHW3PCKL6O)k^Dt4aCo>K&ldrq5a zPzIMW_DvjsAn!6>E7Sa|#nY$PrO-Xa^vRGA>E@#I@45m3=s;aCooFvo!t_}8CIbBtvD?4bCtD6iJbHp&S zF*1J!BJr(iBW*KYCW9s2Y7O8jUpQjH}I_ZZk_qGvURe zInsb*O37InpTl+u=EsDb1A&42puD;svCxiax+MZt>)zx zu~_BM_V`9QQ4>ZWNik)jh!_c~C})FrsU73O8cYUdB2ky1bqPCG zy`rWrkrPNlGPkgEu~o?xLPuFLp>yuxKzT_k%kY3urFq5*t>iMWlFPE&gzY$P5Yx^D zo0UPFL;~-IY)RQ>US$}NWIB#ss!??FPKx?m(#jgt5C+S&3_c}0SVR$DsKV7f`Mn3^ z((k%j>b*2iFgtlYfBv-8m3oepj$HniAKK#RxPS44;&%-d`bXt=vvmGgaeUuDCBIDf z&d%H{?!MsW&iB%Qs+c*xHmsJRy=?1R%f^3A3ZHx&40J#t6b_i=wG@J zs)PLVqr?7m-)*AO@G1Y)0j1DA<&O;H4-E$1=9`Nch5oaJ{?nmbS*^eK+U)g#unWcM zNxx^RaP5;)*P$S6;l!Texvu<`?!vVR|77Q_&aV9E@zR-bEd0S!`JR21?cUG)i(mSE z`~C4_vy&4tTK80Gs1xUd*1(rP{%O8{#-F;7?>js@GdM31VIM?N5E\n" +"Language-Team: Alex Lion \n" +"Language: zh_TW\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 3.5\n" +"X-Poedit-Basepath: ..\n" +"X-Poedit-Flags-xgettext: --add-comments=translators:\n" +"X-Poedit-WPHeader: aspire-update.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" + +#: includes/class-admin-settings.php:119 +msgid "Settings have been reset to default." +msgstr "設定已重設為預設值。" + +#: includes/class-admin-settings.php:272 +msgid "AspireUpdate Settings" +msgstr "AspireUpdate 設定" + +#: includes/class-admin-settings.php:279 +msgid "Save Changes" +msgstr "儲存設定" + +#: includes/class-admin-settings.php:280 +msgid "Reset" +msgstr "重設" + +#: includes/class-admin-settings.php:313 +msgid "API Configuration" +msgstr "API 組態" + +#: includes/class-admin-settings.php:324 +msgid "Enable AspireUpdate API Rewrites" +msgstr "啟用 AspireUpdate API 重寫" + +#: includes/class-admin-settings.php:337 +msgid "API Host" +msgstr "API 主機" + +#: includes/class-admin-settings.php:345 +msgid "Your new API Host." +msgstr "設定新的 API 主機。" + +#: includes/class-admin-settings.php:355 +msgid "Other" +msgstr "其他主機" + +#: includes/class-admin-settings.php:364 +msgid "API Key" +msgstr "API 金鑰" + +#: includes/class-admin-settings.php:372 +msgid "Provides an API key for repositories that may require authentication." +msgstr "為需要驗證的存放庫提供 API 金鑰。" + +#: includes/class-admin-settings.php:378 +msgid "API Debug Configuration" +msgstr "API 偵錯組態" + +#: includes/class-admin-settings.php:389 +msgid "Enable Debug Mode" +msgstr "啟用偵錯模式" + +#: includes/class-admin-settings.php:397 +msgid "Enables debug mode for the plugin." +msgstr "為外掛啟用偵錯模式。" + +#: includes/class-admin-settings.php:403 +msgid "Enable Debug Type" +msgstr "啟用偵錯類型" + +#: includes/class-admin-settings.php:412 +msgid "Request" +msgstr "要求" + +#: includes/class-admin-settings.php:413 +msgid "Response" +msgstr "回應" + +#: includes/class-admin-settings.php:414 +msgid "String" +msgstr "字串" + +#: includes/class-admin-settings.php:416 +msgid "" +"Outputs the request URL and headers / response headers and body / string " +"that is being rewritten." +msgstr "輸出經過重寫的要求網址、標頭、回應標頭、內容及字串。" + +#: includes/class-admin-settings.php:422 +msgid "Disable SSL Verification" +msgstr "停用 SSL 驗證" + +#: includes/class-admin-settings.php:431 +msgid "Disables the verification of SSL to allow local testing." +msgstr "停用 SSL 驗證,便能在本機環境進行測試。" + +#: includes/class-admin-settings.php:494 +msgid "Generate API Key" +msgstr "產生 API 金鑰" + +#. Plugin Name of the plugin/theme +msgid "AspireUpdate" +msgstr "AspireUpdate" + +#. Plugin URI of the plugin/theme +msgid "https://aspirepress.org/" +msgstr "https://aspirepress.org/" + +#. Description of the plugin/theme +msgid "Update plugins and themes for WordPress." +msgstr "更新 WordPress 的外掛及佈景主題。" + +#. Author of the plugin/theme +msgid "AspirePress" +msgstr "AspirePress" + +#. Author URI of the plugin/theme +msgid "https://docs.aspirepress.org/aspireupdate/" +msgstr "https://docs.aspirepress.org/aspireupdate/"