Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
JOTAKI, Taisuke committed Feb 22, 2020
1 parent cb350f2 commit 3c229eb
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 6 deletions.
14 changes: 13 additions & 1 deletion includes/class-options-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,20 @@ public function get_what_site_button_form( $site_env_type, $what_site ) {

$parts = new Class_Options_Parts();

if ( 'production' === $site_env_type ) {
$server_type = __( 'production', 'the-2nd-toolbar' );
} elseif ( 'staging' === $site_env_type ) {
$server_type = __( 'staging', 'the-2nd-toolbar' );
} elseif ( 'development' === $site_env_type ) {
$server_type = __( 'development', 'the-2nd-toolbar' );
} elseif ( 'local' === $site_env_type ) {
$server_type = __( 'local', 'the-2nd-toolbar' );
} else {
$server_type = __( 'unknown', 'the-2nd-toolbar' );
}

$server_type_str_format = __( 'The %s server.', 'the-2nd-toolbar' );
$server_type_str = sprintf( $server_type_str_format, $site_env_type );
$server_type_str = sprintf( $server_type_str_format, $server_type );

$form_output = sprintf(
$parts->get_radio_button_form_template(),
Expand Down
Binary file modified languages/the-2nd-toolbar-ja.mo
Binary file not shown.
30 changes: 25 additions & 5 deletions languages/the-2nd-toolbar-ja.po
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: The 2nd toolbar\n"
"POT-Creation-Date: 2020-02-22 13:53+0900\n"
"PO-Revision-Date: 2020-02-22 13:53+0900\n"
"POT-Creation-Date: 2020-02-22 14:30+0900\n"
"PO-Revision-Date: 2020-02-22 14:31+0900\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: ja\n"
Expand Down Expand Up @@ -78,16 +78,36 @@ msgstr "位置設定"
msgid "Choose what position the toolbar appear."
msgstr "ツールバーの表示位置を選択します。"

#: includes/class-options-page.php:508
#: includes/class-options-page.php:509
msgid "production"
msgstr "本番"

#: includes/class-options-page.php:511
msgid "staging"
msgstr "ステージング"

#: includes/class-options-page.php:513
msgid "development"
msgstr "開発"

#: includes/class-options-page.php:515
msgid "local"
msgstr "ローカル"

#: includes/class-options-page.php:517
msgid "unknown"
msgstr "不明"

#: includes/class-options-page.php:520
#, php-format
msgid "The %s server."
msgstr "%sサーバー"

#: includes/class-options-page.php:538
#: includes/class-options-page.php:550
msgid "Where Am I Now Setting"
msgstr "Where Am I Now 設定"

#: includes/class-options-page.php:543
#: includes/class-options-page.php:555
msgid "Choose what server your WordPress running on."
msgstr "WordPress が実行されているサーバーを選択してください。"

Expand Down

0 comments on commit 3c229eb

Please sign in to comment.