From: Jan Büren Date: Mon, 19 Oct 2015 15:16:18 +0000 (+0200) Subject: t8 für sinnvolle Lokalisierung (locales.pl) in mtime_ischanged X-Git-Tag: release-3.4.1~633 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=61cbd09d2fe81a2961a8073d5881a00c2abcfa03;p=kivitendo-erp.git t8 für sinnvolle Lokalisierung (locales.pl) in mtime_ischanged Ferner korrekten optionaler Fehlertext bei entsprechender Option ausgeben. --- 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(); } }