chore(i18n): Fix/add proper translator comments (#2716)

Co-authored-by: Brandon <brandon@tendency.me>
This commit is contained in:
strarsis
2021-05-27 03:10:21 +02:00
committed by GitHub
parent cb5a5b57fe
commit 6d66debe17
2 changed files with 2 additions and 1 deletions

View File

@@ -53,8 +53,8 @@ class Post extends Composer
}
if (is_search()) {
/* translators: %s is replaced with the search query */
return sprintf(
/* translators: %s is replaced with the search query */
__('Search Results for %s', 'sage'),
get_search_query()
);

View File

@@ -29,6 +29,7 @@ collect(['helpers', 'setup', 'filters', 'admin'])
->each(function ($file) {
if (! locate_template($file = "app/{$file}.php", true, true)) {
wp_die(
/* translators: %s is replaced with the relative file path */
sprintf(__('Error locating <code>%s</code> for inclusion.', 'sage'), $file)
);
}