]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
i18n for menu entries
authorBanana <mail@bananas-playground.net>
Sat, 20 Apr 2024 07:35:38 +0000 (09:35 +0200)
committerBanana <mail@bananas-playground.net>
Sat, 20 Apr 2024 07:35:38 +0000 (09:35 +0200)
Signed-off-by: Banana <mail@bananas-playground.net>
upgrade/from-version-1.6.txt
webclient/i18n/eng.ini
webclient/view/98/system/menu.php
webclient/view/default/system/menu.php

index e8a91e8271767ca43c13dd6ce7b1b9729e396d1a..5576e90369ef902ed093a7b57755ffec017dde27 100644 (file)
@@ -13,4 +13,14 @@ Replace #REPLACEME# with your table prefix. Default is bib
 ```
 UPDATE `#REPLACEME#_sys_fields` SET `value` = 'DOS,Windows 1,Windows 2,Windows 3,Windows 95,Windows 98,Windows XP,Windows 2000,Windows ME,Windows Vista,Windows 7,Windows 8,Windows 10,Windows 11', `apiinfo` = 'One of DOS,Windows 1,Windows 2,Windows 3,Windows 95,Windows 98,Windows XP,Windows 2000,Windows ME,Windows Vista,Windows 7,Windows 8,Windows 10,Windows 11' WHERE `#REPLACEME#_sys_fields`.`id` = 17;
 UPDATE `#REPLACEME#_menu` SET `action` = 'dashboard' WHERE `#REPLACEME#_menu`.`id` = 1;
+UPDATE `#REPLACEME#_menu_menu` SET `text` = 'menu.show.dashboard' WHERE `#REPLACEME#_menu`.`id` = 1;
+UPDATE `#REPLACEME#_menu` SET `text` = 'menu.show.collections' WHERE `#REPLACEME#_menu`.`id` = 2;
+UPDATE `#REPLACEME#_menu` SET `text` = 'menu.show.tags' WHERE `#REPLACEME#_menu`.`id` = 3;
+UPDATE `#REPLACEME#_menu` SET `text` = 'menu.show.sysinfo' WHERE `#REPLACEME#_menu`.`id` = 19;
+UPDATE `#REPLACEME#_menu` SET `text` = 'menu.manage.add' WHERE `#REPLACEME#_menu`.`id` = 4;
+UPDATE `#REPLACEME#_menu` SET `text` = 'menu.manage.tags' WHERE `#REPLACEME#_menu`.`id` = 6;
+UPDATE `#REPLACEME#_menu` SET `text` = 'menu.manage.collections' WHERE `#REPLACEME#_menu`.`id` = 7;
+UPDATE `#REPLACEME#_menu` SET `text` = 'menu.manage.users' WHERE `#REPLACEME#_menu`.`id` = 8;
+UPDATE `#REPLACEME#_menu` SET `text` = 'menu.manage.profile' WHERE `#REPLACEME#_menu`.`id` = 16;
+UPDATE `#REPLACEME#_menu` SET `text` = 'menu.manage.groups' WHERE `#REPLACEME#_menu`.`id` = 17;
 ```
index 5ce40b0bffb96d8ff3cc30faec0df9a9f5506d4f..21b86806cd128b9dd9fa16ccfa0eb88d158ee768 100644 (file)
@@ -27,6 +27,7 @@ global.clickremove = "Click to remove"
 global.close = "Close"
 global.collection = "Collection"
 global.collection.select.notice = "Please select a collection first"
+global.collections = "Collections"
 global.created = "Created"
 global.default = "Default"
 global.delete = "Delete"
@@ -62,6 +63,7 @@ global.save = "Save"
 global.search = "Search"
 global.search.resultfor = "Display result for: <b>%s</b>"
 global.sort = "Sort"
+global.tags = "Tags"
 global.title = "Title"
 global.user = "User"
 global.username = "Username"
@@ -200,12 +202,22 @@ message.headline.information = "Information"
 message.headline.success = "Success"
 message.headline.warning = "Warning"
 
-menu.lv1.manage = "Manage"
-menu.lv1.show = "Show"
+menu.manage = "Manage"
+menu.manage.add = global.add
+menu.manage.collections = global.collections
+menu.manage.groups = "Groups"
+menu.manage.profile = "Profile"
+menu.manage.tags = global.tags
+menu.manage.users = "Users"
 menu.search = global.search
 menu.search.advanced = "Advanced"
 menu.search.enter = "Press enter to search"
 menu.search.within = "Search within the default search field"
+menu.show = "Show"
+menu.show.collections = global.collections
+menu.show.dashboard = "Dashboard"
+menu.show.sysinfo = "System Information"
+menu.show.tags = global.tags
 
 pagination.gotopage = "Goto page"
 pagination.next = "next"
@@ -228,7 +240,7 @@ sysinfo.th.dbusage = "DB Usage"
 sysinfo.th.description = global.description
 sysinfo.th.diskusage = "Disk Usage"
 sysinfo.th.entries = "Entries"
-sysinfo.th.tags = "Tags"
+sysinfo.th.tags = global.tags
 
 tags.headline.tagsfor = "Tags for:"
 
index c991610b7246a7162965cc33fd0db7156db9492b..093b015468b147612573e5c5ae947d208f320ab7 100644 (file)
@@ -33,7 +33,7 @@ $_menuManage = $Gorenest->get('manage', false, $_contextActions);
 <menu role="tablist">
        <?php foreach($_menuShow as $entry) { ?>
                <li role="tab" <?php if($_requestMode == $entry['action']) echo 'aria-selected="true"'; ?>>
-                       <a href="index.php?p=<?php echo $entry['action']; ?>"><?php echo $entry['text']; ?></a>
+                       <a href="index.php?p=<?php echo $entry['action']; ?>"><?php echo $I18n->t($entry['text']); ?></a>
                </li>
        <?php } ?>
        <li role="tab">
@@ -48,10 +48,10 @@ $_menuManage = $Gorenest->get('manage', false, $_contextActions);
                <a href="index.php?p=advancedsearch"><?php echo $I18n->t('menu.search.advanced'); ?></a>
        </li>
 <?php if(!empty($_menuManage)) { ?>
-       <li role="tab"><a href=""><?php echo $I18n->t('menu.lv1.manage'); ?>:</a></li>
+       <li role="tab"><a href=""><?php echo $I18n->t('menu.manage'); ?>:</a></li>
        <?php foreach($_menuManage as $entry) { ?>
                <li role="tab" <?php if(!empty($_requestMode) && str_starts_with($entry['action'], $_requestMode)) echo 'aria-selected="true"'; ?>>
-                       <a href="index.php?p=<?php echo $entry['action']; ?>"><?php echo $entry['text']; ?></a>
+                       <a href="index.php?p=<?php echo $entry['action']; ?>"><?php echo $I18n->t($entry['text']); ?></a>
                </li>
        <?php } ?>
 <?php } ?>
index fa2126a93f5b6f89af4bd93d0aa2fd5ac18f5ef0..b88c782c220679b26f26c95ac394c66c8d48be48 100644 (file)
@@ -33,14 +33,14 @@ $_menuManage = $Gorenest->get('manage', false, $_contextActions);
        <div class="uk-navbar-left">
                <ul class="uk-navbar-nav">
                        <li class="uk-parent">
-                               <a href=""><?php echo $I18n->t('menu.lv1.show'); ?></a>
+                               <a href=""><?php echo $I18n->t('menu.show'); ?></a>
                                <div class="uk-navbar-dropdown">
                                        <ul class="uk-nav uk-navbar-dropdown-nav">
                                                <?php foreach($_menuShow as $entry) { ?>
                                                        <li>
                                                                <a href="index.php?p=<?php echo $entry['action']; ?>">
                                                                        <span class="uk-icon uk-margin-small-right" uk-icon="icon: <?php echo $entry['icon']; ?>"></span>
-                                                                       <?php echo $entry['text']; ?>
+                                                                       <?php echo $I18n->t($entry['text']); ?>
                                                                </a>
                                                        </li>
                                                <?php } ?>
@@ -49,14 +49,14 @@ $_menuManage = $Gorenest->get('manage', false, $_contextActions);
                        </li>
                        <?php if(!empty($_menuManage)) { ?>
                        <li class="uk-parent">
-                               <a href=""><?php echo $I18n->t('menu.lv1.manage'); ?></a>
+                               <a href=""><?php echo $I18n->t('menu.manage'); ?></a>
                                <div class="uk-navbar-dropdown">
                                        <ul class="uk-nav uk-navbar-dropdown-nav">
                                                <?php foreach($_menuManage as $entry) { ?>
                                                        <li>
                                                                <a href="index.php?p=<?php echo $entry['action']; ?>">
                                                                        <span class="uk-icon uk-margin-small-right" uk-icon="icon: <?php echo $entry['icon']; ?>"></span>
-                                                                       <?php echo $entry['text']; ?>
+                                    <?php echo $I18n->t($entry['text']); ?>
                                                                </a>
                                                        </li>
                                                <?php } ?>