diff --git a/bluem-interface.php b/bluem-interface.php index f360c6b..87feb74 100644 --- a/bluem-interface.php +++ b/bluem-interface.php @@ -29,7 +29,7 @@ function bluem_render_request_table($categoryName, $requests, $users_by_id = arr echo '
'; 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 '
'; diff --git a/views/status.php b/views/status.php index 58e580f..6c82e83 100644 --- a/views/status.php +++ b/views/status.php @@ -39,7 +39,7 @@ function bluem_display_php_errors(): string && $log_contents = @file_get_contents($error_log_path)) { $content = '' . esc_html($log_contents) . ''; } 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; } @@ -57,10 +57,10 @@ function bluem_display_wordpress_debug_log() if ($log_contents = @file_get_contents($error_log_path)) { $content = '
' . esc_html($log_contents) . ''; } 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; } @@ -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 .= '
' . esc_html(file_get_contents($log)) . ''; } } 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;