From: Banana Date: Tue, 16 Apr 2024 12:32:06 +0000 (+0200) Subject: i18n static message headlines X-Git-Tag: 1.7~20 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=c321b09019fcd47508c165fecaa9f021db1b0389;p=bibliotheca-php.git i18n static message headlines Signed-off-by: Banana --- 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':