Repository navigation
Description
Before you start
- I searched the existing issues and the roadmap and did not find a duplicate request.
What problem does this solve?
In a classroom with the interface in Portuguese (or any language other than English), students can't find tools by their own words, and GeoLibre results come back with English layer names they can't choose.
Three things together, all checked on main (573709f):
- Find Tools only matches English. The filter in the Tools pane (
crates/ui-egui/src/panes.rs,geoprocessing) compares the query withx.name,x.summaryandx.id, which are the English strings, while the rows showtl!(tool.name). So even a built-in tool that is translated can't be found by what the user sees: with the interface in Portuguese, the row reads Dissolver, but typingdissolverfinds nothing ("dissolve".contains("dissolver")is false). The same goes for Densidade de kernel (Kernel Density). - GeoLibre tools have no translations at all. Their names and summaries come from the runner's manifest and aren't in
i18n/*.tsv, so the rows stay in English and the search has nothing else to match. Typingcurvas de nível(contour lines) returns Accumulation Curvature, Casorati Curvature, and so on, never Contours From Raster. A teacher has to hand out an English word list before every class. - No output name for GeoLibre tools.
crates/geolibre/src/lib.rsdrops the manifest'sio_role: "output"parameters from the form ("outputs are not form fields") and names the layer afterspec.name. Every run of Contours From Raster adds a layer calledContours From Raster, in English, and two runs (10 m and 50 m contours, say) give two layers with the same name that have to be renamed by hand. Built-in tools already takeoutputas the layer name.
Proposed solution
Choices in this proposal
- Search what the user sees, plus the English.
matchesalso teststl!(tool.name)andtl!(tool.summary), and folds accents on both sides, socurvas de nivelmatchescurvas de nível. English stays matched, so tutorials written in English still work. This part is small, needs no new strings, and already fixes built-in tools like Dissolver. - GeoLibre tools use GeoLibre's own language packs. opengeos/geolibre-language-packs (MIT) already translates this catalogue:
v1/whitebox/<locale>.json(schemaschema/v1.json, indexv1/index.json) has, for each tool id, its name, description and every parameter's label and description, plus the category and subcategory names. The Portuguese pack covers 1,066 tools;contours_from_rasteris "Curvas de nível a partir de raster". There are packs for the same languages RustGIS ships (de, es, fr, it, ja, ko, nl, pt, ru, tr, zh and others). GeoLibre keeps them out of the app and downloads one on demand, or imports it from a file. RustGIS can do the same: when the interface language has a pack, offer to download it next to the runner (or import it from a file), cache it, and look up a GeoLibre tool's name, summary, parameter labels, help and toolbox names there, falling back to English. That needs no new strings in RustGIS's catalogues and no translation work on our side, and stays in step with GeoLibre's catalogue. The packs are untrusted input, as GeoLibre treats them: validate them against the schema, accept string leaves only, and cap their size. - An optional "Output name" field on GeoLibre tools. For each
io_role: "output"parameter, the form gets a text field. It starts empty, and its hint shows the default name, which is now the translated tool name (tl!(spec.name), plus the output's label when there are several, as today). A name already in use gets a number, as withgp.batch'soutputPattern. From a script, the parameter takes the sameoutputkey the built-in tools use, sogp.runreads the same for both.
Estimated scope
Medium, in three PRs. Search: crates/ui-egui/src/panes.rs only. Language packs: crates/geolibre (download, cache, validation, lookup) and the tool form and rows, no new dependency (serde_json is already there); the download runs off the UI thread like the runner's download. Output name: crates/geolibre/src/lib.rs (form field and naming) plus the tool form.
Alternatives considered
- Our own catalogue of GeoLibre strings in
i18n/. A thousand-plus tools times every language, kept in step with the runner by hand, when GeoLibre already maintains the same strings. - Bundle the packs in RustGIS. About 1.8 MB per language. GeoLibre keeps them out of its builds for that reason, and an on-demand download fits RustGIS's handling of the runner itself.
- Only add aliases (keywords) to the search. Helps find a tool, but the rows and layer names stay in English, which is the confusing part for students.
- Keep the English layer name and let users rename. That is today's workaround. Two runs giving two layers with the same name is the part that trips people up.
Tests: a unit test for matches with a translated name and an accent-folded query, and one for the GeoLibre job naming the output from the given output and from the default.
Activity
giswqs commentedon Nov 15, 2026
The GeoLibre/Whitebox language packs are available at https://github.com/opengeos/geolibre-language-packs.
They are too big to bundle them in RustGIS.
Please refer to GeoLibre implementation on how to download them on the fly depending on the selected language in the settings.
fix(gp): review round 1 for the GeoLibre language packs (opengeos#2224)
fix(gp): confirmed review findings for the GeoLibre language packs (o…
fix(gp): find GeoLibre's zh-TW tool translations for Traditional Chin…
feat(gp): GeoLibre tools in the interface language from GeoLibre's la…
fix(gp): keep other languages' pack errors and say damaged kept packs…
fix(gp): a removal waits for a kept-pack check in progress (opengeos#…
fix(gp): keep multi-output names within 200 characters, one notice pe…
fix(gp): number a taken output name after the output's own name (open…
fix(gp): keep other languages' pack errors and say damaged kept packs…
feat(gp): name GeoLibre tool outputs with an Output Name field (openg…
elpidioassinaturas commentedon Nov 22, 2026
Completed by #2235 and #2289 (GeoLibre language packs downloaded on demand, and Find Tools matching translated names) and #2299 (an Output Name field on GeoLibre tools). As #2299 explains, the default layer name stays the English tool name, so a project's layer names don't depend on the interface language.