Skip to content

Commit 00df0e9

Browse files
committed
add translated links
1 parent 3e176fe commit 00df0e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

inc/rest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ public function register_service( WP_REST_Request $request ) {
392392
return new WP_REST_Response(
393393
[
394394
'data' => null,
395-
'message' => sprintf( /* translators: 1 start anchor tag to register page, 2 is ending anchor tag. */ __( 'Error: This site has been previously registered. You can login to your account from %1$shere%2$s', 'optimole-wp' ), '<a href="' . esc_url( tsdk_translate_link( 'https://dashboard.optimole.com/login','query')).'" target="_blank"> ', '</a>' ),
395+
'message' => sprintf( /* translators: 1 start anchor tag to register page, 2 is ending anchor tag. */ __( 'Error: This site has been previously registered. You can login to your account from %1$shere%2$s', 'optimole-wp' ), '<a href="' . esc_url( tsdk_translate_link( 'https://dashboard.optimole.com/login', 'query' ) ) . '" target="_blank"> ', '</a>' ),
396396
'code' => 'site_exists',
397397
],
398398
200
@@ -783,15 +783,15 @@ public function check_redirects( WP_REST_Request $request ) {
783783
$status_code = $response['response']['code'];
784784
if ( $status_code === 301 ) {
785785
$status = 'deactivated';
786-
$result = '<li>❌ ' . sprintf( /* translators: 1 is starting anchor tag, 2 is the ending anchor tag. */ __( 'Your account is currently disabled due to exceeding quota and Optimole is no longer able to optimize the images. In order to fix this you will need to %1$supgrade%2$s.', 'optimole-wp' ), '<a target="_blank" href="' . esc_url( tsdk_translate_link('https://optimole.com/pricing')).'">', '</a>' ) . '</li>';
786+
$result = '<li>❌ ' . sprintf( /* translators: 1 is starting anchor tag, 2 is the ending anchor tag. */ __( 'Your account is currently disabled due to exceeding quota and Optimole is no longer able to optimize the images. In order to fix this you will need to %1$supgrade%2$s.', 'optimole-wp' ), '<a target="_blank" href="' . esc_url( tsdk_translate_link( 'https://optimole.com/pricing' ) ) . '">', '</a>' ) . '</li>';
787787
break;
788788
}
789789
if ( $status_code === 302 ) {
790790
if ( isset( $headers['x-redirect-o'] ) ) {
791791
$optimole_code = (int) $headers['x-redirect-o'];
792792
if ( $optimole_code === 1 ) {
793793
$status = 'log';
794-
$result .= '<li>❌ ' . sprintf( /* translators: 1 is the domain, 2 is starting anchor tag, 3 is the ending anchor tag. */ __( 'The domain: %1$s is not allowed to optimize images using your Optimole account. You can add this to the allowed list %2$shere%3$s.', 'optimole-wp' ), '<b>' . $domain . '</b>', '<a target="_blank" href="' . esc_url( tsdk_translate_link( 'https://dashboard.optimole.com/whitelist','query')).'">', '</a>' ) . '</li>';
794+
$result .= '<li>❌ ' . sprintf( /* translators: 1 is the domain, 2 is starting anchor tag, 3 is the ending anchor tag. */ __( 'The domain: %1$s is not allowed to optimize images using your Optimole account. You can add this to the allowed list %2$shere%3$s.', 'optimole-wp' ), '<b>' . $domain . '</b>', '<a target="_blank" href="' . esc_url( tsdk_translate_link( 'https://dashboard.optimole.com/whitelist', 'query' ) ) . '">', '</a>' ) . '</li>';
795795
}
796796
if ( $optimole_code === 4 ) {
797797
$status = 'log';

0 commit comments

Comments
 (0)