From ff079abb9ca7f297aed4d4731016c434ecbefe13 Mon Sep 17 00:00:00 2001 From: Erik Thuning <boooink@gmail.com> Date: Wed, 28 Feb 2024 11:08:04 +0100 Subject: [PATCH] Found more strings to translate --- include/UserPage.php | 4 ++-- include/translations.php | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/UserPage.php b/include/UserPage.php index bff215e..f65c8e5 100644 --- a/include/UserPage.php +++ b/include/UserPage.php @@ -43,12 +43,12 @@ class UserPage extends Page { private function build_user_details() { $active_loans = $this->user->get_loans('active'); - $table_active = 'Inga aktuella lån.'; + $table_active = i18n('No active loans.'); if($active_loans) { $table_active = $this->build_user_loan_table($active_loans); } $inactive_loans = $this->user->get_loans('inactive'); - $table_inactive = 'Inga gamla lån.'; + $table_inactive = i18n('No past loans'); if($inactive_loans) { $table_inactive = $this->build_user_loan_table($inactive_loans); } diff --git a/include/translations.php b/include/translations.php index 5777526..a34cf90 100644 --- a/include/translations.php +++ b/include/translations.php @@ -269,6 +269,10 @@ $i18n = array( "en" => function() { return "No active loans."; }, "sv" => function() { return "Inga pågående lån."; }, ), + "No past loans." => array( + "en" => function() { return "No past loans."; }, + "sv" => function() { return "Inga gamla lån."; }, + ), "Borrowed products" => array( "en" => function() { return "Borrowed products"; }, "sv" => function() { return "Lånade artiklar"; },