diff options
author | Struan Donald <struan@exo.org.uk> | 2014-11-24 11:45:46 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2014-11-24 11:45:46 +0000 |
commit | 8fd15b58733c51d7f001f9eac66b7d03830ec0b4 (patch) | |
tree | 7d01876010df97e7ca1bc4fc5afc9651c2e92f7e | |
parent | bdfad10151551eae2fec4ef90be5c4cae6ce83e2 (diff) |
remove stray EOL chars from language string
otherwise the bit inside mySociety::Locale that appends .UTF-8 on to the
end doesn't work properly
Fixes #183
-rw-r--r-- | bin/localise_templates | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/localise_templates b/bin/localise_templates index 3267433..63555bc 100644 --- a/bin/localise_templates +++ b/bin/localise_templates @@ -34,6 +34,7 @@ my $vars = { }; for my $lang ( get_langs() ) { + chomp $lang; my @lang_parts = split(',', $lang); mySociety::Locale::negotiate_language($lang); |