From c321b09019fcd47508c165fecaa9f021db1b0389 Mon Sep 17 00:00:00 2001 From: Banana Date: Tue, 16 Apr 2024 14:32:06 +0200 Subject: [PATCH] i18n static message headlines Signed-off-by: Banana --- webclient/i18n/eng.ini | 4 ++++ webclient/view/98/system/message.php | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/webclient/i18n/eng.ini b/webclient/i18n/eng.ini index e1264a6..fab75b1 100644 --- a/webclient/i18n/eng.ini +++ b/webclient/i18n/eng.ini @@ -158,6 +158,10 @@ manageuser.status = "Status" manageuser.created = global.created manageuser.input.apitoken.current = "Current Token:" +message.headline.error = "Error" +message.headline.warning = "Warning" +message.headline.success = "Success" + menu.lv1.show = "Show" menu.lv1.manage = "Manage" menu.search.advanced = "Advanced" diff --git a/webclient/view/98/system/message.php b/webclient/view/98/system/message.php index 7ee2185..f3588e0 100644 --- a/webclient/view/98/system/message.php +++ b/webclient/view/98/system/message.php @@ -20,20 +20,20 @@ if(isset($TemplateData['message']['content'])) { $cssClass = ''; - $headlineText = 'Information'; + $headlineText = $I18n->t('message.headline.information'); if(isset($TemplateData['message']['status'])) { switch($TemplateData['message']['status']) { case 'error': $cssClass = 'danger'; - $headlineText = 'Error'; + $headlineText = $I18n->t('message.headline.error'); break; case 'warning': $cssClass = 'warning'; - $headlineText = 'Warning'; + $headlineText = $I18n->t('message.headline.warning'); break; case 'success': $cssClass = 'success'; - $headlineText = 'Success'; + $headlineText = $I18n->t('message.headline.success'); break; case 'info': -- 2.39.5