]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
advanced search translations
authorBanana <mail@bananas-playground.net>
Mon, 15 Apr 2024 12:47:24 +0000 (14:47 +0200)
committerBanana <mail@bananas-playground.net>
Mon, 15 Apr 2024 12:47:24 +0000 (14:47 +0200)
Signed-off-by: Banana <mail@bananas-playground.net>
webclient/i18n/eng.ini
webclient/view/98/advancedsearch/advancedsearch.html
webclient/view/compact/advancedsearch/advancedsearch.html
webclient/view/default/advancedsearch/advancedsearch.html

index 6f6d6ad1f6c0c257a82909368df8ed89bfb49b30..f2268d047bdc796a1806822ae1331e915463c898 100644 (file)
@@ -39,6 +39,9 @@ advsearch.operators.quote = 'A phrase that is enclosed within double quote (") c
 advsearch.result = "Display result for: <b>%s</b><br>(Max. result of 60)"
 advsearch.submit.bulkedit = "Bulkedit these results"
 advsearch.input.search.label = "Search for"
+advsearch.input.tableview = "Table view"
+advsearch.togglesearch = "Toggle search"
+advsearch.tableview.description = "Make sure to define the fields which will be used in table view in collection config"
 
 bulkedit.headline.edit = "Bulkedit these entries in:"
 
index 3cd6bc85656fdcdfe5c113d1b33ca532d5102239..186cf61631c7c94c58bfdb474bb0cd01fe688efc 100644 (file)
        <?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><br>
-                                       (Max. result of 60)
-                               </p>
+                               <p><?php echo $I18n->t('advsearch.result', $TemplateData['search'] ?? ''); ?></p>
                        </div>
                </div>
                <script>
@@ -74,7 +71,7 @@
                        <input type="hidden" name="bulkedit[]" value="<?php echo $f; ?>" />
                        <?php } ?>
                        <div class="field-row">
-                               <input type="submit" value="Bulkedit these results">
+                               <input type="submit" value="<?php echo $I18n->t('advsearch.submit.bulkedit'); ?>">
                        </div>
                </form>
 
@@ -82,7 +79,7 @@
                        <table width="100%">
                                <thead>
                                <tr>
-                                       <th width="60px">View</th>
+                                       <th width="60px"><?php echo $I18n->t('global.view'); ?></th>
                                        <?php
                                        foreach($TemplateData['collectionFields'] as $f) {
                                                if(in_array($f['id'],$TemplateData['loadedCollection']['advancedSearchTableFields'])) {
@@ -97,7 +94,7 @@
                                <?php foreach($TemplateData['entries']['results'] as $entryK=>$entry) { ?>
                                <tr>
                                        <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>
 
                                        <?php
index 02855e1692780bf6adc1dca162d5905624c7967d..0307347d6b1b60bba59d782bafb76f1d2d9287d9 100644 (file)
@@ -3,9 +3,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><br />
-               <small>(Max. result of 60)</small>
-       </p>
+       <p><?php echo $I18n->t('advsearch.result', $TemplateData['search'] ?? ''); ?></p>
 </div>
 <div class="uk-padding-small uk-padding-remove-left">
        <script type="text/javascript">
                });
        </script>
        <button class="uk-button uk-button-default uk-button-small"
-               type="button" uk-toggle="target: #searchFrame; animation: uk-animation-scale-down; cls: uk-hidden">Toggle search</button>
+               type="button" uk-toggle="target: #searchFrame; animation: uk-animation-scale-down; cls: uk-hidden"><?php echo $I18n->t('advsearch.togglesearch'); ?></button>
        <?php if(!empty($TemplateData['entries']) && $Doomguy->isSignedIn() === true) { ?>
        <form method="post" action="index.php?p=bulkedit&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>" class="uk-display-inline-block">
                <?php foreach($TemplateData['entries']['ids'] as $f) { ?>
                <input type="hidden" name="bulkedit[]" value="<?php echo $f; ?>" />
                <?php } ?>
-               <button type="submit" class="uk-button uk-button-default uk-button-small">Bulkedit these results</button>
+               <button type="submit" class="uk-button uk-button-default uk-button-small"><?php echo $I18n->t('advsearch.submit.bulkedit'); ?></button>
        </form>
        <?php } ?>
 </div>
                                </div>
                        </div>
                        <div class="uk-margin">
-                               <div class="uk-form-label">Table view</div>
+                               <div class="uk-form-label"><?php echo $I18n->t('advsearch.input.tableview'); ?></div>
                                <div class="uk-form-controls uk-form-controls-text">
                                        <label>
                                                <input class="uk-checkbox" type="checkbox" name="fdata[tableView]" value="1"><br>
-                                               <small>Make sure to define the fields which will be used in table view in collection config</small>
+                                               <small><?php echo $I18n->t('advsearch.tableview.description'); ?></small>
                                        </label>
                                </div>
                        </div>
                                        <?php } ?>
                                </div>
                                <div class="uk-card-footer">
-                                       <a href="<?php echo $TemplateData['entryLinkPrefix']; ?>&id=<?php echo $entryK; ?>" class="uk-button uk-button-text" target=_blank>View</a>
+                                       <a href="<?php echo $TemplateData['entryLinkPrefix']; ?>&id=<?php echo $entryK; ?>" class="uk-button uk-button-text" target=_blank><?php echo $I18n->t('global.view'); ?></a>
                                </div>
                        </div>
                </div>
index d68f138a4bac44cb2c6945b1adcf01b4bc08199d..f45fb478bbe87b9a23cd0a1143ead2877c3805a5 100644 (file)
@@ -3,9 +3,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><br />
-               <small>(Max. result of 60)</small>
-       </p>
+       <p><?php echo $I18n->t('advsearch.result', $TemplateData['search'] ?? ''); ?></p>
 </div>
 <div class="uk-padding-small uk-padding-remove-left">
        <script type="text/javascript">
                });
        </script>
        <button class="uk-button uk-button-default uk-button-small"
-               type="button" uk-toggle="target: #searchFrame; animation: uk-animation-scale-down; cls: uk-hidden">Toggle search</button>
+               type="button" uk-toggle="target: #searchFrame; animation: uk-animation-scale-down; cls: uk-hidden"><?php echo $I18n->t('advsearch.togglesearch'); ?></button>
        <?php if(!empty($TemplateData['entries']) && $Doomguy->isSignedIn() === true) { ?>
        <form method="post" action="index.php?p=bulkedit&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>" class="uk-display-inline-block">
-               <button type="submit" class="uk-button uk-button-default uk-button-small">Bulkedit these results</button>
+               <button type="submit" class="uk-button uk-button-default uk-button-small"><?php echo $I18n->t('advsearch.submit.bulkedit'); ?></button>
                <?php foreach($TemplateData['entries']['ids'] as $f) { ?>
                <input type="hidden" name="bulkedit[]" value="<?php echo $f; ?>" />
                <?php } ?>
                                </div>
                        </div>
                        <div class="uk-margin">
-                               <div class="uk-form-label">Table view</div>
+                               <div class="uk-form-label"><?php echo $I18n->t('advsearch.input.tableview'); ?></div>
                                <div class="uk-form-controls uk-form-controls-text">
                                        <label>
                                                <input class="uk-checkbox" type="checkbox" name="fdata[tableView]" value="1"><br>
-                                               <small>Make sure to define the fields which will be used in table view in collection config</small>
+                                               <small><?php echo $I18n->t('advsearch.tableview.description'); ?></small>
                                        </label>
                                </div>
                        </div>
                                <?php } ?>
                        </div>
                        <div class="uk-card-footer">
-                               <a href="<?php echo $TemplateData['entryLinkPrefix']; ?>&id=<?php echo $entryK; ?>" class="uk-button uk-button-text" target=_blank>View</a>
+                               <a href="<?php echo $TemplateData['entryLinkPrefix']; ?>&id=<?php echo $entryK; ?>" class="uk-button uk-button-text" target=_blank><?php echo $I18n->t('global.view'); ?></a>
                        </div>
                </div>
        </div>