From: Scott Kostyshak Date: Mon, 1 Apr 2013 05:35:48 +0000 (-0400) Subject: Remove exclamation mark from "String not found!" X-Git-Tag: 2.1.0beta1~438 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2427e9b57aa39ced5aa509bb31639f5a3867eca7;p=features.git Remove exclamation mark from "String not found!" 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. --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 3aa201b590..1d190148f8 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -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; } diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index e74401693d..a2fcf004f8 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -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; }