summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-01-25 08:30:07 -0200
committerRenato Botelho <renato@netgate.com>2016-01-25 08:30:07 -0200
commitb323327d9df026d78fb97f47e71330d22a90b522 (patch)
tree71edb8dc946e665a91a7814bdccda106d2ffbe75 /src/usr/local/www
parent7b8ffaeda181c551c2c74e50bee3958d2c4f04de (diff)
parent9ed9b7654d2f4bb70983cc035b9d8a74c41716b1 (diff)
downloadpfsense-b323327d9df026d78fb97f47e71330d22a90b522.zip
pfsense-b323327d9df026d78fb97f47e71330d22a90b522.tar.gz
Merge pull request #2531 from phil-davis/patch-8
Diffstat (limited to 'src/usr/local/www')
-rw-r--r--src/usr/local/www/pkg_mgr_installed.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/usr/local/www/pkg_mgr_installed.php b/src/usr/local/www/pkg_mgr_installed.php
index 56555f4..93fd475 100644
--- a/src/usr/local/www/pkg_mgr_installed.php
+++ b/src/usr/local/www/pkg_mgr_installed.php
@@ -125,28 +125,28 @@ if (empty($installed_packages)):?>
// package is configured, but does not exist in the system
$txtcolor = "text-danger";
$missing = true;
- $status = 'Package is configured, but not installed!';
+ $status = gettext('Package is configured, but not installed!');
} else if (isset($pkg['installed_version']) && isset($pkg['version'])) {
$version_compare = pkg_version_compare($pkg['installed_version'], $pkg['version']);
if ($version_compare == '>') {
// we're running a newer version of the package
- $status = 'Newer than available ('. $pkg['version'] .')';
+ $status = sprintf(gettext('Newer than available (%s)'), $pkg['version']);
} else if ($version_compare == '<') {
// we're running an older version of the package
- $status = 'Upgrade available to '.$pkg['version'];
+ $status = sprintf(gettext('Upgrade available to %s'), $pkg['version']);
$txtcolor = "text-warning";
$upgradeavail = true;
$vergetstr = '&amp;from=' . $pkg['installed_version'] . '&amp;to=' . $pkg['version'];
} else if ($version_compare == '=') {
// we're running the current version
- $status = 'Up-to-date';
+ $status = gettext('Up-to-date');
} else {
- $status = 'Error comparing version';
+ $status = gettext('Error comparing version');
}
} else {
// unknown available package version
- $status = 'Unknown';
+ $status = gettext('Unknown');
$statusicon = 'question';
}
?>
@@ -185,11 +185,11 @@ if (empty($installed_packages)):?>
</td>
<td>
<div class="row">
- <a title="<?=gettext("Remove")?>" href="pkg_mgr_install.php?mode=delete&amp;pkg=<?=$pkg['name']?>" class="fa fa-trash"></a>
+ <a title="<?=sprintf(gettext("Remove package %s"), $pkg['name'])?>" href="pkg_mgr_install.php?mode=delete&amp;pkg=<?=$pkg['name']?>" class="fa fa-trash"></a>
<?php if ($upgradeavail):?>
- <a title="<?=gettext("Update")?>" href="pkg_mgr_install.php?mode=reinstallpkg&amp;pkg=<?=$pkg['name']?><?=$vergetstr?>" class="fa fa-refresh"></a>
+ <a title="<?=sprintf(gettext("Update package %s"), $pkg['name'])?>" href="pkg_mgr_install.php?mode=reinstallpkg&amp;pkg=<?=$pkg['name']?><?=$vergetstr?>" class="fa fa-refresh"></a>
<?php else:?>
- <a title="<?=gettext("Reinstall")?>" href="pkg_mgr_install.php?mode=reinstallpkg&amp;pkg=<?=$pkg['name']?>" class="fa fa-retweet"></a>
+ <a title="<?=sprintf(gettext("Reinstall package %s"), $pkg['name'])?>" href="pkg_mgr_install.php?mode=reinstallpkg&amp;pkg=<?=$pkg['name']?>" class="fa fa-retweet"></a>
<?php endif;?>
<?php if (!isset($g['disablepackageinfo']) && $pkg['www'] != 'UNKNOWN'):?>
@@ -206,13 +206,13 @@ if (empty($installed_packages)):?>
<br />
<div class="text-center">
<p>
- <i class="fa fa-refresh"></i> = Update &nbsp;
- <i class="fa fa-check"></i> = Current &nbsp;
+ <i class="fa fa-refresh"></i> = <?=gettext('Update')?> &nbsp;
+ <i class="fa fa-check"></i> = <?=gettext('Current')?> &nbsp;
</p>
<p>
- <i class="fa fa-trash"></i> = Remove &nbsp;
- <i class="fa fa-info"></i> = Information &nbsp;
- <i class="fa fa-retweet"></i> = Reinstall
+ <i class="fa fa-trash"></i> = <?=gettext('Remove')?> &nbsp;
+ <i class="fa fa-info"></i> = <?=gettext('Information')?> &nbsp;
+ <i class="fa fa-retweet"></i> = <?=gettext('Reinstall')?>
</p>
<p><span class="text-warning"><?=gettext("Newer version available")?></span></p>
<p><span class="text-danger"><?=gettext("Package is configured but not (fully) installed")?></span></p>
OpenPOWER on IntegriCloud