Skip to content

Commit 4ca5412

Browse files
committed
fix(menu): drop the Whitebox section label, title-case "Whitebox Toolbox"
The toolbox item alone heads the catalog categories; the extra muted label above it was redundant with it. The separator before the GeoLibre submenu stays, so the two sections still read as separate owners. "Whitebox Toolbox" matches the title case of the sibling menu items (SQL Workspace, Python Console, Jupyter Notebook). Retitling the shared processing.whitebox.toolbox string rather than adding a menu-only key keeps the item translated in all 19 locales; it also titles the toolbox dialog, so that heading picks up the same casing in English.
1 parent 6736ad9 commit 4ca5412

2 files changed

Lines changed: 10 additions & 16 deletions

File tree

apps/geolibre-desktop/src/components/layout/toolbar/ProcessingMenu.tsx

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -140,22 +140,16 @@ export function ProcessingMenu({
140140
<DropdownMenuSeparator />
141141
</>
142142
)}
143-
{/* Section header for the toolbox block below. Without it nothing in
144-
the menu says the nine category submenus belong to the Whitebox
145-
toolbox — they render as bare siblings of the GeoLibre submenu, so
146-
"Conversion" (toolbox) and "GeoLibre → Conversion" (app dialog) look
147-
like peers (GeoLibre#1904). A label, not a parent submenu: the
148-
grouping is worth one muted line, not an extra hover on the way to
149-
every tool. */}
143+
{/* Heads the toolbox block below: the nine category submenus render as
144+
bare siblings of the GeoLibre submenu, so "Conversion" (toolbox) and
145+
"GeoLibre → Conversion" (app dialog) otherwise look like peers
146+
(GeoLibre#1904). Names the toolbox rather than repeating the bare
147+
product name, and says what clicking it does. Reuses the dialog's
148+
own heading string, which is already translated in every locale. */}
150149
{showWhitebox && (
151-
<>
152-
<DropdownMenuLabel className="text-xs text-muted-foreground">
153-
{t("toolbar.item.whitebox")}
154-
</DropdownMenuLabel>
155-
<DropdownMenuItem onSelect={() => setProcessingOpen(true)}>
156-
{t("processing.whitebox.toolbox")}
157-
</DropdownMenuItem>
158-
</>
150+
<DropdownMenuItem onSelect={() => setProcessingOpen(true)}>
151+
{t("processing.whitebox.toolbox")}
152+
</DropdownMenuItem>
159153
)}
160154
{/* Whitebox tools grouped by category/subcategory. Each leaf opens the
161155
Whitebox toolbox dialog preselected to that tool. Catalog data lives

apps/geolibre-desktop/src/i18n/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4073,7 +4073,7 @@
40734073
"allSources": "All sources",
40744074
"geolibreTools": "GeoLibre tools",
40754075
"whiteboxTools": "Whitebox tools",
4076-
"toolbox": "Whitebox toolbox",
4076+
"toolbox": "Whitebox Toolbox",
40774077
"checkingRuntime": "Checking runtime.",
40784078
"toolsAvailable_one": "{{count}} tool available.",
40794079
"toolsAvailable_other": "{{count}} tools available.",

0 commit comments

Comments
 (0)