From: Sven Schöling Date: Mon, 28 Jun 2010 11:18:55 +0000 (+0200) Subject: Bei fehlender Übersetzung nicht übersetzten Begriff zurückggeben. X-Git-Tag: release-2.6.2beta1~331^2~17 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/commitdiff_plain/49b7cab6d1510010fac0345701ba8e46ea9b39a5 Bei fehlender Übersetzung nicht übersetzten Begriff zurückggeben. Conflicts: SL/Template/Plugin/LxERP.pm --- diff --git a/SL/Template/Plugin/LxERP.pm b/SL/Template/Plugin/LxERP.pm index df6cb6ad6..8f3a9980d 100644 --- a/SL/Template/Plugin/LxERP.pm +++ b/SL/Template/Plugin/LxERP.pm @@ -109,7 +109,7 @@ sub abs { sub t8 { my ($self, $text, $args) = @_; $self->{locale} ||= Locale->new($::myconfig{countrycode}, 'all'); - return $self->{locale}->text($text, @{ $args || [] }); + return $self->{locale}->text($text, @args) || $text; } 1; diff --git a/SL/Template/Plugin/T8.pm b/SL/Template/Plugin/T8.pm index 339faa941..e736e0cd2 100644 --- a/SL/Template/Plugin/T8.pm +++ b/SL/Template/Plugin/T8.pm @@ -18,7 +18,7 @@ sub init { sub filter { my ($self, $text, $args) = @_; - return $locale->text($text, @{ $args || [] }); + return $locale->text($text, @{ $args || [] }) || $text; } return 'SL::Template::Plugin::T8';