From de34940c4dd709fa7103c6961cbe8b410638ffdd Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Mon, 22 Mar 2021 19:27:44 +0200 Subject: Lang: Improvements; macOS menu items Use char pointer ranges for the array of IDs and strings to avoid allocations. Translate macOS menu items. IssueID #192 --- src/ui/window.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/ui/window.c') diff --git a/src/ui/window.c b/src/ui/window.c index 2d1deb72..d27d252b 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -1055,12 +1055,12 @@ static void setupUserInterface_Window(iWindow *d) { setAlignVisually_LabelWidget(navMenu, iTrue); setId_Widget(addChildFlags_Widget(navBar, iClob(navMenu), collapse_WidgetFlag), "navbar.menu"); #else - insertMenuItems_MacOS("File", 1, fileMenuItems_, iElemCount(fileMenuItems_)); - insertMenuItems_MacOS("Edit", 2, editMenuItems_, iElemCount(editMenuItems_)); - insertMenuItems_MacOS("View", 3, viewMenuItems_, iElemCount(viewMenuItems_)); - insertMenuItems_MacOS("Bookmarks", 4, bookmarksMenuItems_, iElemCount(bookmarksMenuItems_)); - insertMenuItems_MacOS("Identity", 5, identityMenuItems_, iElemCount(identityMenuItems_)); - insertMenuItems_MacOS("Help", 7, helpMenuItems_, iElemCount(helpMenuItems_)); + insertMenuItems_MacOS("${menu.title.file}", 1, fileMenuItems_, iElemCount(fileMenuItems_)); + insertMenuItems_MacOS("${menu.title.edit}", 2, editMenuItems_, iElemCount(editMenuItems_)); + insertMenuItems_MacOS("${menu.title.view}", 3, viewMenuItems_, iElemCount(viewMenuItems_)); + insertMenuItems_MacOS("${menu.title.bookmarks}", 4, bookmarksMenuItems_, iElemCount(bookmarksMenuItems_)); + insertMenuItems_MacOS("${menu.title.identity}", 5, identityMenuItems_, iElemCount(identityMenuItems_)); + insertMenuItems_MacOS("${menu.title.help}", 7, helpMenuItems_, iElemCount(helpMenuItems_)); #endif } /* Tab bar. */ { -- cgit v1.2.3