Skip to content

Commit da1c382

Browse files
committed
I18N: Add translator context for Preview string
1 parent a6d9020 commit da1c382

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/wp-admin/includes/class-wp-posts-list-table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1589,7 +1589,7 @@ protected function handle_row_actions( $item, $column_name, $primary ) {
15891589
esc_url( $preview_link ),
15901590
/* translators: %s: Post title. */
15911591
esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ),
1592-
__( 'Preview' )
1592+
_x( 'Preview', 'post preview action' )
15931593
);
15941594
}
15951595
} elseif ( 'trash' !== $post->post_status ) {

src/wp-admin/includes/class-wp-theme-install-list-table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ public function single_row( $theme ) {
345345
'<a class="install-theme-preview" href="%s" aria-label="%s">%s</a>',
346346
esc_url( $preview_url ),
347347
esc_attr( $preview_title ),
348-
__( 'Preview' )
348+
_x( 'Preview', 'theme preview action' )
349349
);
350350

351351
/**

src/wp-admin/includes/meta-boxes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function post_submit_meta_box( $post, $args = array() ) {
7070
if ( 'publish' === $post->post_status ) {
7171
$preview_button_text = __( 'Preview Changes' );
7272
} else {
73-
$preview_button_text = __( 'Preview' );
73+
$preview_button_text = _x( 'Preview', 'button' );
7474
}
7575

7676
$preview_button = sprintf(

src/wp-includes/class-wp-editor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ private static function get_translation() {
12521252
'Nonbreaking space' => __( 'Nonbreaking space' ),
12531253
'Page break' => __( 'Page break' ),
12541254
'Paste as text' => __( 'Paste as text' ),
1255-
'Preview' => __( 'Preview' ),
1255+
'Preview' => _x( 'Preview', 'editor button' ),
12561256
'Print' => __( 'Print' ),
12571257
'Save' => __( 'Save' ),
12581258
'Fullscreen' => __( 'Fullscreen' ),

0 commit comments

Comments
 (0)