From: Banana Date: Sat, 20 Apr 2024 07:35:38 +0000 (+0200) Subject: i18n for menu entries X-Git-Tag: 1.7~12 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=2976d74cb9d3ccb3d26905d8368654e908d66536;p=bibliotheca-php.git i18n for menu entries Signed-off-by: Banana --- diff --git a/upgrade/from-version-1.6.txt b/upgrade/from-version-1.6.txt index e8a91e8..5576e90 100644 --- a/upgrade/from-version-1.6.txt +++ b/upgrade/from-version-1.6.txt @@ -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; ``` diff --git a/webclient/i18n/eng.ini b/webclient/i18n/eng.ini index 5ce40b0..21b8680 100644 --- a/webclient/i18n/eng.ini +++ b/webclient/i18n/eng.ini @@ -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: %s" 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:" diff --git a/webclient/view/98/system/menu.php b/webclient/view/98/system/menu.php index c991610..093b015 100644 --- a/webclient/view/98/system/menu.php +++ b/webclient/view/98/system/menu.php @@ -33,7 +33,7 @@ $_menuManage = $Gorenest->get('manage', false, $_contextActions);
  • > - + t($entry['text']); ?>
  • @@ -48,10 +48,10 @@ $_menuManage = $Gorenest->get('manage', false, $_contextActions); t('menu.search.advanced'); ?>
  • -
  • t('menu.lv1.manage'); ?>:
  • +
  • t('menu.manage'); ?>:
  • > - + t($entry['text']); ?>
  • diff --git a/webclient/view/default/system/menu.php b/webclient/view/default/system/menu.php index fa2126a..b88c782 100644 --- a/webclient/view/default/system/menu.php +++ b/webclient/view/default/system/menu.php @@ -33,14 +33,14 @@ $_menuManage = $Gorenest->get('manage', false, $_contextActions);