From d26965e95b0f9b0e981266f05b19b870b6aa2fec Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Sat, 23 Jul 2022 21:40:17 +0200 Subject: [PATCH] Improve voucher texts --- includes/view/User_view.php | 6 +++--- resources/lang/de_DE/default.po | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/includes/view/User_view.php b/includes/view/User_view.php index 7e16b8c5..b7f7b63f 100644 --- a/includes/view/User_view.php +++ b/includes/view/User_view.php @@ -159,8 +159,8 @@ function User_edit_vouchers_view($user) ]), info(sprintf( $user->state->force_active - ? __('Angel should receive at least %d vouchers and is FA.') - : __('Angel should receive at least %d vouchers.'), + ? __('Angel can receive another %d vouchers and is FA.') + : __('Angel can receive another %d vouchers.'), User_get_eligable_voucher_count($user) ), true), form( @@ -635,7 +635,7 @@ function User_view( 'users', ['action' => 'edit_vouchers', 'user_id' => $user_source->id] ), - icon('file-binary-fill') . __('Edit vouchers') + icon('file-binary-fill') . __('Vouchers') ) : '', $admin_user_worklog_privilege ? button( diff --git a/resources/lang/de_DE/default.po b/resources/lang/de_DE/default.po index 28fea16c..68319d8b 100644 --- a/resources/lang/de_DE/default.po +++ b/resources/lang/de_DE/default.po @@ -2535,13 +2535,13 @@ msgstr "Dein Passwort" #: includes/view/User_view.php:148 #, php-format -msgid "Angel should receive at least %d vouchers." -msgstr "Engel sollte mindestens %d Gutscheine bekommen." +msgid "Angel can receive another %d vouchers." +msgstr "Engel kann noch %d Gutscheine bekommen." #: includes/view/User_view.php:148 #, php-format -msgid "Angel should receive at least %d vouchers and is FA." -msgstr "Engel sollte mindestens %d Gutscheine bekommen und ist FA." +msgid "Angel can receive another %d vouchers and is FA." +msgstr "Engel kann noch %d Gutscheine bekommen und ist FA." #: includes/view/User_view.php:153 msgid "Number of vouchers given out" @@ -2649,8 +2649,8 @@ msgid "driving license" msgstr "Führerschein" #: includes/view/User_view.php:608 -msgid "Edit vouchers" -msgstr "Gutschein bearbeiten" +msgid "Vouchers" +msgstr "Gutscheine" #: includes/view/User_view.php:612 msgid "Add work log"