Skip to content
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 src/php/admin-menus/class-import-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ protected function print_messages() {
esc_html_e( 'No snippets were imported.', 'code-snippets' );

} else {
/* translators: %d: amount of snippets imported */
printf(
// translators: %d: amount of snippets imported.
_n(
'Successfully imported %d snippet.',
'Successfully imported %d snippets.',
Expand Down
1 change: 1 addition & 0 deletions src/php/class-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ public function get_views(): array {
continue 2;
}

// translators: %s: Websites count.
$shared_label_template = $this->is_network
? _n_noop(
'Shared with Subsites <span class="count">(%s)</span>',
Expand Down
6 changes: 5 additions & 1 deletion src/php/settings/class-version-switch.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,11 @@ public static function handle_version_switch( string $target_version ): array {

return [
'success' => true,
'message' => sprintf( __( 'Successfully switched to version %s. Please refresh the page to see changes.', 'code-snippets' ), $target_version ),
'message' => sprintf(
// translators: %s: Version number.
__( 'Successfully switched to version %s. Please refresh the page to see changes.', 'code-snippets' ),
$target_version
),
];
}

Expand Down
2 changes: 2 additions & 0 deletions src/php/views/partials/list-table-notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
);

$result_messages['deleted'] = sprintf(
// translators: %s: Undo URL.
__( 'Snippet <strong>trashed</strong>. <a href="%s">Undo</a>', 'code-snippets' ),
esc_url( $undo_url )
);
Expand All @@ -90,6 +91,7 @@
);

$result_messages['deleted-multi'] = sprintf(
// translators: %s: Undo URL.
__( 'Selected snippets <strong>trashed</strong>. <a href="%s">Undo</a>', 'code-snippets' ),
esc_url( $undo_url )
);
Expand Down