]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
i18n collections view
authorBanana <mail@bananas-playground.net>
Mon, 15 Apr 2024 13:05:28 +0000 (15:05 +0200)
committerBanana <mail@bananas-playground.net>
Mon, 15 Apr 2024 13:05:28 +0000 (15:05 +0200)
Signed-off-by: Banana <mail@bananas-playground.net>
webclient/i18n/eng.ini
webclient/view/98/auth/auth.html
webclient/view/98/bulkedit/bulkedit.html
webclient/view/98/collections/collections.html
webclient/view/compact/collections/collections.html
webclient/view/default/auth/auth.html
webclient/view/default/bulkedit/bulkedit.html
webclient/view/default/collections/collections.html

index f2268d047bdc796a1806822ae1331e915463c898..005ecc468e9684d213bbd18a9d38c2bcb7b501cb 100644 (file)
@@ -110,4 +110,6 @@ global.login = "Login"
 
 pagination.previous = "previous"
 pagination.gotopage = "Goto page"
-pagionation.next = "next"
+pagination.next = "next"
+pagination.select.sort.default = "Default"
+pagination.select.sort.latest = "Latest"
index 735e8d028fa5b5398738248e1fb1debc1974a8d6..e1e0eebd3cb163ca6ade2f870d7ebfd7155abf3e 100644 (file)
@@ -17,7 +17,7 @@
                <input id="password" type="password" autocomplete="off" name="fdata[password]">
        </div>
        <div class="field-row">
-               <input type="submit" value="Login" name="submitForm" />
+               <input type="submit" value="<?php echo $I18n->t('global.login'); ?>" name="submitForm" />
        </div>
 </form>
 <?php } ?>
index dbab5d377c7b7bbd1592c65999e99d33506157ed..1073432c6824e8086045a1aad3932444bd1489d0 100644 (file)
@@ -1,4 +1,4 @@
-<h3 class="uk-h3">Bulkedit these entries in: <a href="index.php?p=colletions&collection<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
+<h3 class="uk-h3"><?php echo $I18n->t('bulkedit.headline.edit'); ?> <a href="index.php?p=colletions&collection<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
 
 <?php if(!empty($TemplateData['itemsToWorkWith'])) { ?>
 
@@ -26,7 +26,7 @@
        }
 ?>
        <div class="field-row-stacked">
-               <input type="submit" name="submitForm" value="Save">
+               <input type="submit" name="submitForm" value="<?php echo $I18n->t('global.save'); ?>">
        </div>
 
 </form>
index 29c9a9ad735babf7c7c8b8da246b0bbc3ebb1d9a..b7b9acb79f26f4de785a274432f9049380fa38f8 100644 (file)
@@ -10,9 +10,9 @@
                ?>
                <select name="s">
                        <?php if(!empty($TemplateData['defaultSortField'])) { ?>
-                       <option value="<?php echo $TemplateData['defaultSortField']; ?>">Default</option>
+                       <option value="<?php echo $TemplateData['defaultSortField']; ?>"><?php echo $I18n->t('pagination.select.sort.default'); ?></option>
                        <?php } else { ?>
-                       <option value="">Latest</option>
+                       <option value=""><?php echo $I18n->t('pagination.select.sort.latest'); ?></option>
                        <?php } ?>
 
                        <?php
                        ?>
                </select>
                <select name="sd">
-                       <option value="ASC" <?php echo ($TemplateData['pagination']['currentGetParameters']['sd'] ?? '') == 'ASC' ? 'selected' : '' ?>>ascending</option>
-                       <option value="DESC" <?php echo ($TemplateData['pagination']['currentGetParameters']['sd'] ?? '') == 'DESC' ? 'selected' : '' ?>>descending</option>
+                       <option value="ASC" <?php echo ($TemplateData['pagination']['currentGetParameters']['sd'] ?? '') == 'ASC' ? 'selected' : '' ?>><?php echo $I18n->t('global.ascending'); ?></option>
+                       <option value="DESC" <?php echo ($TemplateData['pagination']['currentGetParameters']['sd'] ?? '') == 'DESC' ? 'selected' : '' ?>><?php echo $I18n->t('global.descending'); ?></option>
                </select>
-               <input type="submit" value="Sort" />
+               <input type="submit" value="<?php echo $I18n->t('global.sort'); ?>" />
        </form>
        <?php } ?>
 
 <?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>
        <table width="100%">
                <thead>
                <tr>
-                       <th width="60px">Image</th>
-                       <th width="300px">Title</th>
-                       <th>Description</th>
-                       <th width="60px">View</th>
+                       <th width="60px"><?php echo $I18n->t('global.image'); ?></th>
+                       <th width="300px"><?php echo $I18n->t('global.title'); ?></th>
+                       <th><?php echo $I18n->t('global.description'); ?></th>
+                       <th width="60px"><?php echo $I18n->t('global.sort'); ?></th>
                </tr>
                </thead>
                <tbody>
                                                        } ?>
                                </td>
                                <td>
-                                       <a href="<?php echo $TemplateData['entryLinkPrefix']; ?>&id=<?php echo $entryK; ?>">View</a>
+                                       <a href="<?php echo $TemplateData['entryLinkPrefix']; ?>&id=<?php echo $entryK; ?>"><?php echo $I18n->t('global.view'); ?></a>
                                </td>
                        </tr>
                <?php } ?>
                </tbody>
-               </tbody>
        </table>
 </div>
 <?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 343593a78a3fb576ce1eb2d331444957980d174b..d7b463afdf8974596a4705399821c4da87a5852d 100644 (file)
@@ -8,13 +8,13 @@
        <div class="uk-width-2-3">
                <?php if(!isset($TemplateData['pagination']['hideSort'])) { ?>
                <div class="uk-inline">
-                       <button class="uk-button uk-button-default uk-button-small" type="button">Sort</button>
+                       <button class="uk-button uk-button-default uk-button-small" type="button"><?php echo $I18n->t('global.sort'); ?></button>
                        <div uk-dropdown>
                                <ul class="uk-nav uk-dropdown-nav">
                                        <?php if(!empty($TemplateData['defaultSortField'])) { ?>
-                                       <li><a href="index.php?<?php echo Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('s'=>$TemplateData['defaultSortField'],'sd'=>$TemplateData['defaultSortOrder'])); ?>">Default</a></li>
+                                       <li><a href="index.php?<?php echo Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('s'=>$TemplateData['defaultSortField'],'sd'=>$TemplateData['defaultSortOrder'])); ?>"><?php echo $I18n->t('pagination.select.sort.default'); ?></a></li>
                                        <?php } else { ?>
-                                       <li><a href="index.php?<?php echo Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('s'=>'','sd'=>'ASC')); ?>">Latest</a></li>
+                                       <li><a href="index.php?<?php echo Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('s'=>'','sd'=>'ASC')); ?>"><?php echo $I18n->t('pagination.select.sort.latest'); ?></a></li>
                                        <?php } ?>
 
                                        <?php
@@ -41,7 +41,7 @@
 <?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 () {
@@ -77,7 +77,7 @@
                                <?php } ?>
                        </div>
                        <div class="uk-card-footer">
-                               <a href="<?php echo $TemplateData['entryLinkPrefix']; ?>&id=<?php echo $entryK; ?>" class="uk-button uk-button-text">View</a>
+                               <a href="<?php echo $TemplateData['entryLinkPrefix']; ?>&id=<?php echo $entryK; ?>" class="uk-button uk-button-text"><?php echo $I18n->t('global.view'); ?></a>
                        </div>
                </div>
        </div>
@@ -86,7 +86,7 @@
 <?php } elseif(!empty($TemplateData['collections'])) { ?>
 <div class="uk-grid-small uk-grid-row-small uk-grid-row-small" uk-grid>
        <div class="uk-width-2-3@m uk-width-1-2@xl">
-               <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=collections&collection=<?php echo $k; ?>"><?php echo $v['name']; ?></a></dt>
index 671fe41d79fc6e8a5aa513f8ecbb29dc019d2292..9850e4f2bac99cf910b90e394b18a09c0e1d72a0 100644 (file)
@@ -22,7 +22,7 @@
                </div>
                <div class="uk-margin">
                        <button class="uk-button uk-button-primary" type="submit" name="submitForm">
-                               Login
+                               <?php echo $I18n->t('global.login'); ?>
                                <span class="uk-icon" uk-icon="icon: sign-in"></span>
                        </button>
                </div>
index 7769aaa68febb9731b04cd9e134598dea29c9f99..ef4d3f4192dfddc39eda9f765f48bd741b55929c 100644 (file)
@@ -1,4 +1,4 @@
-<h3 class="uk-h3">Bulkedit these entries in: <a href="index.php?p=colletions&collection<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
+<h3 class="uk-h3"><?php echo $I18n->t('bulkedit.headline.edit'); ?> <a href="index.php?p=colletions&collection<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
 
 <?php if(!empty($TemplateData['itemsToWorkWith'])) { ?>
 
@@ -26,7 +26,7 @@
 ?>
                        <div class="uk-margin">
                                <button class="uk-button uk-button-primary" type="submit" name="submitForm">
-                                       Save
+                                       <?php echo $I18n->t('global.save'); ?>
                                </button>
                        </div>
 
index d16e2f51f2006a593698194ae780b7ba60f7e27e..47a6afcc37a7d5a05aa8557d9c18da8d4b1a5a6e 100644 (file)
@@ -8,13 +8,13 @@
        <div class="uk-width-2-3">
                <?php if(!isset($TemplateData['pagination']['hideSort'])) { ?>
                <div class="uk-inline">
-                       <button class="uk-button uk-button-default uk-button-small" type="button">Sort</button>
+                       <button class="uk-button uk-button-default uk-button-small" type="button"><?php echo $I18n->t('global.sort'); ?></button>
                        <div uk-dropdown>
                                <ul class="uk-nav uk-dropdown-nav">
                                        <?php if(!empty($TemplateData['defaultSortField'])) { ?>
-                                       <li><a href="index.php?<?php echo Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('s'=>$TemplateData['defaultSortField'],'sd'=>$TemplateData['defaultSortOrder'])); ?>">Default</a></li>
+                                       <li><a href="index.php?<?php echo Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('s'=>$TemplateData['defaultSortField'],'sd'=>$TemplateData['defaultSortOrder'])); ?>"><?php echo $I18n->t('pagination.select.sort.default'); ?></a></li>
                                        <?php } else { ?>
-                                       <li><a href="index.php?<?php echo Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('s'=>'','sd'=>'ASC')); ?>">Latest</a></li>
+                                       <li><a href="index.php?<?php echo Summoner::createFromParameterLinkQuery($TemplateData['pagination']['currentGetParameters'],array('s'=>'','sd'=>'ASC')); ?>"><?php echo $I18n->t('pagination.select.sort.latest'); ?></a></li>
                                        <?php } ?>
 
                                        <?php
@@ -41,7 +41,7 @@
 <?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 () {
                                <?php } ?>
                        </div>
                        <div class="uk-card-footer">
-                               <a href="<?php echo $TemplateData['entryLinkPrefix']; ?>&id=<?php echo $entryK; ?>" class="uk-button uk-button-text">View</a>
+                               <a href="<?php echo $TemplateData['entryLinkPrefix']; ?>&id=<?php echo $entryK; ?>" class="uk-button uk-button-text"><?php echo $I18n->t('global.View'); ?></a>
                        </div>
                </div>
        </div>
        <?php } ?>
 </div>
 <?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>
 <div class="uk-grid-small uk-grid-row-small uk-grid-row-small" uk-grid>
        <div class="uk-width-2-3@m uk-width-1-2@xl">
                <dl class="uk-description-list uk-description-list-divider">