Revision 61cbd09d
Von Jan Büren vor mehr als 9 Jahren hinzugefügt
SL/Form.pm | ||
---|---|---|
66 | 66 |
use SL::IS; |
67 | 67 |
use SL::Layout::Dispatcher; |
68 | 68 |
use SL::Locale; |
69 |
use SL::Locale::String; |
|
69 | 70 |
use SL::Mailer; |
70 | 71 |
use SL::Menu; |
71 | 72 |
use SL::MoreCommon qw(uri_encode uri_decode); |
... | ... | |
2614 | 2615 |
$ref->{mtime} ||= $ref->{itime}; |
2615 | 2616 |
|
2616 | 2617 |
if ($self->{lastmtime} && $self->{lastmtime} ne $ref->{mtime} ) { |
2617 |
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" : |
|
2618 |
"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"; |
|
2619 |
$self->error($main::locale->text($etxt)); |
|
2618 |
$self->error(($option eq 'mail') ? |
|
2619 |
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") : |
|
2620 |
t8("The document has been changed by another user. Please reopen it in another window and copy the changes to the new window") |
|
2621 |
); |
|
2620 | 2622 |
::end_of_request(); |
2621 | 2623 |
} |
2622 | 2624 |
} |
Auch abrufbar als: Unified diff
t8 für sinnvolle Lokalisierung (locales.pl) in mtime_ischanged
Ferner korrekten optionaler Fehlertext bei entsprechender Option ausgeben.