Skip to content

Commit 6c36ef0

Browse files
authored
Merge pull request #32 from newfold-labs/update/PRESS10-207
Update translations
2 parents 53ce6d1 + 59b3817 commit 6c36ef0

29 files changed

+236
-23
lines changed

includes/SSO_CLI.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ public function __invoke( $args, $assoc_args ) {
7171
if ( isset( $assoc_args['url-only'] ) ) {
7272
\WP_CLI::log( $link );
7373
} else {
74-
$this->success( 'Single-use login link valid for ' . $this->expiry_min . ' minutes' );
74+
/* Translators: %d number */
75+
$this->success( sprintf( __( 'Single-use login link valid for %d minutes', 'wp-module-sso' ), $this->expiry_min ) );
7576
$this->colorize_log( $link, 'underline' );
7677
}
77-
7878
}
7979

8080
/**
@@ -142,7 +142,7 @@ protected function create_salt_nonce_and_hash() {
142142
}
143143

144144

145-
/**
145+
/**
146146
* Helper to format data into tables.
147147
*
148148
* By default, the method creates simple $key => $value tables.
@@ -193,7 +193,7 @@ protected function bold_heading( $message, $emoji = '' ) {
193193
* @param string $message
194194
*/
195195
protected function success( $message, $silent = false ) {
196-
$pre_ = $silent ? '' : 'Success: ';
196+
$pre_ = $silent ? '' : __( 'Success: ', 'wp-module-sso' );
197197
$this->colorize_log( $pre_ . $message, '2', 'k', '' );
198198
}
199199

@@ -226,7 +226,7 @@ protected function warning( $message ) {
226226
* @throws \WP_CLI\ExitException
227227
*/
228228
protected function error( $message, $silent = false, $halt = true, $code = 400 ) {
229-
$pre_ = $silent ? '' : 'Error: ';
229+
$pre_ = $silent ? '' : __( 'Error: ', 'wp-module-sso' );
230230
$this->colorize_log( $pre_ . $message, '1', 'W', '🛑️' );
231231
if ( $halt ) {
232232
WP_CLI::halt( $code );
@@ -275,7 +275,7 @@ protected function log_to_json( $data ) {
275275
} elseif ( is_array( json_decode( $data, true ) ) ) {
276276
\WP_CLI::log( $data );
277277
} else {
278-
$this->error( 'Provided $data wasn\'t valid array or JSON string.' );
278+
$this->error( __( 'Provided $data wasn\'t valid array or JSON string.', 'wp-module-sso' ) );
279279
}
280280
}
281281

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?php
2-
return ['domain'=>'wp-module-sso','plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'de_DE','project-id-version'=>'newfold-labswp-module-staging','pot-creation-date'=>'2025-02-13T09:55:55+00:00','po-revision-date'=>'2025-02-19 14:21','x-generator'=>'WP-CLI 2.11.0','messages'=>['SSO'=>'SSO','Sorry, you are not allowed to access this endpoint.'=>'Sie sind leider nicht berechtigt, auf diesen Endpunkt zuzugreifen.']];
2+
return ['domain'=>'wp-module-sso','plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'de_DE','project-id-version'=>'newfold-labswp-module-staging','pot-creation-date'=>'2025-02-13T09:55:55+00:00','po-revision-date'=>'2025-02-19 14:21','x-generator'=>'WP-CLI 2.11.0','messages'=>['SSO'=>'SSO','Single-use login link valid for %d minutes'=>'Einmaliger Anmeldelink gültig für %d Minuten','Success: '=>'Erfolg: ','Error: '=>'Fehler: ','Provided $data wasn\'t valid array or JSON string.'=>'Die bereitgestellte $data war kein gültiges Array oder keine gültige JSON-Zeichenkette.','Sorry, you are not allowed to access this endpoint.'=>'Entschuldigung, Sie sind nicht berechtigt, auf diesen Endpunkt zuzugreifen.']];

languages/wp-module-sso-de_DE.mo

339 Bytes
Binary file not shown.

languages/wp-module-sso-de_DE.po

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ msgstr ""
99
"Content-Transfer-Encoding: 8bit\n"
1010
"POT-Creation-Date: 2025-02-13T09:55:55+00:00\n"
1111
"PO-Revision-Date: 2025-02-19 14:21\n"
12+
"Language: de_DE\n"
1213
"X-Generator: WP-CLI 2.11.0\n"
1314
"X-Domain: wp-module-sso\n"
1415
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -17,13 +18,28 @@ msgstr ""
1718
"X-Crowdin-Language: de\n"
1819
"X-Crowdin-File: wp-module-sso.pot\n"
1920
"X-Crowdin-File-ID: 22\n"
20-
"Language: de_DE\n"
2121

2222
#: bootstrap.php:19
2323
msgid "SSO"
2424
msgstr "SSO"
2525

26+
#. Translators: %d number
27+
#: includes/SSO_CLI.php:75
28+
msgid "Single-use login link valid for %d minutes"
29+
msgstr "Einmaliger Anmeldelink gültig für %d Minuten"
30+
31+
#: includes/SSO_CLI.php:196
32+
msgid "Success: "
33+
msgstr "Erfolg: "
34+
35+
#: includes/SSO_CLI.php:229
36+
msgid "Error: "
37+
msgstr "Fehler: "
38+
39+
#: includes/SSO_CLI.php:278
40+
msgid "Provided $data wasn't valid array or JSON string."
41+
msgstr "Die bereitgestellte $data war kein gültiges Array oder keine gültige JSON-Zeichenkette."
42+
2643
#: includes/SSO_REST_Controller.php:69
2744
msgid "Sorry, you are not allowed to access this endpoint."
28-
msgstr "Sie sind leider nicht berechtigt, auf diesen Endpunkt zuzugreifen."
29-
45+
msgstr "Entschuldigung, Sie sind nicht berechtigt, auf diesen Endpunkt zuzugreifen."
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?php
2-
return ['domain'=>'wp-module-sso','plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'en_AU','project-id-version'=>'','pot-creation-date'=>'2025-02-13T10:59:28+00:00','po-revision-date'=>'2025-02-13 19:38+0530','x-generator'=>'WP-CLI 2.11.0','messages'=>['SSO'=>'SSO','Sorry, you are not allowed to access this endpoint.'=>'Sorry, you are not allowed to access this endpoint.']];
2+
return ['domain'=>'wp-module-sso','plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'en_AU','project-id-version'=>'','pot-creation-date'=>'2025-02-13T10:59:28+00:00','po-revision-date'=>'2025-02-13 19:38+0530','x-generator'=>'WP-CLI 2.11.0','messages'=>['SSO'=>'SSO','Sorry, you are not allowed to access this endpoint.'=>'Sorry, you are not allowed to access this endpoint.','Single-use login link valid for %d minutes'=>'Single-use login link valid for %d minutes','Success: '=>'Success: ','Error: '=>'Error: ','Provided $data wasn\'t valid array or JSON string.'=>'Provided $data wasn\'t valid array or JSON string.']];

languages/wp-module-sso-en_AU.mo

286 Bytes
Binary file not shown.

languages/wp-module-sso-en_AU.po

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ msgstr ""
99
"Content-Transfer-Encoding: 8bit\n"
1010
"POT-Creation-Date: 2025-02-13T10:59:28+00:00\n"
1111
"PO-Revision-Date: 2025-02-13 19:38+0530\n"
12+
"Language: en_AU\n"
1213
"X-Generator: WP-CLI 2.11.0\n"
1314
"X-Domain: wp-module-sso\n"
14-
"Language: en_AU\n"
1515
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
1616

1717
#: bootstrap.php:19
@@ -21,3 +21,20 @@ msgstr "SSO"
2121
#: includes/SSO_REST_Controller.php:69
2222
msgid "Sorry, you are not allowed to access this endpoint."
2323
msgstr "Sorry, you are not allowed to access this endpoint."
24+
25+
#. Translators: %d number
26+
#: includes/SSO_CLI.php:75
27+
msgid "Single-use login link valid for %d minutes"
28+
msgstr "Single-use login link valid for %d minutes"
29+
30+
#: includes/SSO_CLI.php:196
31+
msgid "Success: "
32+
msgstr "Success: "
33+
34+
#: includes/SSO_CLI.php:229
35+
msgid "Error: "
36+
msgstr "Error: "
37+
38+
#: includes/SSO_CLI.php:278
39+
msgid "Provided $data wasn't valid array or JSON string."
40+
msgstr "Provided $data wasn't valid array or JSON string."
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?php
2-
return ['domain'=>'wp-module-sso','plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'en_GB','project-id-version'=>'','pot-creation-date'=>'2025-02-13T10:59:28+00:00','po-revision-date'=>'2025-02-13 19:38+0530','x-generator'=>'WP-CLI 2.11.0','messages'=>['SSO'=>'SSO','Sorry, you are not allowed to access this endpoint.'=>'Sorry, you are not allowed to access this endpoint.']];
2+
return ['domain'=>'wp-module-sso','plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'en_GB','project-id-version'=>'','pot-creation-date'=>'2025-02-13T10:59:28+00:00','po-revision-date'=>'2025-02-13 19:38+0530','x-generator'=>'WP-CLI 2.11.0','messages'=>['SSO'=>'SSO','Sorry, you are not allowed to access this endpoint.'=>'Sorry, you are not allowed to access this endpoint.','Single-use login link valid for %d minutes'=>'Single-use login link valid for %d minutes','Success: '=>'Success: ','Error: '=>'Error: ','Provided $data wasn\'t valid array or JSON string.'=>'Provided $data wasn\'t valid array or JSON string.']];

languages/wp-module-sso-en_GB.mo

286 Bytes
Binary file not shown.

languages/wp-module-sso-en_GB.po

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ msgstr ""
99
"Content-Transfer-Encoding: 8bit\n"
1010
"POT-Creation-Date: 2025-02-13T10:59:28+00:00\n"
1111
"PO-Revision-Date: 2025-02-13 19:38+0530\n"
12+
"Language: en_GB\n"
1213
"X-Generator: WP-CLI 2.11.0\n"
1314
"X-Domain: wp-module-sso\n"
14-
"Language: en_GB\n"
1515
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
1616

1717
#: bootstrap.php:19
@@ -21,3 +21,20 @@ msgstr "SSO"
2121
#: includes/SSO_REST_Controller.php:69
2222
msgid "Sorry, you are not allowed to access this endpoint."
2323
msgstr "Sorry, you are not allowed to access this endpoint."
24+
25+
#. Translators: %d number
26+
#: includes/SSO_CLI.php:75
27+
msgid "Single-use login link valid for %d minutes"
28+
msgstr "Single-use login link valid for %d minutes"
29+
30+
#: includes/SSO_CLI.php:196
31+
msgid "Success: "
32+
msgstr "Success: "
33+
34+
#: includes/SSO_CLI.php:229
35+
msgid "Error: "
36+
msgstr "Error: "
37+
38+
#: includes/SSO_CLI.php:278
39+
msgid "Provided $data wasn't valid array or JSON string."
40+
msgstr "Provided $data wasn't valid array or JSON string."

0 commit comments

Comments
 (0)