Skip to content

Commit

Permalink
fix(1.3.23): Consistent translations
Browse files Browse the repository at this point in the history
  • Loading branch information
daanrijpkemacb committed Nov 2, 2024
1 parent 2552388 commit 82fc509
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bluem-interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function bluem_render_request_table($categoryName, $requests, $users_by_id = arr
echo '<p>';
printf(
/* translators: %s: Name of the category (Bluem service) */
esc_html__('No transactions yet for %s', 'bluem'),
esc_html__('Nog geen transacties voor %s', 'bluem'),
esc_attr($categoryName)
);
echo '</p>';
Expand Down
12 changes: 6 additions & 6 deletions views/status.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function bluem_display_php_errors(): string
&& $log_contents = @file_get_contents($error_log_path)) {
$content = '<pre>' . esc_html($log_contents) . '</pre>';
} else {
$content = esc_html__('Unable to access the PHP error log. Either the log does not exist, logging has been disabled, or the necessary read permissions are lacking.', 'bluem');
$content = esc_html__('Geen toegang tot PHP-foutenlogboek. Of het log bestaat niet, loggen is uitgeschakeld of de benodigde leesrechten ontbreken.', 'bluem');
}
return $content;
}
Expand All @@ -57,10 +57,10 @@ function bluem_display_wordpress_debug_log()
if ($log_contents = @file_get_contents($error_log_path)) {
$content = '<pre>' . esc_html($log_contents) . '</pre>';
} else {
$content = esc_html__('Unable to access the WordPress debug log. Either the log does not exist, logging has been disabled, or the necessary read permissions are lacking.', 'bluem');
$content = esc_html__('Geen toegang tot het WordPress debug-logboek. Of het log bestaat niet, loggen is uitgeschakeld of de benodigde leesrechten ontbreken.', 'bluem');
}
} else {
$content = esc_html__('Unable to access the WordPress debug log. Either the log does not exist, logging has been disabled, or the necessary read permissions are lacking.', 'bluem');
$content = esc_html__('Geen toegang tot het WordPress debug-logboek. Of het log bestaat niet, loggen is uitgeschakeld of de benodigde leesrechten ontbreken.', 'bluem');
}
return $content;
}
Expand All @@ -79,13 +79,13 @@ function bluem_display_woocommerce_logs(): string

$content = '';

if (is_array($woocommerce_logs)) {
if (is_array($woocommerce_logs) && count($woocommerce_logs) > 0) {
foreach ($woocommerce_logs as $log) {
$content .= '<h4>' . basename($log) . '</h4>';
$content .= '<h4>' . esc_attr(basename($log)) . '</h4>';
$content .= '<pre>' . esc_html(file_get_contents($log)) . '</pre>';
}
} else {
$content = esc_html__('Unable to access the WooCommerce logs. Either the log does not exist, logging has been disabled, or the necessary read permissions are lacking.', 'bluem');
$content = esc_html__('Geen toegang tot de WooCommerce logboeken. Of het log bestaat niet, loggen is uitgeschakeld of de benodigde leesrechten ontbreken.', 'bluem');
}

return $content;
Expand Down

0 comments on commit 82fc509

Please sign in to comment.