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"; },