diff options
author | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-11 10:43:35 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-11 10:43:35 +0000 |
commit | c8a9805bcb850cab7bf1c1b8c34ef5c4f22e1b73 (patch) | |
tree | 9d021c40c9b8927bbc2c237eda0cdd767cbf99de /web/import.cgi | |
parent | c7662afda971a9d285f70ff625dcd0b170b836e3 (diff) |
More EN locales.
Diffstat (limited to 'web/import.cgi')
-rwxr-xr-x | web/import.cgi | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/web/import.cgi b/web/import.cgi index e7746f589..919f7a653 100755 --- a/web/import.cgi +++ b/web/import.cgi @@ -17,6 +17,7 @@ use mySociety::Config; use mySociety::EmailUtil; use mySociety::EvEl; use mySociety::GeoUtil; +use mySociety::Locale; sub main { my $q = shift; @@ -64,8 +65,9 @@ sub main { if ( $latitude && mySociety::Config::get('COUNTRY') eq 'GB' ) { try { - mySociety::GeoUtil::wgs84_to_national_grid( $latitude, $longitude, - 'G' ); + mySociety::Locale::in_gb_locale { + mySociety::GeoUtil::wgs84_to_national_grid( $latitude, $longitude, 'G' ); + }; } catch Error::Simple with { my $e = shift; |