[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[2355] trunk/LedgerSMB/Num2text.pm
- Subject: SF.net SVN: ledger-smb:[2355] trunk/LedgerSMB/Num2text.pm
- From: ..hidden..
- Date: Tue, 07 Oct 2008 19:39:00 +0000
Revision: 2355
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2355&view=rev
Author: einhverfr
Date: 2008-10-07 19:38:59 +0000 (Tue, 07 Oct 2008)
Log Message:
-----------
Adding seemless num2text support for 1.3-framework elements
Modified Paths:
--------------
trunk/LedgerSMB/Num2text.pm
Modified: trunk/LedgerSMB/Num2text.pm
===================================================================
--- trunk/LedgerSMB/Num2text.pm 2008-10-07 16:32:47 UTC (rev 2354)
+++ trunk/LedgerSMB/Num2text.pm 2008-10-07 19:38:59 UTC (rev 2355)
@@ -44,7 +44,7 @@
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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.