diff options
author | Carlos Eduardo Ramos <carlos.ramos@bluepex.com> | 2010-04-27 10:35:06 -0300 |
---|---|---|
committer | Carlos Eduardo Ramos <carlos.ramos@bluepex.com> | 2010-04-27 10:35:06 -0300 |
commit | 5ad0cbee2a5a4f33a50d05066a7e3711e30af07a (patch) | |
tree | 649a0a469da61fcdd0620a917f15fb0b810bb925 /usr/local | |
parent | e454bcd3619894d6126ab159f68a352604326ea0 (diff) | |
download | pfsense-5ad0cbee2a5a4f33a50d05066a7e3711e30af07a.zip pfsense-5ad0cbee2a5a4f33a50d05066a7e3711e30af07a.tar.gz |
Implement gettext()
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/pkg_mgr_installed.php | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/usr/local/www/pkg_mgr_installed.php b/usr/local/www/pkg_mgr_installed.php index 2cc95f5..85916b3 100755 --- a/usr/local/www/pkg_mgr_installed.php +++ b/usr/local/www/pkg_mgr_installed.php @@ -47,7 +47,7 @@ if(is_array($config['installedpackages']['package'])) { $currentvers = get_pkg_info($tocheck, array('version', 'xmlver', 'pkginfolink')); } -$pgtitle = array("System","Package Manager"); +$pgtitle = array(gettext("System"),gettext("Package Manager")); include("head.inc"); ?> @@ -60,10 +60,10 @@ include("head.inc"); <?php $version = file_get_contents("/etc/version"); $tab_array = array(); - $tab_array[] = array("{$version} packages", false, "pkg_mgr.php"); + $tab_array[] = array("{$version}" . gettext("packages"), false, "pkg_mgr.php"); // $tab_array[] = array("Packages for any platform", false, "pkg_mgr.php?ver=none"); // $tab_array[] = array("Packages for a different platform", $requested_version == "other" ? true : false, "pkg_mgr.php?ver=other"); - $tab_array[] = array("Installed packages", true, "pkg_mgr_installed.php"); + $tab_array[] = array(gettext("Installed packages"), true, "pkg_mgr_installed.php"); display_top_tabs($tab_array); ?> </td> @@ -73,11 +73,11 @@ include("head.inc"); <div id="mainarea"> <table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0"> <tr> - <td width="10%" class="listhdrr">Package Name</td> - <td width="20%" class="listhdrr">Category</td> - <td width="10%" class="listhdrr">Package Info</td> - <td width="15%" class="listhdrr">Package Version</td> - <td width="45%" class="listhdr">Description</td> + <td width="10%" class="listhdrr"><?=gettext("Package Name"); ?></td> + <td width="20%" class="listhdrr"><?=gettext("Category"); ?></td> + <td width="10%" class="listhdrr"><?=gettext("Package Info"); ?></td> + <td width="15%" class="listhdrr"><?=gettext("Package Version"); ?></td> + <td width="45%" class="listhdr"><?=gettext("Description"); ?></td> </tr> <?php if(is_array($config['installedpackages']['package'])): @@ -99,14 +99,14 @@ include("head.inc"); // we're running a newer version of the package if(strcmp($pkg['version'], $latest_package) > 0) { $tdclass = "listbggrey"; - $pkgver = "Available: {$latest_package}<br/>"; - $pkgver .= "Installed: {$pkg['version']}"; + $pkgver = gettext("Available:") . $latest_package . "<br/>"; + $pkgver .= gettext("Installed:") . $pkg['version']; } // we're running an older version of the package if(strcmp($pkg['version'], $latest_package) < 0) { $tdclass = "listbg"; - $pkgver = "<font color='#ffffff'>Available: {$latest_package}<br/>"; - $pkgver .= "Installed: {$pkg['version']}"; + $pkgver = "<font color='#ffffff'>" . gettext("Available:") . $latest_package . "<br/>"; + $pkgver .= gettext("Installed:") . $pkg['version']; } // we're running the current version if(!strcmp($pkg['version'], $latest_package)) { @@ -132,9 +132,9 @@ include("head.inc"); <?php if($currentvers[$pkg['name']]['pkginfolink']) { $pkginfolink = $currentvers[$pkg['name']]['pkginfolink']; - echo "<a target='_new' href='$pkginfolink'>Package Info</a>"; + echo "<a target='_new' href='$pkginfolink'>" . gettext("Package Info") . "</a>"; } else { - echo "No info, check the <a href='http://forum.pfsense.org/index.php/board,15.0.html'>forum</a>"; + echo gettext("No info, check the") . "<a href='http://forum.pfsense.org/index.php/board,15.0.html'>" . gettext("forum") . "</a>"; } ?> </td> @@ -145,15 +145,15 @@ include("head.inc"); <?=$pkg['descr'];?> </td> <td valign="middle" class="list" nowrap> - <a onclick="return confirm('Do you really want to remove this package?')" href="pkg_mgr_install.php?mode=delete&pkg=<?= $pkg['name']; ?>"> - <img title="Remove this package." src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"> + <a onclick="return confirm('<?=gettext("Do you really want to remove this package?"); ?>')" href="pkg_mgr_install.php?mode=delete&pkg=<?= $pkg['name']; ?>"> + <img title="<?=gettext("Remove this package."); ?>" src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"> </a> <br> <a href="pkg_mgr_install.php?mode=reinstallpkg&pkg=<?= $pkg['name']; ?>"> - <img title="Reinstall this package." src="./themes/<?= $g['theme']; ?>/images/icons/icon_reinstall_pkg.gif" width="17" height="17" border="0"> + <img title="<?=gettext("Reinstall this package."); ?>" src="./themes/<?= $g['theme']; ?>/images/icons/icon_reinstall_pkg.gif" width="17" height="17" border="0"> </a> <a href="pkg_mgr_install.php?mode=reinstallxml&pkg=<?= $pkg['name']; ?>"> - <img title="Reinstall this package's GUI components." src="./themes/<?= $g['theme']; ?>/images/icons/icon_reinstall_xml.gif" width="17" height="17" border="0"> + <img title="<?=gettext("Reinstall this package's GUI components."); ?>" src="./themes/<?= $g['theme']; ?>/images/icons/icon_reinstall_xml.gif" width="17" height="17" border="0"> </a> </td> </tr> @@ -163,7 +163,7 @@ include("head.inc"); ?> <tr> <td colspan="5" align="center"> - There are no packages currently installed. + <?=gettext("There are no packages currently installed."); ?> </td> </tr> <?php endif; ?> |