Skip to content

Commit feaa29d

Browse files
author
Michiel Verkoijen
committed
Small translation update. Let WordPress handle trivial translations like Save button.
1 parent e1b5899 commit feaa29d

2 files changed

Lines changed: 6 additions & 14 deletions

File tree

src/views/account-status-connected.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,8 @@
6464
$link = sprintf( '<a href="https://tinypng.com/developers" target="_blank">%s</a>',
6565
esc_html__( 'TinyPNG developer section', 'tiny-compress-images' )
6666
);
67-
68-
echo esc_html__( 'Enter your API key.', 'tiny-compress-images' );
69-
echo ' ';
70-
7167
printf( esc_html__(
72-
'If you have lost your key, go to the %s to retrieve it.',
68+
'Enter your API key. If you have lost your key, go to the %s to retrieve it.',
7369
'tiny-compress-images'
7470
), $link );
7571
?></p>
@@ -79,13 +75,13 @@
7975
value="<?php echo esc_attr( $key ); ?>">
8076

8177
<button class="button button-primary" data-tiny-action="update-key"><?php
82-
echo esc_html__( 'Save', 'tiny-compress-images' );
78+
echo esc_html__( 'Save' );
8379
?></button>
8480

8581
<p class="message"></p>
8682

8783
<p><a href="#" onclick="jQuery('div.tiny-account-status div.update').toggle(); jQuery('div.tiny-account-status div.status').toggle(); return false"><?php
88-
echo esc_html__( 'Cancel', 'tiny-compress-images' );
84+
echo esc_html__( 'Cancel' );
8985
?></a></p>
9086
</div>
9187
</div>

src/views/account-status-missing.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<p class="message"></p>
2121

2222
<button class="button button-primary" data-tiny-action="create-key">
23-
<?php echo esc_html__( 'Register account', 'tiny-compress-images' ) ?>
23+
<?php echo esc_html__( 'Register Account', 'tiny-compress-images' ) ?>
2424
</button>
2525
</div>
2626

@@ -33,12 +33,8 @@
3333
$link = sprintf( '<a href="https://tinypng.com/developers" target="_blank">%s</a>',
3434
esc_html__( 'TinyPNG developer section', 'tiny-compress-images' )
3535
);
36-
37-
echo esc_html__( 'Enter your API key.', 'tiny-compress-images' );
38-
echo ' ';
39-
4036
printf( esc_html__(
41-
'Go to the %s to retrieve it.',
37+
'Enter your API key. Go to the %s to retrieve it.',
4238
'tiny-compress-images'
4339
), $link );
4440
?></p>
@@ -49,7 +45,7 @@
4945
<p class="message"></p>
5046

5147
<button class="button button-primary" data-tiny-action="update-key">
52-
<?php echo esc_html__( 'Save', 'tiny-compress-images' ); ?>
48+
<?php echo esc_html__( 'Save' ); ?>
5349
</button>
5450
</div>
5551
</div>

0 commit comments

Comments
 (0)