]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
i18n static message headlines
authorBanana <mail@bananas-playground.net>
Tue, 16 Apr 2024 12:32:06 +0000 (14:32 +0200)
committerBanana <mail@bananas-playground.net>
Tue, 16 Apr 2024 12:32:06 +0000 (14:32 +0200)
Signed-off-by: Banana <mail@bananas-playground.net>
webclient/i18n/eng.ini
webclient/view/98/system/message.php

index e1264a62decf9560e45b856626cb217e7151d3cf..fab75b13214293deb5164d4702092e282d89765c 100644 (file)
@@ -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"
index 7ee21853a21e8ea2610025a3818321cd63501828..f3588e0a87d24e211e3d963338b2a860f2a19d6b 100644 (file)
 
 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':