Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add localization for MenuManager #117

Merged
merged 2 commits into from
Aug 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions bibtexbrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -2870,7 +2870,8 @@ function searchView() {
<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]; ?>"/>
<br/>
<input type="submit" value="search" class="input_box"/>
<!-- submit button -->
<input type="submit" value="<?php echo __("search"); ?>" class="input_box"/>
</form>
<?php
}
Expand All @@ -2879,9 +2880,9 @@ function searchView() {
function typeVC() {
$types = array();
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
if (isset($_GET[Q_TYPE_PAGE])) {
$page = $_GET[Q_TYPE_PAGE];
Expand Down Expand Up @@ -2965,7 +2966,7 @@ function displayMenu($title, $list, $page, $pageSize, $pageKey,
and the navigation links on the right -->
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
<tr class="btb-nav-title">
<td><b><?php echo $title; ?></b></td>
<td><b><?php echo __($title); ?></b></td>
<td class="btb-nav"><b>
<?php echo $this->menuPageBar($pageKey, $numEntries, $page,
$pageSize, $startIndex, $endIndex);?></b></td>
Expand Down