From 61cbd09d2fe81a2961a8073d5881a00c2abcfa03 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Mon, 19 Oct 2015 17:16:18 +0200 Subject: [PATCH] =?utf8?q?t8=20f=C3=BCr=20sinnvolle=20Lokalisierung=20(loc?= =?utf8?q?ales.pl)=20in=20mtime=5Fischanged?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Ferner korrekten optionaler Fehlertext bei entsprechender Option ausgeben. --- SL/Form.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/SL/Form.pm b/SL/Form.pm index 099a6736e..9045d78ca 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -66,6 +66,7 @@ use SL::IC; use SL::IS; use SL::Layout::Dispatcher; use SL::Locale; +use SL::Locale::String; use SL::Mailer; use SL::Menu; use SL::MoreCommon qw(uri_encode uri_decode); @@ -2614,9 +2615,10 @@ sub mtime_ischanged { $ref->{mtime} ||= $ref->{itime}; if ($self->{lastmtime} && $self->{lastmtime} ne $ref->{mtime} ) { - my $etxt = ($option eq 'mail') ? "The document has been changed by another user. Please reopen it in another window and copy the changes to the new window" : - "The document has been changed by another user. No mail was sent. Please reopen it in another window and copy the changes to the new window"; - $self->error($main::locale->text($etxt)); + $self->error(($option eq 'mail') ? + t8("The document has been changed by another user. No mail was sent. Please reopen it in another window and copy the changes to the new window") : + t8("The document has been changed by another user. Please reopen it in another window and copy the changes to the new window") + ); ::end_of_request(); } } -- 2.20.1