per-agent disable_previous_balance, #15863
[freeside.git] / FS / FS / Locales.pm
index 607f2be..10bf72a 100644 (file)
@@ -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