Skip to content

i18n enhancements, added German translations #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion includes/admin/single.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

if ( ! $snippet->active ) {
echo '   ';
submit_button( 'Save Changes & Activate', 'secondary', 'save_snippet_activate', false );
submit_button( __( 'Save Changes & Activate', 'code-snippets' ), 'secondary', 'save_snippet_activate', false );
}
?>
</p>
Expand Down
8 changes: 4 additions & 4 deletions includes/class-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,20 +139,20 @@ function column_name( $snippet ) {
}

$actions['edit'] = sprintf(
'<a href="%s&edit=%s">Edit</a>',
'<a href="%s&edit=%s">' . __( 'Edit', 'code-snippets' ) . '</a>',
$code_snippets->admin_single_url,
$snippet->id
);
$actions['export'] = sprintf(
'<a href="%s">Export</a>',
'<a href="%s">' . __( 'Export', 'code-snippets' ) . '</a>',
add_query_arg( array(
'page' => $_REQUEST['page'],
'action' => 'export',
'id' => $snippet->id
) )
);
$actions['delete'] = sprintf(
'<a href="%1$s" class="delete" onclick="%2$s">Delete</a>',
'<a href="%1$s" class="delete" onclick="%2$s">' . __( 'Delete', 'code-snippets' ) . '</a>',
add_query_arg( array(
'page' => $_REQUEST['page'],
'action' => 'delete',
Expand Down Expand Up @@ -541,7 +541,7 @@ function search_notice() {
echo '<span class="subtitle">' . __('Search results', 'code-snippets');

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

echo apply_filters( 'code_snippets_list_table_search_notice', '' );
echo '</span>';
Expand Down
2 changes: 1 addition & 1 deletion includes/help/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

$screen->add_help_tab( array(
'id' => 'export',
'title' => __('Exporting'),
'title' => __( 'Exporting', 'code-snippets' ),
'content' =>
'<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>'
) );
Expand Down
Binary file added languages/code-snippets-de_DE.mo
Binary file not shown.
Loading