summaryrefslogtreecommitdiffstats
path: root/contrib/pacsearch.in
diff options
context:
space:
mode:
authorPierre Neidhardt <ambrevar@gmail.com>2014-01-23 00:07:05 +0100
committerAllan McRae <allan@archlinux.org>2014-02-02 07:12:29 +0100
commit135d862eb6e3051e351888b08c94529c967c5387 (patch)
tree142d344a7a231476846fa56977105d035e931dff /contrib/pacsearch.in
parent6fb2035dd03f3ee33f945cacee4e835156e1f76b (diff)
downloadpacman-135d862eb6e3051e351888b08c94529c967c5387.tar.gz
pacman-135d862eb6e3051e351888b08c94529c967c5387.tar.xz
pacsearch: localized output
Signed-off-by: Pierre Neidhardt <ambrevar@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'contrib/pacsearch.in')
-rw-r--r--contrib/pacsearch.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/pacsearch.in b/contrib/pacsearch.in
index f2b75f6a..69c7c0fe 100644
--- a/contrib/pacsearch.in
+++ b/contrib/pacsearch.in
@@ -65,6 +65,9 @@ my $CLR7 = "\e[1;36m";
my $INST = "\e[1;31m";
my $BASE = "\e[0m";
+# localization
+my $LC_INSTALLED = `gettext pacman installed`;
+
# color a "repo/pkgname pkgver" line based on the repository name
sub to_color {
my $line = shift;
@@ -128,7 +131,7 @@ foreach $_ (@querypkgs) {
$pkgfields[2] = "" if not defined $pkgfields[2];
# check if the package was listed in the sync out
if (not exists $allpkgs{$pkgfields[1]}) {
- $pkgfields[2] = "[installed]";
+ $pkgfields[2] = "[$LC_INSTALLED]";
# add a fifth field that indicates original order (after sync)
push (@pkgfields, $cnt++);
# add our local-only package to the hash