Skip to content

Commit e989144

Browse files
fix: improve translation string for 'About the author' (#1186)
* fix: improve translation string for 'About the Author' * chore: update test matrix & dependencies * chore: update text matrix
1 parent b202c46 commit e989144

File tree

4 files changed

+83
-60
lines changed

4 files changed

+83
-60
lines changed

.github/workflows/standards-and-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
matrix:
1616
php: [ 8.1, 8.2 ]
1717
os: [ ubuntu-20.04 ]
18-
wordpress: [ 6.2, latest ]
18+
wordpress: [ 6.4.2, latest ]
1919
include:
2020
- experimental: true
2121
- experimental: false
2222
php: 8.1
23-
wordpress: 6.2
23+
wordpress: 6.4.2
2424

2525
name: Test - PHP ${{ matrix.php }} - WP ${{ matrix.wordpress }}
2626

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"require-dev": {
1919
"pressbooks/coding-standards": "^1.1",
20-
"yoast/phpunit-polyfills": "^1.0.3"
20+
"yoast/phpunit-polyfills": "^1.1"
2121
},
2222
"archive": {
2323
"exclude": [".github", ".tx", "bin"]

composer.lock

Lines changed: 79 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

partials/content-single.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@
7575
?>
7676
<hr class="before-contributors clear">
7777
<section class="contributors chapter-authors">
78-
<?php /* translators: This display About the Author or Authors ir there are more than one */ ?>
79-
<h2 class="about-authors"><?php echo sprintf( _n( '%s Author', '%s Authors', count( $chapter_contributors ), 'pressbooks' ), 'About the' ) ?></h2>
78+
<h2 class="about-authors"><?php echo _n( 'About the author', 'About the authors', count( $chapter_contributors ), 'pressbooks-book' ); ?></h2>
8079
<?php
8180
foreach ( $chapter_contributors as $contributor ) {
8281
echo $blade_engine->render(

0 commit comments

Comments
 (0)