Skip to content

Commit f05d659

Browse files
committed
Added missing Gettext syntax, unified textdomain, updated default .pot file, added German translations for v1.7
1 parent b6204ff commit f05d659

File tree

7 files changed

+1154
-218
lines changed

7 files changed

+1154
-218
lines changed

includes/admin/single.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171

7272
if ( ! $snippet->active ) {
7373
echo '   ';
74-
submit_button( 'Save Changes & Activate', 'secondary', 'save_snippet_activate', false );
74+
submit_button( __( 'Save Changes & Activate', 'code-snippets' ), 'secondary', 'save_snippet_activate', false );
7575
}
7676
?>
7777
</p>

includes/class-list-table.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,20 +139,20 @@ function column_name( $snippet ) {
139139
}
140140

141141
$actions['edit'] = sprintf(
142-
'<a href="%s&edit=%s">Edit</a>',
142+
'<a href="%s&edit=%s">' . __( 'Edit', 'code-snippets' ) . '</a>',
143143
$code_snippets->admin_single_url,
144144
$snippet->id
145145
);
146146
$actions['export'] = sprintf(
147-
'<a href="%s">Export</a>',
147+
'<a href="%s">' . __( 'Export', 'code-snippets' ) . '</a>',
148148
add_query_arg( array(
149149
'page' => $_REQUEST['page'],
150150
'action' => 'export',
151151
'id' => $snippet->id
152152
) )
153153
);
154154
$actions['delete'] = sprintf(
155-
'<a href="%1$s" class="delete" onclick="%2$s">Delete</a>',
155+
'<a href="%1$s" class="delete" onclick="%2$s">' . __( 'Delete', 'code-snippets' ) . '</a>',
156156
add_query_arg( array(
157157
'page' => $_REQUEST['page'],
158158
'action' => 'delete',
@@ -541,7 +541,7 @@ function search_notice() {
541541
echo '<span class="subtitle">' . __('Search results', 'code-snippets');
542542

543543
if ( ! empty ( $_REQUEST['s'] ) )
544-
echo sprintf ( __(' for &#8220;%s&#8221;'), esc_html( $_REQUEST['s'] ) );
544+
echo sprintf ( __( ' for &#8220;%s&#8221;', 'code-snippets' ), esc_html( $_REQUEST['s'] ) );
545545

546546
echo apply_filters( 'code_snippets_list_table_search_notice', '' );
547547
echo '</span>';

includes/help/import.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
$screen->add_help_tab( array(
1919
'id' => 'export',
20-
'title' => __('Exporting'),
20+
'title' => __( 'Exporting', 'code-snippets' ),
2121
'content' =>
2222
'<p>' . sprintf( __('You can save your snippets to a Code Snippets (.xml) export file using the <a href="%s">Manage Snippets</a> page.', 'code-snippets'), $this->admin_manage_url ) . '</p>'
2323
) );

languages/code-snippets-de_DE.mo

16.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)