diff --git a/src/php/admin-menus/class-import-menu.php b/src/php/admin-menus/class-import-menu.php
index 3c3b2565..397d9de2 100644
--- a/src/php/admin-menus/class-import-menu.php
+++ b/src/php/admin-menus/class-import-menu.php
@@ -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.',
diff --git a/src/php/class-list-table.php b/src/php/class-list-table.php
index 41ed1379..ad9a1394 100644
--- a/src/php/class-list-table.php
+++ b/src/php/class-list-table.php
@@ -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 (%s)',
diff --git a/src/php/settings/class-version-switch.php b/src/php/settings/class-version-switch.php
index b2486e1c..0b3b5173 100644
--- a/src/php/settings/class-version-switch.php
+++ b/src/php/settings/class-version-switch.php
@@ -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
+ ),
];
}
diff --git a/src/php/views/partials/list-table-notices.php b/src/php/views/partials/list-table-notices.php
index c3d34561..ae8287c2 100644
--- a/src/php/views/partials/list-table-notices.php
+++ b/src/php/views/partials/list-table-notices.php
@@ -73,6 +73,7 @@
);
$result_messages['deleted'] = sprintf(
+ // translators: %s: Undo URL.
__( 'Snippet trashed. Undo', 'code-snippets' ),
esc_url( $undo_url )
);
@@ -90,6 +91,7 @@
);
$result_messages['deleted-multi'] = sprintf(
+ // translators: %s: Undo URL.
__( 'Selected snippets trashed. Undo', 'code-snippets' ),
esc_url( $undo_url )
);