Skip to content

Commit

Permalink
updated po&mo files, loaded text domain
Browse files Browse the repository at this point in the history
  • Loading branch information
timoj committed Sep 18, 2019
1 parent 555de84 commit 4c26a7c
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 9 deletions.
4 changes: 2 additions & 2 deletions includes/checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ function wcwp_parcelshop_html()
$availableCarriers = implode(',', array_keys($defaultCarrierConfig));
}

$chooseParcelshopText = __('Click here to select a parcelshop');
$chosenParcelshopText = __('Pickup in parcelshop');
$chooseParcelshopText = __('Click here to select a parcelshop', 'woocommerce-wuunder');
$chosenParcelshopText = __('Pickup in parcelshop', 'woocommerce-wuunder');

echo <<<EOT
<script type="text/javascript" data-cfasync="false" src="$pluginPathJS"></script>
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion lang/de_DE.po → languages/woocommerce-wuunder-de_DE.po
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ msgstr ""
"Language-Team: \n"
"Language: de_DE\n"

#: wp-includes/rest-api/class-wp-rest-request.php:850
#: includes/checkout.php:45
msgid "Click here to select a parcelshop"
msgstr "Klicken Sie hier, um einen Paketshop auszuwählen"

#: includes/checkout.php:46
msgid "Pickup in parcelshop"
msgstr "Abholung im Paketshop"
File renamed without changes.
3 changes: 2 additions & 1 deletion lang/es_ES.po → languages/woocommerce-wuunder-es_ES.po
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ msgstr ""
"Language-Team: \n"
"Language: es_ES\n"

#: wp-includes/rest-api/class-wp-rest-request.php:850
#: includes/checkout.php:45
msgid "Click here to select a parcelshop"
msgstr "Haga clic aquí para seleccionar una tienda de paquetería"

#: includes/checkout.php:46
msgid "Pickup in parcelshop"
msgstr "Recogida en parcelshop"
File renamed without changes.
3 changes: 2 additions & 1 deletion lang/fr_FR.po → languages/woocommerce-wuunder-fr_FR.po
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ msgstr ""
"Language-Team: \n"
"Language: fr_FR\n"

#: wp-includes/rest-api/class-wp-rest-request.php:850
#: includes/checkout.php:45
msgid "Click here to select a parcelshop"
msgstr "Cliquez ici pour sélectionner un colis"

#: includes/checkout.php:46
msgid "Pickup in parcelshop"
msgstr "Ramassage en colis"
File renamed without changes.
3 changes: 2 additions & 1 deletion lang/nl_NL.po → languages/woocommerce-wuunder-nl_NL.po
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ msgstr ""
"Language-Team: \n"
"Language: nl_NL\n"


#: includes/checkout.php:45
msgid "Click here to select a parcelshop"
msgstr "Klik hier om een parcelshop te kiezen"

#: includes/checkout.php:46
msgid "Pickup in parcelshop"
msgstr "Ophalen in parcelshop"
File renamed without changes.
3 changes: 2 additions & 1 deletion lang/pt_PT.po → languages/woocommerce-wuunder-pt_PT.po
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ msgstr ""
"Language-Team: \n"
"Language: pt_PT\n"

#: wp-includes/rest-api/class-wp-rest-request.php:850
#: includes/checkout.php:45
msgid "Click here to select a parcelshop"
msgstr "Clique aqui para selecionar uma parcela"

#: includes/checkout.php:46
msgid "Pickup in parcelshop"
msgstr "Coleta em parcelshop"
7 changes: 5 additions & 2 deletions woocommerce-wuunder.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,14 @@ public function __construct() {
if ( version_compare( WC_VERSION, '3.7', '>=' )) {
add_action( 'wp_loaded', array(WC_Wuunder_Settings::class, 'wcwp_save_action_for_update_settings' ) );
}
// add_action('load-edit.php', array( &$this, 'webhook' ) );
add_action('plugins_loaded', array( &$this, 'wcwp_load_textdomain' ) );
}

public function wcwp_load_textdomain() {
load_plugin_textdomain( 'woocommerce-wuunder', false, WCWP_PLUGIN_DIR . '/lang/' );
$plugin_rel_path = basename( dirname( __FILE__ ) ) . '/languages/'; /* Relative to WP_PLUGIN_DIR */

$domain = 'woocommerce-wuunder';
load_plugin_textdomain( $domain, FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
}

public function wcwp_add_admin_styles_scripts() {
Expand Down

0 comments on commit 4c26a7c

Please sign in to comment.