Skip to content

Commit

Permalink
Update to single translation string
Browse files Browse the repository at this point in the history
  • Loading branch information
mukeshpanchal27 authored Oct 23, 2023
1 parent 5972cd7 commit 28e8242
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions includes/Checker/Checks/Code_Obfuscation_Check.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ protected function look_for_zendguard( Check_Result $result, array $php_files )
if ( $obfuscated_file ) {
$this->add_result_error_for_file(
$result,
__( 'Code Obfuscation tools are not permitted. Detected: Zend Guard', 'plugin-check' ),
sprintf(
/* translators: %s: tool name */
__( 'Code Obfuscation tools are not permitted. Detected: %s', 'plugin-check' ),
__( 'Zend Guard', 'plugin-check' )
),
'obfuscated_code_detected',
$obfuscated_file
);
Expand All @@ -118,7 +122,11 @@ protected function look_for_sourceguardian( Check_Result $result, array $php_fil
if ( $obfuscated_file ) {
$this->add_result_error_for_file(
$result,
__( 'Code Obfuscation tools are not permitted. Detected: Source Guardian', 'plugin-check' ),
sprintf(
/* translators: %s: tool name */
__( 'Code Obfuscation tools are not permitted. Detected: %s', 'plugin-check' ),
__( 'Source Guardian', 'plugin-check' )
),
'obfuscated_code_detected',
$obfuscated_file
);
Expand All @@ -138,7 +146,11 @@ protected function look_for_ioncube( Check_Result $result, array $php_files ) {
if ( $obfuscated_file ) {
$this->add_result_error_for_file(
$result,
__( 'Code Obfuscation tools are not permitted. Detected: ionCube', 'plugin-check' ),
sprintf(
/* translators: %s: tool name */
__( 'Code Obfuscation tools are not permitted. Detected: %s', 'plugin-check' ),
__( 'ionCube', 'plugin-check' )
),
'obfuscated_code_detected',
$obfuscated_file
);
Expand Down

0 comments on commit 28e8242

Please sign in to comment.