discard changes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6875 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-04-28 22:52:05 +00:00
parent 36e376b011
commit 76cf529711
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2003-04-28 John Levon <levon@movementarian.org>
* bufferlist.C: changes for unsaved changes dialog
2003-04-28 Lars Gullik Bjønnes <larsbj@gullik.net>
* bufferlist.C (newFile): set language (messages_) for new

View File

@ -78,7 +78,7 @@ bool BufferList::quitWriteBuffer(Buffer * buf)
text += file + _(" has unsaved changes.\n\nWhat do you want to do with it?");
#endif
int const ret = Alert::prompt(_("Save changed document?"),
text, 0, 2, _("&Save"), _("&Discard"), _("&Cancel"));
text, 0, 2, _("&Save Changes"), _("&Discard Changes"), _("&Cancel"));
if (ret == 0) {
// FIXME: WriteAs can be asynch !
@ -187,7 +187,7 @@ bool BufferList::close(Buffer * buf, bool ask)
text += fname + _(" has unsaved changes.\n\nWhat do you want to do with it?");
#endif
int const ret = Alert::prompt(_("Save changed document?"),
text, 0, 2, _("&Save"), _("&Discard"), _("&Cancel"));
text, 0, 2, _("&Save Changes"), _("&Discard Changes"), _("&Cancel"));
if (ret == 0) {
if (buf->isUnnamed()) {