Skip to content

Commit cfc7d48

Browse files
committed
fixes for numbered placeholder in translatable strings
1 parent 040c491 commit cfc7d48

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

src/lib/src/ActionRouter/Actions/Render/Components/Scans/ItemAnalysis/History.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function getRenderData() :array {
3232
if ( $column === 'created_at' ) {
3333
$this->history[ $ts ][] = sprintf(
3434
/* translators: %1$s: detection type, %2$s: scanner name */
35-
__( "File detected as %1$s by %2$s scanner.", 'wp-simple-firewall' ),
35+
__( 'File detected as %1$s by %2$s scanner.', 'wp-simple-firewall' ),
3636
sprintf( '<strong>%s</strong>', \implode( ', ', $item->getStatusForHuman() ) ),
3737
sprintf( '<strong>%s</strong>',
3838
self::con()->comps->scans->getScanCon( $item->VO->scan )->getScanName() )

src/lib/src/Controller/Config/Modules/StringsOptions.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public function getFor( string $key ) :array {
312312
\implode( ' ', [
313313
sprintf(
314314
/* translators: %1$s: WP root directory name, %2$s: wp-content directory path */
315-
__( "The %1$s directory is like the %2$s directory and many non-WordPress files are kept there.", 'wp-simple-firewall' ), __( 'WP root', 'wp-simple-firewall' ), '<code>/wp-content/</code>' ),
315+
__( 'The %1$s directory is like the %2$s directory and many non-WordPress files are kept there.', 'wp-simple-firewall' ), __( 'WP root', 'wp-simple-firewall' ), '<code>/wp-content/</code>' ),
316316
__( "Since it's normally messy, it's the perfect place to hide malicious files in plain sight.", 'wp-simple-firewall' ),
317317
__( "We have rules to detect unidentified files, but you'll probably see false positive results.", 'wp-simple-firewall' ),
318318
$additional,
@@ -764,7 +764,7 @@ public function getFor( string $key ) :array {
764764
__( 'Important', 'wp-simple-firewall' ),
765765
sprintf(
766766
/* translators: %1$s: wp-admin path, %2$s: wp-login.php path */
767-
__( "This will cause %1$s and %2$s URLs to return HTTP 404 errors while you're not logged-in.", 'wp-simple-firewall' ),
767+
__( "This will cause %1\$s and %2\$s URLs to return HTTP 404 errors while you're not logged-in.", 'wp-simple-firewall' ),
768768
'<code>/wp-admin/</code>',
769769
'<code>/wp-login.php</code>'
770770
)
@@ -999,7 +999,7 @@ public function getFor( string $key ) :array {
999999
),
10001000
sprintf(
10011001
/* translators: %1$s: server variable name, %2$s: server variable name */
1002-
__( "If the correct setting is not %1$s, we recommend contacting your hosting provider to request that they configure your hosting so that %2$s provides the actual visitor IP address.", 'wp-simple-firewall' ),
1002+
__( 'If the correct setting is not %1$s, we recommend contacting your hosting provider to request that they configure your hosting so that %2$s provides the actual visitor IP address.', 'wp-simple-firewall' ),
10031003
sprintf( '<code>%s</code>', 'REMOTE_ADDR' ), sprintf( '<code>%s</code>', 'REMOTE_ADDR' ) )
10041004
] ),
10051005
];
@@ -1064,7 +1064,7 @@ public function getFor( string $key ) :array {
10641064
.' '.__( "It'll find a suitable location automatically, but if this fails, you may see PHP warnings on your site and certain Shield functionality won't be available.", 'wp-simple-firewall' ),
10651065
sprintf(
10661066
/* translators: %1$s: plugin name, %2$s: directory path */
1067-
__( "%1$s has successfully chosen the following location to create its temporary directory: %2$s", 'wp-simple-firewall' ), $pluginName,
1067+
__( '%1$s has successfully chosen the following location to create its temporary directory: %2$s', 'wp-simple-firewall' ), $pluginName,
10681068
sprintf( '<code>%s</code>', \dirname( $tmpDir ) ) ),
10691069
sprintf( '%s - %s', __( 'Important', 'wp-simple-firewall' ), __( 'You should only provide a value for this configuration option if you experience any trouble.', 'wp-simple-firewall' ) ),
10701070
];

src/lib/src/Controller/Config/Opts/SectionNotices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ function ( $provider ) {
218218
if ( !empty( $installedButNotEnabledProviders ) ) {
219219
$warnings[] = sprintf(
220220
/* translators: %1$s: plugin name, %2$s: provider name */
221-
__( "%1$s has an integration available to protect the forms of a 3rd party plugin you're using: %2$s", 'wp-simple-firewall' ),
221+
__( '%1$s has an integration available to protect the forms of a 3rd party plugin you are using: %2$s', 'wp-simple-firewall' ),
222222
$con->labels->Name,
223223
\implode( ', ', \array_map(
224224
function ( $provider ) {

src/lib/src/Modules/CommentsFilter/Scan/HumanDictionary.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function scan( array $commData ) {
4343
'human',
4444
sprintf(
4545
/* translators: %1$s: word found, %2$s: field name */
46-
__( "Human SPAM filter found '%1$s' in '%2$s'", 'wp-simple-firewall' ), $word, $key ),
46+
__( 'Human SPAM filter found "%1$s" in "%2$s"', 'wp-simple-firewall' ), $word, $key ),
4747
[
4848
'word' => $word,
4949
'key' => $key

src/lib/src/Modules/Plugin/Lib/MeterAnalysis/Component/SystemPhpVersion.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ public function title() :string {
2828
public function descProtected() :string {
2929
return sprintf(
3030
/* translators: %1$s: current PHP version, %2$s: minimum required version */
31-
__( "WordPress is running on a recent version (%1$s) of PHP (at least %2$s).", 'wp-simple-firewall' ),
31+
__( 'WordPress is running on a recent version (%1$s) of PHP (at least %2$s).', 'wp-simple-firewall' ),
3232
Services::Data()->getPhpVersionCleaned(), '7.4' );
3333
}
3434

3535
public function descUnprotected() :string {
3636
return \implode( ' ', [
37-
sprintf( __( "WordPress is running an old version (%s) of PHP.", 'wp-simple-firewall' ),
37+
sprintf( __( 'WordPress is running an old version (%s) of PHP.', 'wp-simple-firewall' ),
3838
Services::Data()->getPhpVersionCleaned() ),
39-
sprintf( __( "WordPress.org recommends running on at least PHP %s.", 'wp-simple-firewall' ), '7.4' )
39+
sprintf( __( 'WordPress.org recommends running on at least PHP %s.', 'wp-simple-firewall' ), '7.4' )
4040
] );
4141
}
4242
}

src/lib/src/Zones/Zone/Scans.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function description() :array {
4646
] ),
4747
\implode( ' ', [
4848
/* translators: %1$s: service name, %2$s: product name */
49-
sprintf( __( "%1$s is %2$s's exclusive service that protects your wp-config.php file.", 'wp-simple-firewall' ), 'FileLocker', 'ShieldPRO' ),
49+
sprintf( __( '%1$s is a %2$s exclusive service that protects your wp-config.php file.', 'wp-simple-firewall' ), 'FileLocker', 'ShieldPRO' ),
5050
__( 'With it you can be instantly alerted to changes to the file with a clear view on the precise changes and easy next-steps on how to proceed.', 'wp-simple-firewall' ),
5151
] ),
5252
];

0 commit comments

Comments
 (0)