Skip to content

Commit

Permalink
Update & rebuild language files
Browse files Browse the repository at this point in the history
  • Loading branch information
mallardduck committed Dec 31, 2017
1 parent 3bc52de commit 71e5c3a
Show file tree
Hide file tree
Showing 28 changed files with 156 additions and 294 deletions.
30 changes: 15 additions & 15 deletions hello-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Version: 1.3.1
* License: GPL-2.0
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: hello-server
* Text Domain: lw-hello-server
* Requires WP: 4.4
* Domain Path: languages
* @package Hello_Server
Expand Down Expand Up @@ -58,7 +58,7 @@
* @return void
*/
function lw_load_plugins_textdomain() {
load_plugin_textdomain( 'hello-server', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
load_plugin_textdomain( 'lw-hello-server', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
}
add_action( 'plugins_loaded', 'lw_load_plugins_textdomain' );

Expand Down Expand Up @@ -89,7 +89,7 @@ function lw_hello_server_get_info() {
global $wpdb;

// Get our software name with a fallback.
$svsoft = ! empty( $_SERVER['SERVER_SOFTWARE'] ) ? sanitize_text_field( wp_unslash( $_SERVER['SERVER_SOFTWARE'] ) ) : __( 'unknown', 'hello-server' );
$svsoft = ! empty( $_SERVER['SERVER_SOFTWARE'] ) ? sanitize_text_field( wp_unslash( $_SERVER['SERVER_SOFTWARE'] ) ) : __( 'unknown', 'lw-hello-server' );

// Build my PHP version string.
$phpver = absint( PHP_MAJOR_VERSION ) . '.' . absint( PHP_MINOR_VERSION ) . '.' . absint( PHP_RELEASE_VERSION );
Expand Down Expand Up @@ -209,9 +209,9 @@ function lw_load_hello_server( WP_Admin_Bar $wp_admin_bar ) {
$wp_admin_bar->add_node(
array(
'id' => 'lw-hello-server',
'title' => '<span class="ab-icon ab-lw-icon"></span><span class="ab-label ab-lw-label">' . esc_html__( 'Hello Server', 'hello-server' ) . '</span>',
'title' => '<span class="ab-icon ab-lw-icon"></span><span class="ab-label ab-lw-label">' . esc_html__( 'Hello Server', 'lw-hello-server' ) . '</span>',
'meta' => array(
'title' => esc_html__( 'View the current server info.', 'hello-server' ),
'title' => esc_html__( 'View the current server info.', 'lw-hello-server' ),
'class' => 'lw-admin-parent-menu',
),
)
Expand All @@ -221,11 +221,11 @@ function lw_load_hello_server( WP_Admin_Bar $wp_admin_bar ) {
$wp_admin_bar->add_node(
array(
'id' => 'lw-host-server',
'title' => '<span class="ab-lw-inner-label">' . esc_html__( "Hello, I'm:", 'hello-server' ) . ' </span><span class="ab-lw-inner-data" itemprop="server-name">' . esc_html( $info['hostname'] ) . '</span>',
'title' => '<span class="ab-lw-inner-label">' . esc_html__( "Hello, I'm:", 'lw-hello-server' ) . ' </span><span class="ab-lw-inner-data" itemprop="server-name">' . esc_html( $info['hostname'] ) . '</span>',
'position' => 0,
'parent' => 'lw-hello-server',
'meta' => array(
'title' => esc_html__( 'View the current server hostname.', 'hello-server' ),
'title' => esc_html__( 'View the current server hostname.', 'lw-hello-server' ),
'class' => 'lw-admin-child-menu',
),
)
Expand All @@ -235,11 +235,11 @@ function lw_load_hello_server( WP_Admin_Bar $wp_admin_bar ) {
$wp_admin_bar->add_node(
array(
'id' => 'lw-ip-address',
'title' => '<span class="ab-lw-inner-label">' . esc_html__( 'IP Address:', 'hello-server' ) . ' </span><span class="ab-lw-inner-data" itemprop="ip-address">' . esc_html( $info['address'] ) . '</span>',
'title' => '<span class="ab-lw-inner-label">' . esc_html__( 'IP Address:', 'lw-hello-server' ) . ' </span><span class="ab-lw-inner-data" itemprop="ip-address">' . esc_html( $info['address'] ) . '</span>',
'position' => 1,
'parent' => 'lw-hello-server',
'meta' => array(
'title' => esc_html__( 'View the current server IP address.', 'hello-server' ),
'title' => esc_html__( 'View the current server IP address.', 'lw-hello-server' ),
'class' => 'lw-admin-child-menu',
),
)
Expand All @@ -249,11 +249,11 @@ function lw_load_hello_server( WP_Admin_Bar $wp_admin_bar ) {
$wp_admin_bar->add_node(
array(
'id' => 'lw-php-version',
'title' => '<span class="ab-lw-inner-label">' . esc_html__( 'PHP Version:', 'hello-server' ) . ' </span><span class="ab-lw-inner-data" itemprop="php-version">' . esc_html( $info['phpvers'] ) . '</span>',
'title' => '<span class="ab-lw-inner-label">' . esc_html__( 'PHP Version:', 'lw-hello-server' ) . ' </span><span class="ab-lw-inner-data" itemprop="php-version">' . esc_html( $info['phpvers'] ) . '</span>',
'position' => 2,
'parent' => 'lw-hello-server',
'meta' => array(
'title' => esc_html__( 'View the current PHP version.', 'hello-server' ),
'title' => esc_html__( 'View the current PHP version.', 'lw-hello-server' ),
'class' => 'lw-admin-child-menu',
),
)
Expand All @@ -263,11 +263,11 @@ function lw_load_hello_server( WP_Admin_Bar $wp_admin_bar ) {
$wp_admin_bar->add_node(
array(
'id' => 'lw-database-version',
'title' => '<span class="ab-lw-inner-label">' . esc_html__( 'DB Version:', 'hello-server' ) . ' </span><span class="ab-lw-inner-data" itemprop="database-version">' . esc_html( $info['dbvers'] ) . '</span>',
'title' => '<span class="ab-lw-inner-label">' . esc_html__( 'DB Version:', 'lw-hello-server' ) . ' </span><span class="ab-lw-inner-data" itemprop="database-version">' . esc_html( $info['dbvers'] ) . '</span>',
'position' => 3,
'parent' => 'lw-hello-server',
'meta' => array(
'title' => esc_html__( 'View the current database version.', 'hello-server' ),
'title' => esc_html__( 'View the current database version.', 'lw-hello-server' ),
'class' => 'lw-admin-child-menu',
),
)
Expand All @@ -277,11 +277,11 @@ function lw_load_hello_server( WP_Admin_Bar $wp_admin_bar ) {
$wp_admin_bar->add_node(
array(
'id' => 'lw-server-software',
'title' => '<span class="ab-lw-inner-label">' . esc_html__( 'Software:', 'hello-server' ) . ' </span><span class="ab-lw-inner-data" itemprop="server-software">' . esc_html( $info['software'] ) . '</span>',
'title' => '<span class="ab-lw-inner-label">' . esc_html__( 'Software:', 'lw-hello-server' ) . ' </span><span class="ab-lw-inner-data" itemprop="server-software">' . esc_html( $info['software'] ) . '</span>',
'position' => 4,
'parent' => 'lw-hello-server',
'meta' => array(
'title' => esc_html__( 'View the current server software.', 'hello-server' ),
'title' => esc_html__( 'View the current server software.', 'lw-hello-server' ),
'class' => 'lw-admin-child-menu',
),
)
Expand Down
Binary file removed languages/hello-server-en_AU.mo
Binary file not shown.
Binary file removed languages/hello-server-en_US.mo
Binary file not shown.
85 changes: 0 additions & 85 deletions languages/hello-server.pot

This file was deleted.

Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ msgid ""
msgstr ""
"Project-Id-Version: Hello Server by Liquid Web 1.3.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hello-server\n"
"POT-Creation-Date: 2017-06-26 15:24+0000\n"
"POT-Creation-Date: 2017-12-31 19:09+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2017-06-26 15:25+0000\n"
"Last-Translator: admin <dpock@liquidweb.com>\n"
"PO-Revision-Date: 2017-12-31 19:09+0000\n"
"Last-Translator: mallardduck <dpock32509@gmail.com>\n"
"Language-Team: Danish\n"
"Language: da-DK\n"
"Plural-Forms: nplurals=2; plural=n != 1\n"
Expand Down Expand Up @@ -53,25 +53,13 @@ msgstr ""
msgid "View the current server software."
msgstr ""

#. Plugin URI of the plugin/theme
msgid "https://wordpress.org/plugins/hello-server"
msgstr ""

#. Description of the plugin/theme
msgid ""
"This is a simple plugin that tells you what server your WordPress is running "
"on. It's super useful for when you run WordPress in a clustered, or mulit-"
"server, environment."
msgstr ""

#. Author of the plugin/theme
msgid "Dan Pock (Liquid Web)"
msgstr ""

#. Author URI of the plugin/theme
msgid "https://www.liquidweb.com"
msgstr ""

#: hello-server.php:92
msgid "unknown"
msgstr "ukendt"
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ msgid ""
msgstr ""
"Project-Id-Version: Hello Server by Liquid Web 1.3.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hello-server\n"
"POT-Creation-Date: 2017-06-26 15:25+0000\n"
"POT-Creation-Date: 2017-12-31 19:08+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2017-06-26 15:26+0000\n"
"Last-Translator: admin <dpock@liquidweb.com>\n"
"PO-Revision-Date: 2017-12-31 19:09+0000\n"
"Last-Translator: mallardduck <dpock32509@gmail.com>\n"
"Language-Team: German\n"
"Language: de-DE\n"
"Plural-Forms: nplurals=2; plural=n != 1\n"
Expand Down Expand Up @@ -49,18 +49,6 @@ msgstr ""
msgid "View the current server software."
msgstr ""

#. Plugin URI of the plugin/theme
msgid "https://wordpress.org/plugins/hello-server"
msgstr ""

#. Author of the plugin/theme
msgid "Dan Pock (Liquid Web)"
msgstr ""

#. Author URI of the plugin/theme
msgid "https://www.liquidweb.com"
msgstr ""

#: hello-server.php:214
#, fuzzy
msgid "View the current server info."
Expand Down
Binary file not shown.
18 changes: 3 additions & 15 deletions languages/hello-server-el.po → languages/lw-hello-server-el.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ msgid ""
msgstr ""
"Project-Id-Version: Hello Server by Liquid Web 1.3.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hello-server\n"
"POT-Creation-Date: 2017-06-26 15:26+0000\n"
"POT-Creation-Date: 2017-12-31 19:09+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2017-06-26 15:26+0000\n"
"Last-Translator: admin <dpock@liquidweb.com>\n"
"PO-Revision-Date: 2017-12-31 19:09+0000\n"
"Last-Translator: mallardduck <dpock32509@gmail.com>\n"
"Language-Team: Greek\n"
"Language: el\n"
"Plural-Forms: nplurals=2; plural=n != 1\n"
Expand Down Expand Up @@ -53,25 +53,13 @@ msgstr ""
msgid "View the current server software."
msgstr ""

#. Plugin URI of the plugin/theme
msgid "https://wordpress.org/plugins/hello-server"
msgstr ""

#. Description of the plugin/theme
msgid ""
"This is a simple plugin that tells you what server your WordPress is running "
"on. It's super useful for when you run WordPress in a clustered, or mulit-"
"server, environment."
msgstr ""

#. Author of the plugin/theme
msgid "Dan Pock (Liquid Web)"
msgstr ""

#. Author URI of the plugin/theme
msgid "https://www.liquidweb.com"
msgstr ""

#: hello-server.php:212
#, fuzzy
msgid "Hello Server"
Expand Down
Binary file added languages/lw-hello-server-en_AU.mo
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ msgid ""
msgstr ""
"Project-Id-Version: Hello Server by Liquid Web 1.3.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hello-server\n"
"POT-Creation-Date: 2017-06-26 15:27+0000\n"
"POT-Creation-Date: 2017-12-31 19:08+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2017-06-26 15:27+0000\n"
"Last-Translator: admin <dpock@liquidweb.com>\n"
"PO-Revision-Date: 2017-12-31 19:08+0000\n"
"Last-Translator: mallardduck <dpock32509@gmail.com>\n"
"Language-Team: English (Australia)\n"
"Language: en-AU\n"
"Plural-Forms: nplurals=2; plural=n != 1\n"
Expand All @@ -19,7 +19,7 @@ msgstr ""

#: hello-server.php:212
msgid "Hello Server"
msgstr ""
msgstr "G'day Server"

#: hello-server.php:214
msgid "View the current server info."
Expand Down Expand Up @@ -61,25 +61,13 @@ msgstr ""
msgid "View the current server software."
msgstr ""

#. Plugin URI of the plugin/theme
msgid "https://wordpress.org/plugins/hello-server"
msgstr ""

#. Description of the plugin/theme
msgid ""
"This is a simple plugin that tells you what server your WordPress is running "
"on. It's super useful for when you run WordPress in a clustered, or mulit-"
"server, environment."
msgstr ""

#. Author of the plugin/theme
msgid "Dan Pock (Liquid Web)"
msgstr ""

#. Author URI of the plugin/theme
msgid "https://www.liquidweb.com"
msgstr ""

#: hello-server.php:224
msgid "Hello, I'm:"
msgstr "G'day, I'm: "
Expand Down
Binary file added languages/lw-hello-server-en_US.mo
Binary file not shown.
Loading

0 comments on commit 71e5c3a

Please sign in to comment.