]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
i18n dashboard and edit main view
authorBanana <mail@bananas-playground.net>
Mon, 15 Apr 2024 13:18:08 +0000 (15:18 +0200)
committerBanana <mail@bananas-playground.net>
Mon, 15 Apr 2024 13:18:08 +0000 (15:18 +0200)
Signed-off-by: Banana <mail@bananas-playground.net>
webclient/i18n/eng.ini
webclient/view/98/dashboard/dashboard.html
webclient/view/98/entry/entry.html
webclient/view/compact/dashboard/dashboard.html
webclient/view/compact/entry/entry.html
webclient/view/default/dashboard/dashboard.html
webclient/view/default/entry/entry.html

index 005ecc468e9684d213bbd18a9d38c2bcb7b501cb..06da82494cb68a78ae5454586852843529728dcd 100644 (file)
@@ -107,6 +107,7 @@ global.clear = "Clear"
 global.password = "Password"
 global.username = "Username"
 global.login = "Login"
+global.close = "Close"
 
 pagination.previous = "previous"
 pagination.gotopage = "Goto page"
index 3cefe5ab89ee235d04523fa62bf515b5ef33978f..169e5be318dcfd6cf4b0396fc28d260a33dcc5fd 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>
+                       <button aria-label="<?php echo $I18n->t('global.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.view'); ?></th>
                                </tr>
                        </thead>
                        <tbody>
@@ -57,7 +57,7 @@
                                                } ?>
                                        </td>
                                        <td>
-                                               <a href="index.php?p=entry&collection=<?php echo $k ?>&id=<?php echo $entryK; ?>">View</a>
+                                               <a href="index.php?p=entry&collection=<?php echo $k ?>&id=<?php echo $entryK; ?>"><?php echo $I18n->t('global.view'); ?></a>
                                        </td>
                                </tr>
                        <?php } ?>
index 1affd815eb99159423c48dfb90262943b595945f..935abf68fe3585cae988c96d4989a1833746acdc 100644 (file)
@@ -1,7 +1,7 @@
 <h3><a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id'] ?? ''; ?>"><?php echo $TemplateData['loadedCollection']['name'] ?? ''; ?></a></h3>
 <article>
        <?php if($TemplateData['showEdit'] === true) { ?>
-       <p><a href="index.php?p=manageentry&collection=<?php echo $TemplateData['loadedCollection']['id'] ?? ''; ?>&id=<?php echo $TemplateData['entry']['id'] ?? ''; ?>">EDIT</a></p>
+       <p><a href="index.php?p=manageentry&collection=<?php echo $TemplateData['loadedCollection']['id'] ?? ''; ?>&id=<?php echo $TemplateData['entry']['id'] ?? ''; ?>"><?php echo $I18n->t('global.edit'); ?></a></p>
        <?php
        }
 
index 569f22736cc00f89722086f02f9982190aea69b5..811e0feafa3e21d31c219b269d654fa86e78f168 100644 (file)
@@ -1,7 +1,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 () {
@@ -43,7 +43,7 @@
                                <?php } ?>
                        </div>
                        <div class="uk-card-footer">
-                               <a href="index.php?p=entry&collection=<?php echo $k ?>&id=<?php echo $entryK; ?>" class="uk-button uk-button-text">View</a>
+                               <a href="index.php?p=entry&collection=<?php echo $k ?>&id=<?php echo $entryK; ?>" class="uk-button uk-button-text"><?php echo $I18n->t('global.view'); ?></a>
                        </div>
                </div>
        </div>
index 3bc4b6f502cfa2d665ec3f901086399942fbdd02..5e6cae8c7d03b14cae076784dc029888736d19ee 100644 (file)
@@ -3,7 +3,7 @@
        <li><a href="index.php?p=collections" class="uk-icon-link" uk-icon="database"></a></li>
        <li><a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id'] ?? ''; ?>"><?php echo $TemplateData['loadedCollection']['name'] ?? ''; ?></a></li>
        <?php if($TemplateData['showEdit'] === true) { ?>
-       <li><a href="index.php?p=manageentry&collection=<?php echo $TemplateData['loadedCollection']['id'] ?? ''; ?>&id=<?php echo $TemplateData['entry']['id']; ?>">Edit</a></li>
+       <li><a href="index.php?p=manageentry&collection=<?php echo $TemplateData['loadedCollection']['id'] ?? ''; ?>&id=<?php echo $TemplateData['entry']['id']; ?>"><?php echo $I18n->t('global.edit'); ?></a></li>
        <?php } ?>
 </ul>
 <div class="uk-grid-small uk-grid-row-small uk-grid-row-small" uk-grid>
index 40966c7ac9df003535fd1b433973696f6938a1b2..b1e0d56220ba426d0ef6192f523f8ff78bd4071b 100644 (file)
@@ -1,7 +1,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 () {
@@ -41,7 +41,7 @@
                                        <?php } ?>
                                </div>
                                <div class="uk-card-footer">
-                                       <a href="index.php?p=entry&collection=<?php echo $k ?>&id=<?php echo $entryK; ?>" class="uk-button uk-button-text">View</a>
+                                       <a href="index.php?p=entry&collection=<?php echo $k ?>&id=<?php echo $entryK; ?>" class="uk-button uk-button-text"><?php echo $I18n->t('global.view'); ?></a>
                                </div>
                        </div>
                </div>
index 05855b1e939caa17344724ef45a4674778ed6c7d..ac3229fde31ab99b2f80a2a2a0cacd81cb8a435e 100644 (file)
@@ -3,7 +3,7 @@
        <div class="uk-width-1-2@l">
                <article class="uk-article">
                        <?php if($TemplateData['showEdit'] === true) { ?>
-                       <p class="uk-article-meta"><a href="index.php?p=manageentry&collection=<?php echo $TemplateData['loadedCollection']['id'] ?? ''; ?>&id=<?php echo $TemplateData['entry']['id']; ?>">EDIT</a></p>
+                       <p class="uk-article-meta"><a href="index.php?p=manageentry&collection=<?php echo $TemplateData['loadedCollection']['id'] ?? ''; ?>&id=<?php echo $TemplateData['entry']['id']; ?>"><?php echo $I18n->t('global.search'); ?></a></p>
                        <?php
                        }