aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/FiksGataMi.pm
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-02-24 15:27:23 +0000
committerEdmund von der Burg <evdb@mysociety.org>2011-02-24 15:27:23 +0000
commit7c9a89eedb17bdafbc171bba5de21cdd5725acd7 (patch)
tree3603445333afb5821ef568711b66d274fac067b6 /perllib/FixMyStreet/Cobrand/FiksGataMi.pm
parentb327a36371ea3c0151452ae5e516e63c5fc53b54 (diff)
Explicitly set gettext_dir so that it does not matter where calling script file is located
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/FiksGataMi.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/FiksGataMi.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FiksGataMi.pm b/perllib/FixMyStreet/Cobrand/FiksGataMi.pm
index 25a4ad83c..43565d8ea 100644
--- a/perllib/FixMyStreet/Cobrand/FiksGataMi.pm
+++ b/perllib/FixMyStreet/Cobrand/FiksGataMi.pm
@@ -7,10 +7,10 @@ use warnings;
use Carp;
sub set_lang_and_domain {
- my ( $self, $lang, $unicode ) = @_;
+ my ( $self, $lang, $unicode, $dir ) = @_;
mySociety::Locale::negotiate_language(
'en-gb,English,en_GB|nb,Norwegian,nb_NO', 'nb' );
- mySociety::Locale::gettext_domain( 'FixMyStreet', $unicode );
+ mySociety::Locale::gettext_domain( 'FixMyStreet', $unicode, $dir );
mySociety::Locale::change();
}