]> git.lyx.org Git - features.git/commitdiff
Remove exclamation mark from "String not found!"
authorScott Kostyshak <skostysh@lyx.org>
Mon, 1 Apr 2013 05:35:48 +0000 (01:35 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Mon, 1 Apr 2013 19:33:41 +0000 (15:33 -0400)
When using 'find' and a string is not found, this is not an error or a
surprising event. It is often expected (e.g. after searching through
the whole document for a certain string eventually you will get this
message). The exclamation mark should be reserved for messages that
are unexpected or that need extra attention, such as errors.

src/BufferView.cpp
src/lyxfind.cpp

index 3aa201b5909ddc740a200969866c0964e47ae038..1d190148f87f16bc9cf76e5222b6112d6013f83d 100644 (file)
@@ -1545,7 +1545,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
                if (lyxfind(this, req))
                        dr.screenUpdate(Update::Force | Update::FitCursor);
                else
-                       message(_("String not found!"));
+                       message(_("String not found."));
                d->search_request_cache_ = req;
                break;
        }
index e74401693d87650b5ac47b4abed8a60fa8280338..a2fcf004f89276ea8e892e0413a6c50d0387e58b 100644 (file)
@@ -379,7 +379,7 @@ bool lyxreplace(BufferView * bv,
                Buffer const & buf = bv->buffer();
                if (!update) {
                        // emit message signal.
-                       buf.message(_("String not found!"));
+                       buf.message(_("String not found."));
                } else {
                        if (replace_count == 0) {
                                buf.message(_("String found."));
@@ -397,7 +397,7 @@ bool lyxreplace(BufferView * bv,
                if (findOne(bv, search, casesensitive, matchword, forward))
                        update = true;
                else
-                       bv->message(_("String not found!"));
+                       bv->message(_("String not found."));
        }
        return update;
 }