[PATCH] Unify naming of menu items

Yuriy Skalko yuriy.skalko at gmail.com
Fri Oct 23 07:15:15 UTC 2020


The patch makes all disabled informational menu items use parenthesis.

These menu items are already use such formatting:
(No Document Open)
(Empty Table of Contents)

Yuriy
-------------- next part --------------
From 95d1b4d6436faae1e97c2402c9e7d9f48368f8f6 Mon Sep 17 00:00:00 2001
From: Yuriy Skalko <yuriy.skalko at gmail.com>
Date: Fri, 23 Oct 2020 09:24:53 +0300
Subject: [PATCH] Unify naming of menu items

---
 src/frontends/qt/Menus.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/frontends/qt/Menus.cpp b/src/frontends/qt/Menus.cpp
index afe43c70f1..bbfe5d919a 100644
--- a/src/frontends/qt/Menus.cpp
+++ b/src/frontends/qt/Menus.cpp
@@ -989,7 +989,7 @@ void MenuDefinition::expandDocuments()
 
 	Buffer * first = theBufferList().first();
 	if (!first) {
-		add(MenuItem(MenuItem::Info, qt_("<No Documents Open>")));
+		add(MenuItem(MenuItem::Info, qt_("(No Documents Open)")));
 		return;
 	}
 
@@ -1055,7 +1055,7 @@ void MenuDefinition::expandBookmarks()
 		}
 	}
 	if (empty)
-		add(MenuItem(MenuItem::Info, qt_("<No Bookmarks Saved Yet>")));
+		add(MenuItem(MenuItem::Info, qt_("(No Bookmarks Saved Yet)")));
 }
 
 
@@ -1243,7 +1243,7 @@ void MenuDefinition::expandFlexInsert(
 	}
 	// FIXME This is a little clunky.
 	if (items_.empty() && type == InsetLayout::CUSTOM && !buf->hasReadonlyFlag())
-		add(MenuItem(MenuItem::Help, qt_("No Custom Insets Defined!")));
+		add(MenuItem(MenuItem::Help, qt_("(No Custom Insets Defined)")));
 }
 
 
-- 
2.28.0.windows.1



More information about the lyx-devel mailing list