aboutsummaryrefslogtreecommitdiffstats
path: root/t/i18n.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2014-02-26 19:23:49 +0000
committerMatthew Somerville <matthew@mysociety.org>2014-02-26 19:23:49 +0000
commit3e5fa88255ccb7114cd920172cbe66c05b9fff3a (patch)
tree7d340ddccf38a0c53fcbfe551c6aa4f5045204c5 /t/i18n.t
parent8a431b9edb079d095cd3c7e3db391548b1e5d859 (diff)
Make sure language is set early enough in email alert loop.
The call to set_lang_and_domain needs to happen before the first string is translated (the report state).
Diffstat (limited to 't/i18n.t')
-rw-r--r--t/i18n.t13
1 files changed, 3 insertions, 10 deletions
diff --git a/t/i18n.t b/t/i18n.t
index f1cc86985..3337f1a7f 100644
--- a/t/i18n.t
+++ b/t/i18n.t
@@ -3,15 +3,12 @@ use warnings;
use Test::More;
-use FixMyStreet;
-use mySociety::Locale;
-use Encode;
-use Data::Dumper;
use HTTP::Headers;
use Sort::Key qw(keysort);
use POSIX 'strcoll';
-local $Data::Dumper::Sortkeys = 1;
-use utf8;
+
+use FixMyStreet;
+use mySociety::Locale;
# check that the mo files have been generated
die "You need to run 'commonlib/bin/gettext-makemo --quiet FixMyStreet' "
@@ -59,10 +56,6 @@ my @EN_sorted = qw( A Å Ø Z );
my @NO_sorted = qw( A Z Ø Å );
my @default_sorted = qw( A Z Å Ø );
-sub utf8_diag {
- diag encode_utf8( Dumper(@_) );
-}
-
{
mySociety::Locale::negotiate_language( #