Skip to content

Commit 6990cb6

Browse files
authored
Merge pull request #306 from codesnippetspro/translators-comments
Fix: add missing translators comments
2 parents 2a8dcc6 + 4b723de commit 6990cb6

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

src/php/admin-menus/class-import-menu.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ protected function print_messages() {
137137
esc_html_e( 'No snippets were imported.', 'code-snippets' );
138138

139139
} else {
140-
/* translators: %d: amount of snippets imported */
141140
printf(
141+
// translators: %d: amount of snippets imported.
142142
_n(
143143
'Successfully imported %d snippet.',
144144
'Successfully imported %d snippets.',

src/php/class-list-table.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ public function get_views(): array {
618618
continue 2;
619619
}
620620

621+
// translators: %s: Websites count.
621622
$shared_label_template = $this->is_network
622623
? _n_noop(
623624
'Shared with Subsites <span class="count">(%s)</span>',

src/php/settings/class-version-switch.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,11 @@ public static function handle_version_switch( string $target_version ): array {
235235

236236
return [
237237
'success' => true,
238-
'message' => sprintf( __( 'Successfully switched to version %s. Please refresh the page to see changes.', 'code-snippets' ), $target_version ),
238+
'message' => sprintf(
239+
// translators: %s: Version number.
240+
__( 'Successfully switched to version %s. Please refresh the page to see changes.', 'code-snippets' ),
241+
$target_version
242+
),
239243
];
240244
}
241245

src/php/views/partials/list-table-notices.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
);
7474

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

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

0 commit comments

Comments
 (0)