diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2012-08-14 11:49:46 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-08-16 21:43:46 +0100 |
commit | c4b88147b23e16dff29a6f16851b7be11080ad0b (patch) | |
tree | 3254a79a98ac6d7ef86ff4dad6d09a1e9ae1f557 /perllib/FixMyStreet/Cobrand/FiksGataMi.pm | |
parent | 1bb1706fa427513626a39df4ed3f4fdef097ce60 (diff) |
Allow languages to be given in config file.
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/FiksGataMi.pm')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/FiksGataMi.pm | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FiksGataMi.pm b/perllib/FixMyStreet/Cobrand/FiksGataMi.pm index 03777ac51..8b2fb06ea 100644 --- a/perllib/FixMyStreet/Cobrand/FiksGataMi.pm +++ b/perllib/FixMyStreet/Cobrand/FiksGataMi.pm @@ -17,15 +17,8 @@ sub country { return 'NO'; } -sub set_lang_and_domain { - my ( $self, $lang, $unicode, $dir ) = @_; - 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 languages { [ 'en-gb,English,en_GB', 'nb,Norwegian,nb_NO' ] } +sub language_override { 'nb' } sub site_title { my ($self) = @_; |