X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FLocales.pm;h=10bf72ac30222ddccee5c66c8c28477dcdbf937a;hp=607f2be2de89c325c8e2afb939e879081720bf38;hb=395cc72629d31c8dcd138acf423e66d2d73d89d2;hpb=5fdd19665fb7c0ad425a99d3dbf9ad7e27fbf44a diff --git a/FS/FS/Locales.pm b/FS/FS/Locales.pm index 607f2be2d..10bf72ac3 100644 --- a/FS/FS/Locales.pm +++ b/FS/FS/Locales.pm @@ -28,8 +28,13 @@ Returns a list of the available locales. =cut tie our %locales, 'Tie::IxHash', - 'en_US', { name => 'English', country => 'United States', }, - 'iw_IL', { name => 'Hebrew', country => 'Israel', rtl=>1, }, + 'en_US', { name => 'English', country => 'United States', }, + 'en_CA', { name => 'English', country => 'Canada', }, + 'fr_CA', { name => 'French', country => 'Canada', }, + 'fr_FR', { name => 'French', country => 'France', }, + 'fr_HT', { name => 'French', country => 'Haiti', }, + 'ht_HT', { name => 'Haitian Creole', country => 'Haiti', }, + 'iw_IL', { name => 'Hebrew', country => 'Israel', rtl=>1, }, ; sub locales { @@ -47,6 +52,17 @@ sub locale_info { %{ $locales{$locale} }; } +=item description LOCALE + +Returns "Language (Country)" for a locale. + +=cut + +sub description { + my($class, $locale) = @_; + $locales{$locale}->{'name'} . ' (' . $locales{$locale}->{'country'} . ')'; +} + =back =head1 BUGS