From 272e5bb4e59ea71d4b02510f9280e4ed36799bcb Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Fri, 5 Jul 2019 08:03:40 +0000 Subject: [PATCH] Coding Standards: Add missing translator comments. Twentys Eleven, Sixteen, and Seventeen now have translator comments for all their strings. Also, WPCS now doesn't show missing translator comment warnings for test files. See #47632. git-svn-id: https://develop.svn.wordpress.org/trunk@45604 602fd350-edb4-49c9-b593-d223f7449a82 --- phpcs.xml.dist | 5 ++++ .../themes/twentyeleven/archive.php | 23 +++++++++++-------- src/wp-content/themes/twentyeleven/author.php | 14 +++++++++-- .../themes/twentyeleven/category.php | 1 + .../themes/twentyeleven/content-featured.php | 2 ++ .../themes/twentyeleven/content-gallery.php | 4 ++++ .../themes/twentyeleven/content-image.php | 12 ++++++++-- .../themes/twentyeleven/content-quote.php | 2 ++ .../themes/twentyeleven/content-single.php | 15 ++++++++++-- .../themes/twentyeleven/content.php | 2 ++ src/wp-content/themes/twentyeleven/footer.php | 5 +++- .../themes/twentyeleven/functions.php | 4 +++- src/wp-content/themes/twentyeleven/header.php | 1 + src/wp-content/themes/twentyeleven/image.php | 1 + .../themes/twentyeleven/inc/theme-options.php | 14 +++++++++-- src/wp-content/themes/twentyeleven/search.php | 7 +++++- .../themes/twentyeleven/showcase.php | 10 ++++++-- src/wp-content/themes/twentyeleven/tag.php | 1 + .../twentyseventeen/inc/back-compat.php | 3 +++ .../twentyseventeen/inc/template-tags.php | 3 ++- .../themes/twentyseventeen/search.php | 7 +++++- .../template-parts/footer/site-info.php | 5 +++- .../page/content-front-page-panels.php | 2 +- .../page/content-front-page.php | 2 +- .../template-parts/post/content-audio.php | 2 +- .../template-parts/post/content-gallery.php | 2 +- .../template-parts/post/content-image.php | 2 +- .../template-parts/post/content-none.php | 7 +++++- .../template-parts/post/content-video.php | 2 +- .../template-parts/post/content.php | 2 +- .../themes/twentysixteen/footer.php | 5 +++- .../themes/twentysixteen/inc/back-compat.php | 3 +++ .../twentysixteen/inc/template-tags.php | 1 + .../themes/twentysixteen/search.php | 7 +++++- .../template-parts/biography.php | 5 +++- .../template-parts/content-none.php | 7 +++++- .../twentysixteen/template-parts/content.php | 2 +- 37 files changed, 154 insertions(+), 38 deletions(-) diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 56e4fcbc35..4cdad01092 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -148,6 +148,11 @@ /tests/phpunit/tests/l10n/loadTextdomainJustInTime\.php + + + /tests/* + + /wp-config\.php /wp-config-sample\.php diff --git a/src/wp-content/themes/twentyeleven/archive.php b/src/wp-content/themes/twentyeleven/archive.php index c877947681..ce653729d1 100644 --- a/src/wp-content/themes/twentyeleven/archive.php +++ b/src/wp-content/themes/twentyeleven/archive.php @@ -21,15 +21,20 @@ get_header(); ?> diff --git a/src/wp-content/themes/twentyeleven/author.php b/src/wp-content/themes/twentyeleven/author.php index c6d68e216d..eeb3bdd37c 100644 --- a/src/wp-content/themes/twentyeleven/author.php +++ b/src/wp-content/themes/twentyeleven/author.php @@ -26,7 +26,12 @@ get_header(); ?> ?> ?>
-

+

+ +

diff --git a/src/wp-content/themes/twentyeleven/category.php b/src/wp-content/themes/twentyeleven/category.php index 903ef11676..02a198e88f 100644 --- a/src/wp-content/themes/twentyeleven/category.php +++ b/src/wp-content/themes/twentyeleven/category.php @@ -17,6 +17,7 @@ get_header(); ?>