diff options
author | Mark Wells <mark@freeside.biz> | 2014-01-30 13:16:14 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-01-30 13:16:14 -0800 |
commit | 573e68cc026cddd6e52d2f2027da388054a128d1 (patch) | |
tree | 270996f6a538e7a225430729938012829d3b4178 /FS/FS/Locales.pm | |
parent | 82380ef8cb6e506f63dd4a8d1abf89cb079ae6cc (diff) |
localize CDR column headings, #27276
Diffstat (limited to 'FS/FS/Locales.pm')
-rw-r--r-- | FS/FS/Locales.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/FS/FS/Locales.pm b/FS/FS/Locales.pm index bf10990..6dd7c5a 100644 --- a/FS/FS/Locales.pm +++ b/FS/FS/Locales.pm @@ -52,7 +52,13 @@ Returns a hash of information about a locale. sub locale_info { my($class, $locale) = @_; - %{ $locales{$locale} }; + if (!$locale) { + return (); + } elsif (exists $locales{$locale}) { + return %{ $locales{$locale} }; + } else { + die "unsupported locale '$locale'\n"; + } } =item description LOCALE |