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:"
<?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>
<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>
<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'])) {
<?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
<?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>
<?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>