From 2fc605b7ae3b92f85701cacf3a69c76fcb857f65 Mon Sep 17 00:00:00 2001 From: tetragon Date: Sat, 21 Oct 2006 18:13:23 +0000 Subject: Reverse function translation lookup removal git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@259 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Form.pm | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'LedgerSMB') diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index ee1c42f9..a934440f 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -3142,16 +3142,7 @@ sub text { sub findsub { my ($self, $text) = @_; - - if (exists $self{subs}{$text}) { - $text = $self{subs}{$text}; - } else { - if ($self->{countrycode} && $self->{NLS_file}) { - Form->error("$text not defined in locale/$self->{countrycode}/$self->{NLS_file}"); - } - } - - $text; + return $text; } -- cgit v1.2.3