From 265284702909456a6be27267a4d6600ffa16248d Mon Sep 17 00:00:00 2001 From: Ned Zimmerman Date: Wed, 13 Dec 2017 20:43:41 -0400 Subject: [PATCH] Standardize localization. --- composer.json | 2 +- footer.php | 4 +- functions.php | 12 +- header.php | 10 +- inc/activation/namespace.php | 8 +- inc/customizer/namespace.php | 34 +-- inc/filters/namespace.php | 2 +- inc/helpers/namespace.php | 16 +- inc/intervention.php | 2 +- languages/aldine.pot | 186 ---------------- languages/pressbooks-aldine.pot | 358 ++++++++++++++++++++++++++++++ partials/book.php | 2 +- partials/contact-form.php | 12 +- partials/content-front-page.php | 10 +- partials/content-page-catalog.php | 18 +- style.css | 2 +- 16 files changed, 425 insertions(+), 253 deletions(-) delete mode 100644 languages/aldine.pot create mode 100644 languages/pressbooks-aldine.pot diff --git a/composer.json b/composer.json index 4ac3393..7ea7ca4 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,7 @@ "vendor/bin/phpcs --standard=phpcs.ruleset.xml inc partials *.php" ], "localize": [ - "wp-pot -o=languages/pressbooks-aldine.pot -d=pressbooks-aldine -t 'Pressbooks (Book Oven Inc.) ' -s '*.php'" + "wp-pot -o=languages/pressbooks-aldine.pot -d=pressbooks-aldine -t 'Pressbooks (Book Oven Inc.) ' -s '**/*.php'" ], "readme": ["vendor/bin/wp2md -i readme.txt -o README.md"] } diff --git a/footer.php b/footer.php index 7b9e5c9..8a20b50 100644 --- a/footer.php +++ b/footer.php @@ -33,12 +33,12 @@ $pb_network_contact_form = get_option( 'pb_network_contact_form' ); diff --git a/partials/content-page-catalog.php b/partials/content-page-catalog.php index 7c9ba75..40bf9c3 100644 --- a/partials/content-page-catalog.php +++ b/partials/content-page-catalog.php @@ -30,10 +30,10 @@ $subject_groups = ( function_exists( '\\Pressbooks\\Metadata\\get_thema_subjects
- +
$val ) : ?>
@@ -49,7 +49,7 @@ $subject_groups = ( function_exists( '\\Pressbooks\\Metadata\\get_thema_subjects
- +
    $value ) : ?>
  • ×
  • @@ -58,11 +58,11 @@ $subject_groups = ( function_exists( '\\Pressbooks\\Metadata\\get_thema_subjects
- +
@@ -73,7 +73,7 @@ $subject_groups = ( function_exists( '\\Pressbooks\\Metadata\\get_thema_subjects
1 ) : ?>
diff --git a/style.css b/style.css index bdc5d0e..a6e9e4e 100644 --- a/style.css +++ b/style.css @@ -5,7 +5,7 @@ Description: Aldine is the root theme for Pressbooks. Version: 1.0.0-alpha.6 Author: Pressbooks (Book Oven Inc.) Author URI: https://pressbooks.org -Text Domain: aldine +Text Domain: pressbooks-aldine GitHub Theme URI: pressbooks/pressbooks-aldine Release Asset: true License: GNU General Public License v2 or later