]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
i18n tags view
authorBanana <mail@bananas-playground.net>
Tue, 16 Apr 2024 12:36:40 +0000 (14:36 +0200)
committerBanana <mail@bananas-playground.net>
Tue, 16 Apr 2024 12:36:40 +0000 (14:36 +0200)
Signed-off-by: Banana <mail@bananas-playground.net>
webclient/i18n/eng.ini
webclient/view/98/tags/tags.html
webclient/view/compact/tags/tags.html
webclient/view/default/tags/tags.html

index fab75b13214293deb5164d4702092e282d89765c..a6f961c6a170306a0438129282f0e38d10ffa6a0 100644 (file)
@@ -158,6 +158,7 @@ manageuser.status = "Status"
 manageuser.created = global.created
 manageuser.input.apitoken.current = "Current Token:"
 
+message.headline.information = "Information"
 message.headline.error = "Error"
 message.headline.warning = "Warning"
 message.headline.success = "Success"
@@ -191,4 +192,6 @@ sysinfo.th.tags = "Tags"
 sysinfo.th.dbusage = "DB Usage"
 sysinfo.th.diskusage = "Disk Usage"
 
+tags.headline.tagsfor = "Tags for:"
+
 
index 93cee6a10ee76e6edc0b414e440d492639a34f0e..9eba97f05015e0862ddfc349d28229a9db0ebfff 100644 (file)
@@ -1,13 +1,13 @@
 <?php if(!empty($TemplateData['search'])) { ?>
 <div class="window">
        <div class="title-bar">
-               <div class="title-bar-text">Search</div>
+               <div class="title-bar-text"><?php echo $I18n->t('global.search'); ?></div>
                <div class="title-bar-controls">
                        <button aria-label="Close" id="searchNoteWindowCloseButton"></button>
                </div>
        </div>
        <div class="window-body">
-               <p>Display result for: <b><?php echo $TemplateData['search']; ?></b></p>
+               <p><?php echo $I18n->t('global.search.resultfor', $TemplateData['search'] ?? ''); ?></p>
        </div>
 </div>
 <script>
@@ -19,7 +19,7 @@
 <?php } ?>
 
 <?php if(!empty($TemplateData['tags'])) { ?>
-       <h3>Tags for: <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id'] ?? ''; ?>"><?php echo $TemplateData['loadedCollection']['name'] ?? ''; ?></a></h3>
+       <h3><?php echo $I18n->t('tags.headline.tagsfor'); ?> <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id'] ?? ''; ?>"><?php echo $TemplateData['loadedCollection']['name'] ?? ''; ?></a></h3>
 
        <?php foreach($TemplateData['tags'] as $k=>$v) { ?>
        <h4><?php echo $v['displayname']; ?></h4>
        <?php } ?>
 
 <?php } elseif(!empty($TemplateData['collections'])) { ?>
-       <h3>Please select a collection first</h3>
+       <h3><?php echo $I18n->t('global.collection.select.notice'); ?></h3>
        <div class="sunken-panel">
                <table width="100%">
                        <thead>
                        <tr>
-                               <th width="100px">Name</th>
-                               <th>Description</th>
+                               <th width="100px"><?php echo $I18n->t('global.name'); ?></th>
+                               <th><?php echo $I18n->t('global.description'); ?></th>
                        </tr>
                        </thead>
                        <tbody>
index a0da76e084509aca1c1e75603549b975800c4e3e..9c5b10f5d615a34486e6110cf6e21802e411df4e 100644 (file)
@@ -1,12 +1,12 @@
 <div class="uk-grid-small uk-grid-row-small" uk-grid>
        <div class="uk-width-1-2@l">
        <?php if(!empty($TemplateData['tags'])) { ?>
-               <h3 class="uk-h3">Tags for: <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id'] ?? ''; ?>"><?php echo $TemplateData['loadedCollection']['name'] ?? ''; ?></a></h3>
+               <h3 class="uk-h3"><?php echo $I18n->t('tags.headline.tagsfor'); ?> <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id'] ?? ''; ?>"><?php echo $TemplateData['loadedCollection']['name'] ?? ''; ?></a></h3>
 
                <?php if(!empty($TemplateData['search'])) { ?>
                <div uk-alert id="searchNotice">
                        <button class="uk-alert-close" type="button" uk-close></button>
-                       <p>Display result for: <b><?php echo $TemplateData['search']; ?></b></p>
+                       <p><?php echo $I18n->t('global.search.resultfor', $TemplateData['search'] ?? ''); ?></p>
                </div>
                <script type="text/javascript">
                        UIkit.util.on('#searchNotice', 'hide', function () {
@@ -25,7 +25,7 @@
                <?php } ?>
 
        <?php } elseif(!empty($TemplateData['collections'])) { ?>
-               <h3 class="uk-heading-divider">Please select a collection first</h3>
+               <h3 class="uk-heading-divider"><?php echo $I18n->t('global.collection.select.notice'); ?></h3>
                <dl class="uk-description-list">
                        <?php foreach($TemplateData['collections'] as $k=>$v) { ?>
                        <dt><a href="index.php?p=tags&collection=<?php echo $k; ?>"><?php echo $v['name']; ?></a></dt>
index 8d674ba04cae501a56c794777cf0ca81c174accc..b0c15601eca5ee5aff1d68fde4db8a3498821762 100644 (file)
@@ -1,12 +1,12 @@
 <div class="uk-grid-small uk-grid-row-small" uk-grid>
        <div class="uk-width-1-2@l">
        <?php if(!empty($TemplateData['tags'])) { ?>
-               <h3 class="uk-h3">Tags for: <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id'] ?? ''; ?>"><?php echo $TemplateData['loadedCollection']['name'] ?? ''; ?></a></h3>
+               <h3 class="uk-h3"><?php echo $I18n->t('tags.headline.tagsfor'); ?> <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id'] ?? ''; ?>"><?php echo $TemplateData['loadedCollection']['name'] ?? ''; ?></a></h3>
 
                <?php if(!empty($TemplateData['search'])) { ?>
                <div uk-alert id="searchNotice">
                        <button class="uk-alert-close" type="button" uk-close></button>
-                       <p>Display result for: <b><?php echo $TemplateData['search']; ?></b></p>
+                       <p><?php echo $I18n->t('global.search.resultfor', $TemplateData['search'] ?? ''); ?></p>
                </div>
                <script type="text/javascript">
                        UIkit.util.on('#searchNotice', 'hide', function () {
@@ -25,7 +25,7 @@
                <?php } ?>
 
        <?php } elseif(!empty($TemplateData['collections'])) { ?>
-               <h3 class="uk-h3">Please select a collection first</h3>
+               <h3 class="uk-h3"><?php echo $I18n->t('global.collection.select.notice'); ?></h3>
                <dl class="uk-description-list uk-description-list-divider">
                        <?php foreach($TemplateData['collections'] as $k=>$v) { ?>
                        <dt><a href="index.php?p=tags&collection=<?php echo $k; ?>"><?php echo $v['name']; ?></a></dt>