When no locales are registered and/or when a given locale is missing
a translation, fall back to en_us as the default locale.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
my @locale_tags = sort { length($a) <=> length($b) } keys %locales;
- # If no locales are defined, fall back to en_us so that at least 1 handler exists
- push(@locale_tags, 'en_us') unless @registered_locales or @locale_tags;
+ # always fall back to en_us, the assumed template language
+ push(@locale_tags, 'en_us');
for my $idx (0..$#locale_tags) {