| 1 |
Description: Fixes translations |
| 2 |
Origin: vendor |
| 3 |
Bug-Debian: https://bugs.debian.org/701556 |
| 4 |
Forwarded: no |
| 5 |
Author: falconbird <[email protected]> |
| 6 |
Reviewed-by: gregor herrmann <[email protected]> |
| 7 |
Last-Update: 2015-08-01 |
| 8 |
|
| 9 |
--- a/lib/Games/FrozenBubble/Stuff.pm |
| 10 |
+++ b/lib/Games/FrozenBubble/Stuff.pm |
| 11 |
@@ -1,13 +1,13 @@ |
| 12 |
package Games::FrozenBubble::Stuff; |
| 13 |
|
| 14 |
use Games::FrozenBubble::CStuff; |
| 15 |
|
| 16 |
+use Games::FrozenBubble::Config; |
| 17 |
use Locale::Maketext::Simple; |
| 18 |
use File::ShareDir qw(dist_dir); |
| 19 |
|
| 20 |
|
| 21 |
+Locale::Maketext::Simple->import(Path => "$FPATH/locale", Style => 'gettext', Export => 'gettext'); |
| 22 |
###passing language to Locale::Maketext::Simple |
| 23 |
|
| 24 |
+my ($lang) = split(':', $ENV{LANGUAGE} || $ENV{LANG}); |
| 25 |
gettext_lang($lang); |
| 26 |
|
| 27 |
use vars qw(@ISA @EXPORT $FPATH $FLPATH $FBHOME $FBLEVELS $colourblind %POS_1P %POS_2P %POS_MP $BUBBLE_SIZE $ROW_SIZE |