aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/FiksGataMi.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-17 18:55:09 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-17 18:55:09 +0100
commit76b34e2176dc9b02259c62209c6c23a8a7e69c23 (patch)
tree62670f5b7e8326f0aeddf067c456f1683c9a76ae /perllib/FixMyStreet/Cobrand/FiksGataMi.pm
parente571c6b4b3860057a0f339403adae9a47a500c20 (diff)
Return language from Fiksgatami cobrand function.
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/FiksGataMi.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/FiksGataMi.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FiksGataMi.pm b/perllib/FixMyStreet/Cobrand/FiksGataMi.pm
index 7fe27fd2e..29d2ec867 100644
--- a/perllib/FixMyStreet/Cobrand/FiksGataMi.pm
+++ b/perllib/FixMyStreet/Cobrand/FiksGataMi.pm
@@ -13,10 +13,12 @@ sub country {
sub set_lang_and_domain {
my ( $self, $lang, $unicode, $dir ) = @_;
- mySociety::Locale::negotiate_language(
- 'en-gb,English,en_GB|nb,Norwegian,nb_NO', 'nb' );
+ my $set_lang = mySociety::Locale::negotiate_language(
+ 'en-gb,English,en_GB|nb,Norwegian,nb_NO', 'nb'
+ );
mySociety::Locale::gettext_domain( 'FixMyStreet', $unicode, $dir );
mySociety::Locale::change();
+ return $set_lang;
}
sub enter_postcode_text {