[frozen-bubble] 04/05: Add patch to fix or at least improve gettext handling.

gregor herrmann gregoa at debian.org
Fri Jul 31 23:55:20 UTC 2015


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository frozen-bubble.

commit a61f7f07b0ed8ae1e98690a83f7210ea30bdd2e3
Author: gregor herrmann <gregoa at debian.org>
Date:   Sat Aug 1 01:40:55 2015 +0200

    Add patch to fix or at least improve gettext handling.
    
    No guarantees that this is enough to really fix #701556 but the changes look
    correct anyway.
    
    Thanks: falconbird for the bug report and patch.
---
 debian/patches/fix-translations.patch | 27 +++++++++++++++++++++++++++
 debian/patches/series                 |  1 +
 2 files changed, 28 insertions(+)

diff --git a/debian/patches/fix-translations.patch b/debian/patches/fix-translations.patch
new file mode 100644
index 0000000..39571e3
--- /dev/null
+++ b/debian/patches/fix-translations.patch
@@ -0,0 +1,27 @@
+Description: Fixes translations
+Origin: vendor
+Bug-Debian: https://bugs.debian.org/701556
+Forwarded: no
+Author: falconbird <falconbird at lavabit.com>
+Reviewed-by: gregor herrmann <gregoa at debian.org>
+Last-Update: 2015-08-01
+
+--- a/lib/Games/FrozenBubble/Stuff.pm
++++ b/lib/Games/FrozenBubble/Stuff.pm
+@@ -1,13 +1,13 @@
+ package Games::FrozenBubble::Stuff;
+ 
+ use Games::FrozenBubble::CStuff;
+-# use Games::FrozenBubble::Config;
++use Games::FrozenBubble::Config;
+ use Locale::Maketext::Simple;
+ use File::ShareDir qw(dist_dir);
+ 
+-Locale::Maketext::Simple->import(Path => dist_dir('Games-FrozenBubble')."/locale", Style => 'gettext', Export => 'gettext');
++Locale::Maketext::Simple->import(Path => "$FPATH/locale", Style => 'gettext', Export => 'gettext');
+ ###passing language to Locale::Maketext::Simple
+-my ($lang) = split(':', $ENV{LANGUAGE});
++my ($lang) = split(':', $ENV{LANGUAGE} || $ENV{LANG});
+ gettext_lang($lang);
+ 
+ use vars qw(@ISA @EXPORT $FPATH $FLPATH $FBHOME $FBLEVELS $colourblind %POS_1P %POS_2P %POS_MP $BUBBLE_SIZE $ROW_SIZE
diff --git a/debian/patches/series b/debian/patches/series
index 0c01378..53df046 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@ shorter-nick
 kick-out-accelerometers
 hardening-server
 pt_po
+fix-translations.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/frozen-bubble.git



More information about the Pkg-perl-cvs-commits mailing list