From 0f96d26ac9c15929c407b4004becf3ba2f137a86 Mon Sep 17 00:00:00 2001 From: tetragon Date: Tue, 31 Oct 2006 00:16:12 +0000 Subject: Allow $locale->text to handle parameters for strings git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@408 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Locale.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LedgerSMB') diff --git a/LedgerSMB/Locale.pm b/LedgerSMB/Locale.pm index 5b1e7568..f9674d23 100644 --- a/LedgerSMB/Locale.pm +++ b/LedgerSMB/Locale.pm @@ -39,8 +39,8 @@ Locale::Maketext::Lexicon->import({ }); sub text { - my ($self, $text) = @_; - return encode_entities($self->maketext($text)); + my ($self, $text, @params) = @_; + return encode_entities($self->maketext($text, @params)); } ##sub date { -- cgit v1.2.3