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

index 10182aabe47b77cd8b8cba70fe1b8a2472e40edf..e1264a62decf9560e45b856626cb217e7151d3cf 100644 (file)
@@ -158,6 +158,19 @@ manageuser.status = "Status"
 manageuser.created = global.created
 manageuser.input.apitoken.current = "Current Token:"
 
+menu.lv1.show = "Show"
+menu.lv1.manage = "Manage"
+menu.search.advanced = "Advanced"
+menu.search = global.search
+menu.search.enter = "Press enter to search"
+menu.search.within = "Search within the default search field"
+
+pagination.gotopage = "Goto page"
+pagination.next = "next"
+pagination.previous = "previous"
+pagination.select.sort.default = "Default"
+pagination.select.sort.latest = "Latest"
+
 profile.yourprofile = "Manage your profile"
 profile.input.maingroup = "Main group"
 profile.input.addgroups = "Additional groups"
@@ -172,11 +185,6 @@ sysinfo.th.created = global.created
 sysinfo.th.entries = "Entries"
 sysinfo.th.tags = "Tags"
 sysinfo.th.dbusage = "DB Usage"
+sysinfo.th.diskusage = "Disk Usage"
 
 
-
-pagination.gotopage = "Goto page"
-pagination.next = "next"
-pagination.previous = "previous"
-pagination.select.sort.default = "Default"
-pagination.select.sort.latest = "Latest"
index 659170ba32d50eddf21f5cf3e8e2f03c700670ea..c991610b7246a7162965cc33fd0db7156db9492b 100644 (file)
@@ -42,13 +42,13 @@ $_menuManage = $Gorenest->get('manage', false, $_contextActions);
                </a>
        </li>
        <li role="tab">
-               <a id="showNavSearch" href="#" onclick="showNavSearch();">Search</a>
+               <a id="showNavSearch" href="#" onclick="showNavSearch();"><?php echo $I18n->t('menu.search'); ?></a>
        </li>
        <li role="tab" <?php if($_requestMode == 'advancedsearch') echo 'aria-selected="true"'; ?>>
-               <a href="index.php?p=advancedsearch">Advanced search</a>
+               <a href="index.php?p=advancedsearch"><?php echo $I18n->t('menu.search.advanced'); ?></a>
        </li>
 <?php if(!empty($_menuManage)) { ?>
-       <li role="tab"><a href="">Manage:</a></li>
+       <li role="tab"><a href=""><?php echo $I18n->t('menu.lv1.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>
@@ -60,7 +60,7 @@ $_menuManage = $Gorenest->get('manage', false, $_contextActions);
 
 <dialog id="navSearchDialog" class="window">
        <div class="title-bar">
-               <div class="title-bar-text">Search</div>
+               <div class="title-bar-text"><?php echo $I18n->t('menu.search'); ?></div>
                <div class="title-bar-controls">
                        <button aria-label="Close" id="closeNavSearchDialog"></button>
                </div>
@@ -74,14 +74,14 @@ $_menuManage = $Gorenest->get('manage', false, $_contextActions);
                                }
                        }
                        ?>
-                       <input type="search" placeholder="Search..." name="navSearch" autofocus>
-                       <input type="submit" value="Search" />
-                       <p><a href="index.php?p=advancedsearch">Advanced</a></p>
+                       <input type="search" placeholder="<?php echo $I18n->t('menu.search'); ?>" name="navSearch" autofocus>
+                       <input type="submit" value="<?php echo $I18n->t('menu.search'); ?>" />
+                       <p><a href="index.php?p=advancedsearch"><?php echo $I18n->t('menu.search.advanced'); ?></a></p>
                </form>
        </div>
        <div class="status-bar">
-               <p class="status-bar-field">Press enter to search</p>
-               <p class="status-bar-field">Search within the default search field</p>
+               <p class="status-bar-field"><?php echo $I18n->t('menu.search.enter'); ?></p>
+               <p class="status-bar-field"><?php echo $I18n->t('menu.search.within'); ?></p>
        </div>
 </dialog>
 
index 7625f1a48a80ac3a453efb8c72201d34ae2acf51..88c9a69640e444c7157485b5d849ce10a57c9408 100644 (file)
@@ -33,7 +33,7 @@ $_menuManage = $Gorenest->get('manage', false, $_contextActions);
        <div class="uk-navbar-left">
                <ul class="uk-navbar-nav">
                        <li class="uk-parent">
-                               <a href="">Show</a>
+                               <a href="<?php echo $I18n->t('menu.lv1.show'); ?>"></a>
                                <div class="uk-navbar-dropdown">
                                        <ul class="uk-nav uk-navbar-dropdown-nav">
                                                <?php foreach($_menuShow as $entry) { ?>
@@ -49,7 +49,7 @@ $_menuManage = $Gorenest->get('manage', false, $_contextActions);
                        </li>
                        <?php if(!empty($_menuManage)) { ?>
                        <li class="uk-parent">
-                               <a href="">Manage</a>
+                               <a href=""><?php echo $I18n->t('menu.lv1.manage'); ?></a>
                                <div class="uk-navbar-dropdown">
                                        <ul class="uk-nav uk-navbar-dropdown-nav">
                                                <?php foreach($_menuManage as $entry) { ?>
@@ -66,7 +66,10 @@ $_menuManage = $Gorenest->get('manage', false, $_contextActions);
                        <?php } ?>
                        <li>
                                <a href="index.php?p=auth">
-                                       <?php if($Doomguy->isSignedIn() === true) { echo "Logout"; } else { echo "Login"; } ?>
+                                       <?php if($Doomguy->isSignedIn() === true) {
+                        echo $I18n->t('auth.logout');
+                    }
+                    else { echo $I18n->t('global.login'); } ?>
                                </a>
                        </li>
                </ul>
@@ -83,8 +86,8 @@ $_menuManage = $Gorenest->get('manage', false, $_contextActions);
                                                        }
                                                }
                                        ?>
-                                       <input class="uk-search-input" type="search" placeholder="Search..." name="navSearch" autofocus>
-                                       <small><a href="index.php?p=advancedsearch">Advanced</a></small>
+                                       <input class="uk-search-input" type="search" placeholder="<?php echo $I18n->t('menu.search'); ?>" name="navSearch" autofocus>
+                                       <small><a href="index.php?p=advancedsearch"><?php echo $I18n->t('menu.search.advanced'); ?></a></small>
                                </form>
                        </div>
                </div>