Skip to content

Commit 34e3cec

Browse files
author
sgotre
committed
translation files
1 parent 17c2941 commit 34e3cec

15 files changed

Lines changed: 283 additions & 287 deletions

trunk/classes/AffilinetWidgetsApi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static function logon($username = null, $password = null)
4141
return $token;
4242
} catch (\SoapFault $e) {
4343
update_option('affilinet_product_widgets_webservice_login_is_correct', 'false', true);
44-
$errorMessage = __('Could not connect to affilinet API. Please recheck your Webservice Password and Publisher ID', 'affilinet-product-widgets');
44+
$errorMessage = __('errors.couldNotConnect', 'affilinet-product-widgets');
4545
AffilinetWidgetsHelper::displayHugeAdminMessage($errorMessage, 'error', 'fa-exclamation-triangle');
4646

4747
return false;
@@ -53,7 +53,7 @@ public static function logon($username = null, $password = null)
5353
*/
5454
public static function getMyWidgets()
5555
{
56-
$errorMessage = __('Could not connect to affilinet API. Please recheck your Webservice Password and Publisher ID', 'affilinet-product-widgets');
56+
$errorMessage = __('errors.couldNotConnect', 'affilinet-product-widgets');
5757

5858
try {
5959
$token = self::logon();

trunk/classes/AffilinetWidgetsPlugin.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function validate_credentials( $timestamp ) {
4848

4949
// check credentials
5050
if ( AffilinetWidgetsApi::logon() === false ) {
51-
add_settings_error( 'affilinet_product_widgets_publisher_webservice_password', '1', __( 'Invalid Webservice Password or Publisher ID ', 'affilinet-product-widgets' ) );
51+
add_settings_error( 'affilinet_product_widgets_publisher_webservice_password', '1', __( 'errors.invalidCredentials', 'affilinet-product-widgets' ) );
5252
update_option( 'affilinet_product_widgets_webservice_login_is_correct', 'false', true );
5353
wp_cache_delete( 'alloptions', 'options' );
5454

@@ -63,9 +63,9 @@ function admin_notice() {
6363
if ( get_option( 'affilinet_product_widgets_webservice_login_is_correct', 'false' ) === 'false' ) {
6464
?>
6565
<div class="notice notice-warning is-dismissible">
66-
<p><?php _e( '<strong>affilinet Widgets:</strong><br> Please make sure you have entered the correct Publisher ID and Publisher Webservice password.', 'affilinet-product-widgets' ); ?>
66+
<p><?php _e( 'errors.loginIncorrect', 'affilinet-product-widgets' ); ?>
6767
<a class="button"
68-
href="<?php echo admin_url( 'options-general.php?page=affilinet-product-widgets-settings' ); ?>"><?php _e( 'Check your settings.', 'affilinet-product-widgets' ); ?></a>
68+
href="<?php echo admin_url( 'options-general.php?page=affilinet-product-widgets-settings' ); ?>"><?php _e( 'errors.btnCheckSettings', 'affilinet-product-widgets' ); ?></a>
6969

7070
</p>
7171
</div>
@@ -112,7 +112,7 @@ public function admin_enqueue_scripts( $hook ) {
112112

113113
public function plugin_add_settings_link( $links ) {
114114

115-
$settings_link = '<a href="' . admin_url( 'options-general.php?page=affilinet-product-widgets-settings' ) . '">' . __( 'Settings' ) . '</a>';
115+
$settings_link = '<a href="' . admin_url( 'options-general.php?page=affilinet-product-widgets-settings' ) . '">' . __( 'admin.linkSettings', 'affilinet-product-widgets' ) . '</a>';
116116
array_push( $links, $settings_link );
117117
return $links;
118118
}

trunk/classes/AffilinetWidgetsWidget.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,22 @@ public function form($instance)
2626
$widget_id = $instance['widget_id'];
2727
?>
2828
<p>
29-
<label for="<?php echo $this->get_field_id('widget_id'); ?>"><?php _e('Select affilinet widget', 'affilinet-product-widgets'); ?></label>
29+
<label for="<?php echo $this->get_field_id('widget_id'); ?>"><?php _e('widgets.selectWidget', 'affilinet-product-widgets'); ?></label>
3030
<select class="widefat" id="<?php echo $this->get_field_id('widget_id'); ?>"
3131
name="<?php echo $this->get_field_name('widget_id'); ?>">
3232
<?php
3333
foreach (\AffilinetWidgetsApi::getMyWidgets() as $widget) {
3434
?>
3535
<option
3636
value="<?php echo $widget['id']; ?>"
37-
<?php selected($widget_id, $widget['id']); ?>><?php echo $widget['widgetName']; ?> ( <?php echo count($widget['products']) . ' '. __('Products');?>) </option>
37+
<?php selected($widget_id, $widget['id']); ?>><?php echo $widget['widgetName']; ?> ( <?php echo count($widget['products']) . ' '. _e('widgets.products', 'affilinet-product-widgets');?>) </option>
3838
<?php
3939
}
4040

4141

4242
?>
4343
</select>
44-
45-
<button type="button" style="display: none;" class="button-primary affilinet-browser-extension-open-widgets-page-on-click affilinet-browser-extension-show"><?php _e('Edit in Browser Extension', 'affilinet-product-widgets');?></button>
44+
<button type="button" style="display: none;" class="button-primary affilinet-browser-extension-open-widgets-page-on-click affilinet-browser-extension-show"><?php _e('admin.editInExtension', 'affilinet-product-widgets');?></button>
4645
</p>
4746
<?php
4847
}
68 Bytes
Binary file not shown.

trunk/languages/affilinet-product-widgets-de_DE.po

Lines changed: 36 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ msgid ""
22
msgstr ""
33
"Project-Id-Version: affilinet Product Widgets\n"
44
"POT-Creation-Date: 2018-02-07 20:42+0100\n"
5-
"PO-Revision-Date: 2018-02-07 20:45+0100\n"
5+
"PO-Revision-Date: 2018-02-19 13:22+0100\n"
66
"Last-Translator: \n"
77
"Language-Team: \n"
88
"Language: de_DE\n"
@@ -15,100 +15,96 @@ msgstr ""
1515
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
1616
"X-Poedit-WPHeader: wp-affilinet-widgets.php\n"
1717
"X-Poedit-SourceCharset: UTF-8\n"
18-
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
19-
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
20-
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18+
"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__;"
19+
"esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
2120
"X-Poedit-SearchPath-0: .\n"
2221
"X-Poedit-SearchPathExcluded-0: *.js\n"
2322

23+
2424
#: classes/AffilinetWidgetsApi.php:44 classes/AffilinetWidgetsApi.php:56
25-
msgid ""
26-
"Could not connect to affilinet API. Please recheck your Webservice Password "
27-
"and Publisher ID"
28-
msgstr ""
29-
"Verbindungsfehler: Bitte überprüfen Sie Ihr Webservice Passwort und Ihre "
30-
"Publisher ID"
25+
msgid "errors.couldNotConnect"
26+
msgstr "Verbindungsfehler: Bitte überprüfen Sie Ihr Webservice Passwort und Ihre Publisher ID"
3127

3228
#: classes/AffilinetWidgetsPlugin.php:44
33-
msgid "Invalid Webservice Password or Publisher ID "
29+
msgid "errors.invalidCredentials"
3430
msgstr "Ungültiges Webservice Passwort oder Publisher ID "
3531

3632
#: classes/AffilinetWidgetsPlugin.php:57
37-
msgid ""
38-
"<strong>affilinet Widgets:</strong><br> Please make sure you have entered "
39-
"the correct Publisher ID and Publisher Webservice password."
33+
msgid "errors.loginIncorrect"
4034
msgstr ""
41-
"<strong>affilinet Product Widgets:</strong><br> Bitte stellen Sie sicher, "
42-
"dass Sie die richtige Publisher ID und das korrekte Publisher Webservice "
43-
"Passwort eingeben haben."
35+
"<strong>affilinet Product Widgets:</strong><br> Bitte stellen Sie sicher, dass Sie die richtige Publisher ID und "
36+
"das korrekte Publisher Webservice Passwort eingeben haben."
4437

4538
#: classes/AffilinetWidgetsPlugin.php:58
46-
msgid "Check your settings."
39+
msgid "errors.btnCheckSettings"
4740
msgstr "Einstellungen prüfen."
4841

42+
43+
#: classes/AffilinetWidgetsplugin.php:115
44+
msgid "admin.linkSettings"
45+
msgstr "Einstellungen"
46+
47+
4948
#: classes/AffilinetWidgetsWidget.php:29
50-
msgid "Select affilinet widget"
49+
msgid "widgets.selectWidget"
5150
msgstr "Product Widget auswählen"
5251

5352
#: classes/AffilinetWidgetsWidget.php:37
54-
msgid "Products"
53+
msgid "widgets.products"
5554
msgstr "Produkte"
5655

5756
#: classes/AffilinetWidgetsWidget.php:45
58-
msgid "Edit in Browser Extension"
57+
msgid "admin.editInExtension"
5958
msgstr "In Browser Extension bearbeiten"
6059

6160
#. Plugin Name of the plugin/theme
6261
#: views/settings.php:2
63-
msgid "affilinet Product Widgets"
62+
msgid "admin.settingsPageTitle"
6463
msgstr "affilinet Product Widgets"
6564

6665
#: views/settings.php:8
67-
msgid "Settings"
66+
msgid "admin.headlineSettings"
6867
msgstr "Einstellungen"
6968

7069
#: views/settings.php:19
71-
msgid "Publisher ID"
70+
msgid "admin.labelPublisherId"
7271
msgstr "Publisher ID"
7372

7473
#: views/settings.php:24
75-
msgid "Publisher Webservice Password"
74+
msgid "admin.labelPassword"
7675
msgstr "Publisher Webservice Passwort"
7776

7877
#: views/settings.php:30
79-
msgid "Webservice Password"
78+
msgid "admin.linkPassword"
8079
msgstr "Webservice Passwort"
8180

8281
#: views/settings.php:39
83-
msgid "Save"
82+
msgid "admin.btnSave"
8483
msgstr "Speichern"
8584

8685
#: views/settings.php:49
87-
msgid "Install the affilinet Browser Extension"
86+
msgid "admin.headlineInstallExtension"
8887
msgstr "Installieren Sie die affilinet Browser Extension"
8988

9089
#: views/settings.php:51
91-
msgid ""
92-
"Create and manage your Product Widgets within the affilinet Browser Extension"
93-
msgstr ""
94-
"Erstellen und bearbeiten Sie Ihre Product Widgets in der affilinet Browser "
95-
"Erweiterung"
90+
msgid "admin.extensionText"
91+
msgstr "Erstellen und bearbeiten Sie Ihre Product Widgets in der affilinet Browser Erweiterung"
9692

9793
#: views/settings.php:99
98-
msgid "Browser Extension detected"
94+
msgid "admin.extensionDetected"
9995
msgstr "Browser Extension erkannt"
10096

10197
#: views/settings.php:103
102-
msgid "Open Browser Extension"
98+
msgid "admin.openExtension"
10399
msgstr "Browser Extension öffnen"
104100

105101
#. Plugin URI of the plugin/theme
106102
msgid "https://www.affili.net/de/publisher/tools/influencer-web-extension"
107103
msgstr "https://www.affili.net/de/publisher/tools/influencer-web-extension"
108104

109105
#. Description of the plugin/theme
110-
msgid "A brief description of the Plugin."
111-
msgstr "Beschreibung."
106+
msgid "The plugin allows you simple integration of affilinet Product Widgets into your WordPress posts and sidebar."
107+
msgstr "The plugin allows you simple integration of affilinet Product Widgets into your WordPress posts and sidebar."
112108

113109
#. Author of the plugin/theme
114110
msgid "affilinet"
@@ -118,9 +114,6 @@ msgstr "affilinet"
118114
msgid "https://www.affili.net/"
119115
msgstr "https://www.affili.net/"
120116

121-
#~ msgid ""
122-
#~ "Please make sure you have entered the correct PublisherID and Webservice "
123-
#~ "password."
124-
#~ msgstr ""
125-
#~ "Bitte überprüfen Sie die hinterlegte Publisher ID und das Webservice "
126-
#~ "Passwort."
117+
#. Plugin Name of the plugin/theme
118+
msgid "affilinet Product Widgets"
119+
msgstr "affilinet Product Widgets"
2.72 KB
Binary file not shown.
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
msgid ""
2+
msgstr ""
3+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
4+
"Project-Id-Version: affilinet Product Widgets\n"
5+
"POT-Creation-Date: 2018-02-07 20:42+0100\n"
6+
"PO-Revision-Date: 2018-02-19 13:22+0100\n"
7+
"Language-Team: \n"
8+
"MIME-Version: 1.0\n"
9+
"Content-Type: text/plain; charset=UTF-8\n"
10+
"Content-Transfer-Encoding: 8bit\n"
11+
"X-Generator: Poedit 2.0.6\n"
12+
"X-Poedit-Basepath: ..\n"
13+
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
14+
"X-Poedit-WPHeader: wp-affilinet-widgets.php\n"
15+
"X-Poedit-SourceCharset: UTF-8\n"
16+
"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;"
17+
"_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18+
"Last-Translator: \n"
19+
"Language: en\n"
20+
"X-Poedit-SearchPath-0: .\n"
21+
"X-Poedit-SearchPathExcluded-0: *.js\n"
22+
23+
#: classes/AffilinetWidgetsApi.php:44 classes/AffilinetWidgetsApi.php:56
24+
msgid "errors.couldNotConnect"
25+
msgstr "Could not connect to affilinet API. Please recheck your Webservice Password and Publisher ID"
26+
27+
#: classes/AffilinetWidgetsPlugin.php:44
28+
msgid "errors.invalidCredentials"
29+
msgstr "Invalid Webservice Password or Publisher ID "
30+
31+
#: classes/AffilinetWidgetsPlugin.php:57
32+
msgid "errors.loginIncorrect"
33+
msgstr "<strong>affilinet Widgets:</strong><br> Please make sure you have entered the correct Publisher ID and Publisher Webservice password."
34+
35+
#: classes/AffilinetWidgetsPlugin.php:58
36+
msgid "errors.btnCheckSettings"
37+
msgstr "Check your settings."
38+
39+
40+
#: classes/AffilinetWidgetsplugin.php:115
41+
msgid "admin.linkSettings"
42+
msgstr "Settings"
43+
44+
45+
#: classes/AffilinetWidgetsWidget.php:29
46+
msgid "widgets.selectWidget"
47+
msgstr "Select affilinet widget"
48+
49+
#: classes/AffilinetWidgetsWidget.php:37
50+
msgid "widgets.products"
51+
msgstr "Products"
52+
53+
#: classes/AffilinetWidgetsWidget.php:45
54+
msgid "admin.editInExtension"
55+
msgstr "Edit in Browser Extension"
56+
57+
#: views/settings.php:2
58+
msgid "admin.settingsPageTitle"
59+
msgstr "affilinet Product Widgets"
60+
61+
#: views/settings.php:8
62+
msgid "admin.headlineSettings"
63+
msgstr "Settings"
64+
65+
#: views/settings.php:19
66+
msgid "admin.labelPublisherId"
67+
msgstr "Publisher ID"
68+
69+
#: views/settings.php:24
70+
msgid "admin.labelPassword"
71+
msgstr "Publisher Webservice Password"
72+
73+
#: views/settings.php:30
74+
msgid "admin.linkPassword"
75+
msgstr "Webservice Password"
76+
77+
#: views/settings.php:39
78+
msgid "admin.btnSave"
79+
msgstr "Save"
80+
81+
#: views/settings.php:49
82+
msgid "admin.headlineInstallExtension"
83+
msgstr "Install the affilinet Browser Extension"
84+
85+
#: views/settings.php:51
86+
msgid "admin.extensionText"
87+
msgstr "Create and manage your Product Widgets within the affilinet Browser Extension "
88+
89+
#: views/settings.php:99
90+
msgid "admin.extensionDetected"
91+
msgstr "Browser Extension detected"
92+
93+
#: views/settings.php:103
94+
msgid "admin.openExtension"
95+
msgstr "Open Browser Extension"
96+
97+
#. Plugin URI of the plugin/theme
98+
msgid "https://www.affili.net/de/publisher/tools/influencer-web-extension"
99+
msgstr "https://www.affili.net/de/publisher/tools/influencer-web-extension"
100+
101+
#. Description of the plugin/theme
102+
msgid "The plugin allows you simple integration of affilinet Product Widgets into your WordPress posts and sidebar."
103+
msgstr "The plugin allows you simple integration of affilinet Product Widgets into your WordPress posts and sidebar."
104+
105+
#. Author of the plugin/theme
106+
msgid "affilinet"
107+
msgstr "affilinet"
108+
109+
#. Author URI of the plugin/theme
110+
msgid "https://www.affili.net/"
111+
msgstr "https://www.affili.net/"
112+
113+
#. Plugin Name of the plugin/theme
114+
msgid "affilinet Product Widgets"
115+
msgstr "affilinet Product Widgets"
2.04 KB
Binary file not shown.

0 commit comments

Comments
 (0)