summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LedgerSMB/Num2text.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/Num2text.pm b/LedgerSMB/Num2text.pm
index 89c7c41a..57accc3b 100644
--- a/LedgerSMB/Num2text.pm
+++ b/LedgerSMB/Num2text.pm
@@ -44,7 +44,7 @@ use utf8;
sub init {
my $self = shift;
- my $locale = $self->{'locale'};
+ my $locale = $self->{'locale'} || $self->{'_locale'};
my $langtag = substr( $locale->language_tag, 0, 2 );
$self->{'numrules'} = 'en';
$self->{'numrules'} = $langtag