add localization for MenuManager (#117)

Co-authored-by: Martin Monperrus <martin.monperrus@gnieh.org>
This commit is contained in:
christiankreidl
2022-08-31 09:41:18 +00:00
committed by GitHub
co-authored by Martin Monperrus
parent 166f973229
commit 7b457dcd03
+5 -4
View File
@@ -2870,7 +2870,8 @@ class MenuManager {
<input type="text" name="<?php echo Q_SEARCH; ?>" class="input_box" size="18"/> <input type="text" name="<?php echo Q_SEARCH; ?>" class="input_box" size="18"/>
<input type="hidden" name="<?php echo Q_FILE; ?>" value="<?php echo @$_GET[Q_FILE]; ?>"/> <input type="hidden" name="<?php echo Q_FILE; ?>" value="<?php echo @$_GET[Q_FILE]; ?>"/>
<br/> <br/>
<input type="submit" value="search" class="input_box"/> <!-- submit button -->
<input type="submit" value="<?php echo __("search"); ?>" class="input_box"/>
</form> </form>
<?php <?php
} }
@@ -2879,9 +2880,9 @@ class MenuManager {
function typeVC() { function typeVC() {
$types = array(); $types = array();
foreach ($this->db->getTypes() as $type) { foreach ($this->db->getTypes() as $type) {
$types[$type] = $type; $types[$type] = __($type);
} }
$types['.*'] = 'all types'; $types['.*'] = __('all types');;
// retreive or calculate page number to display // retreive or calculate page number to display
if (isset($_GET[Q_TYPE_PAGE])) { if (isset($_GET[Q_TYPE_PAGE])) {
$page = $_GET[Q_TYPE_PAGE]; $page = $_GET[Q_TYPE_PAGE];
@@ -2965,7 +2966,7 @@ else $page = 1;
and the navigation links on the right --> and the navigation links on the right -->
<table style="width:100%" border="0" cellspacing="0" cellpadding="0"> <table style="width:100%" border="0" cellspacing="0" cellpadding="0">
<tr class="btb-nav-title"> <tr class="btb-nav-title">
<td><b><?php echo $title; ?></b></td> <td><b><?php echo __($title); ?></b></td>
<td class="btb-nav"><b> <td class="btb-nav"><b>
<?php echo $this->menuPageBar($pageKey, $numEntries, $page, <?php echo $this->menuPageBar($pageKey, $numEntries, $page,
$pageSize, $startIndex, $endIndex);?></b></td> $pageSize, $startIndex, $endIndex);?></b></td>