937bad0998
from Andreas Bihlmaier (maintainer) with some tweaks.
27 lines
803 B
Plaintext
27 lines
803 B
Plaintext
$OpenBSD: patch-pacpl,v 1.2 2008/12/23 15:52:42 ajacoutot Exp $
|
|
--- pacpl.orig Sun Aug 17 05:31:57 2008
|
|
+++ pacpl Fri Nov 14 09:25:49 2008
|
|
@@ -131,8 +131,12 @@ my %config = (
|
|
|
|
# location of configuration file
|
|
my $conf_path = "/etc/pacpl";
|
|
-my $po_dir = "/usr/share/pacpl/locale";
|
|
+my $po_dir = "${PREFIX}/share/pacpl/locale";
|
|
my $mod_dir = "$conf_path/modules";
|
|
+my $language = "en";
|
|
+if ($ENV{LANG}) {
|
|
+ $language = "$ENV{LANG}";
|
|
+}
|
|
|
|
my $conf_file;
|
|
|
|
@@ -203,7 +207,7 @@ sub load_codecs {
|
|
# load po file and store in %lang hash
|
|
sub load_lang {
|
|
|
|
- my $po = "$po_dir/$ENV{LANG}.po";
|
|
+ my $po = "$po_dir/$language.po";
|
|
$po =~ s/\.UTF-8//i if $po =~ /UTF-8/i;
|
|
$po =~ s/\.utf8//i if $po =~ /utf8/i;
|
|
$po =~ s/_\w+// if not -e $po;
|