Skip to content

i18n: translate 287 new strings in all 21 languages - #3372

Merged
giswqs merged 2 commits into
mainfrom
i18n/fill-catalogs-2026-11-29
Nov 29, 2026
Merged

giswqs merged 2 commits into
mainfrom
i18n/fill-catalogs-2026-11-29

Conversation

@giswqs

@giswqs giswqs commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Brings every interface catalog in crates/ui-egui/src/i18n/ back to full coverage after recent features added new strings.

Coverage

Locales Before After
az, bn, de, el, es, fa, fr, id, it, ja, ka, ko, lo, nl, pl, pt, ru, tr, vi, zh-tw 94% (4,559 of 4,847, 288 missing, 38 stale) 100% (4,840 of 4,840, 0 stale)
zh 94% (4,560 of 4,847, 287 missing, 38 stale) 100% (4,840 of 4,840, 0 stale)
  • 6,026 new entries (287 per locale; zh already had one).
  • 38 stale entries per locale pruned, plus five rows that were never looked up (Aa, ADM, Digit, EPSG:, ESRI:): strings that were reworded (the new wording is translated here) or removed. Two of them, Command search Escape and FocusAtPassStart, are egui plugin debug_names that never appear in the interface; the extraction script now skips them.
  • No placeholder or line-break problems; i18n::tests pass, including the catalog parse and placeholder test.

How

The translations follow each catalog's existing terminology (layer, feature, field, raster, basemap, tool names, ribbon tabs and panes) and each language's quotation marks. They keep {placeholders}, the line breaks in ribbon labels, product names, codes (ADM0 to ADM5, EPSG) and example coordinates. Some choices that may be worth a look:

  • Terms that are new to the catalogs: "Generate Tessellation" (zh 生成细分曲面, zh-tw 產生細分曲面, the established GIS terms), "Enterprise geodatabase", and edit "Conflicts" in offline areas.
  • "Case" in the text format panel is translated as letter case.
  • In lo, the existing catalog translates "Classes" with the word it uses for "layer"; the new class strings use ຄລາສ to match "Label Class". The older entry is left unchanged.

These translations are machine-authored against the existing catalogs. Corrections from native speakers are very welcome.

Checked

German (long words) and Japanese (CJK) render with the headless harness; the ribbon labels fit and no English is left on the main window.

Reach

Catalog data only: the desktop app and the browser read the same catalogs, and so does the phone interface through ui-egui. The command line, Python, the Assistant and MCP are not translated.

Fills every catalog to 100% (4,845 strings) and prunes 38 stale
entries whose English wording changed or is no longer shown, including
two egui plugin debug names that were never visible.
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters: 21

  • crates/ui-egui/src/i18n/az.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/bn.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/de.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/el.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/es.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/fa.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/fr.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/id.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/it.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/ja.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/ka.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/ko.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/lo.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/nl.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/pl.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/pt.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/ru.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/tr.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/vi.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/zh-tw.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/zh.tsv is excluded by !**/*.tsv

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: ab8a7752-7b8b-4bf0-b931-ff32eb050d97

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Comment thread crates/ui-egui/src/i18n/az.tsv Outdated
@@ -131,7 +137,7 @@ A WGS 84 UTM zone for MGRS labels, by its EPSG code (32632); empty: the map's wh
A Zarr store (format 2 or 3) by its web address, with consolidated metadata, or a folder on this computer. A variable's map is read for the steps picked of its other dimensions, such as time. Veb ünvanı ilə, konsolidasiya edilmiş metaməlumatlı Zarr anbarı (format 2 və ya 3), yaxud bu kompüterdəki qovluq. Dəyişənin xəritəsi onun digər ölçülərinin, məsələn zamanın, seçilmiş addımları üçün oxunur.
A Zarr variable's values through time at points clicked on the map. Xəritədə kliklənən nöqtələrdə Zarr dəyişəninin zamana görə qiymətləri.
A5 Grid A5 toru
A5's equal-area pentagonal cells at a resolution, over the map's extent, a layer or the world, as polygons with their ids. Müəyyən çözümlülükdə, xəritə hüdudu, lay və ya bütün dünya üzrə A5-in bərabərsahəli beşbucaqlı xanaları, identifikatorları ilə poliqonlar kimi.
Aa Aa

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: the Aa row (and the ADM row at line 321 of this file, repeated in all 21 catalogs) isn't looked up by any tl! or i18n::fmt call. Aa is a glyph sample painted directly in crates/ui-egui/src/scriptfind.rs:478, and no source literal is "ADM" outside the strip_prefix("ADM") calls. So both rows are dead, which contradicts the "0 stale" claim in the PR body. They're harmless at runtime, so this can wait for the release quality pass or be dropped from the catalogs in this PR.

Category: quality

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in f70dddb: dropped the Aa and ADM rows, and Digit, EPSG: and ESRI: too, which are likewise only prefixes matched against data. The extraction script now skips literals passed to strip_prefix/starts_with and the Aa glyph, so audit reports 4,840 keys at 100% with no dead rows.

@github-actions

Copy link
Copy Markdown
Contributor

Code review

I reviewed the 21 catalog files (crates/ui-egui/src/i18n/*.tsv), which are the only files this PR changes. I couldn't run cargo test or the headless harness here, so the checks below are by reading and grep. There are no prior review threads, so none were skipped as already raised.

Bugs

  • None found. Every added or removed row has exactly one tab, so none fall into the parser's error path. No English key is duplicated within a catalog (sampled keys each appear once per file). The escapes (\n line breaks, server\\instance) match their code literals.
  • The brace count per row matches between English and translation on every added row, and no added row drops or adds placeholders. This is a coarse check, not the per-name comparison in every_catalog_parses_cleanly_and_keeps_placeholders, which CI runs. Confidence: high.

Security

  • None. Catalog text only.

Performance

  • The 21 catalogs are include_str!'d, so the binary grows by about 632 KB. Each language's catalog is parsed lazily, so there's no runtime cost to the other 20 languages. Informational only.

Quality

  • The PR's "100% coverage, 0 stale" claim is not accurate. crates/ui-egui/src/portalsui.rs:327 looks up "{level} — {count} unit" and "{level} — {count} units", and neither key is in any of the 21 catalogs. The English text shows in every language when a unit count is shown. portalsui.rs isn't in this diff, so the gap predates the PR. Confidence: high.
  • Dead entries: Aa (painted directly at scriptfind.rs:478) and ADM have no tl! or fmt call site, in all 21 catalogs. Posted inline on az.tsv:140. Confidence: high.
  • The 38 removed keys per language each have a reworded replacement that matches the code, so no translation is orphaned. I checked the removed Extensions…, Show the layer only inside…, Degrees as decimals…, Resolution (0–30), and Or grid reference keys, and the three reworded ones match their code strings exactly. Confidence: high.
  • Five Persian rows begin with a Latin word. i18n/rtl.rs rewrites Latin-led lines into logical order, so they should render correctly, but the PR's visual check covered only German and Japanese. Confidence: medium, low severity.

AGENTS.md

  • No rule broken. The PR touches only catalog data, so the twin-family check doesn't apply (no code path changes). The surfaces section in the PR body is accurate for catalog-only work.

Concerns left alone: 0 (no prior threads).

Change size

Compared with the base branch (merge base 713d33a, head ba7795f), covering the whole PR.

Measure Value
Files changed 21 (0 added, 21 modified, 0 removed, 0 renamed)
Size before 8.08 MB (8,468,215 B)
Size after 8.69 MB (9,115,003 B)
Total size change +631.6 KB (+646,788 B)
Path Before After Change
crates/ui-egui/src/i18n/ka.tsv 602.8 KB 649.1 KB +46.3 KB
crates/ui-egui/src/i18n/lo.tsv 563.7 KB 606.1 KB +42.4 KB
crates/ui-egui/src/i18n/bn.tsv 515.7 KB 558.1 KB +42.4 KB
crates/ui-egui/src/i18n/el.tsv 496.7 KB 535.0 KB +38.3 KB
crates/ui-egui/src/i18n/ru.tsv 460.7 KB 495.9 KB +35.2 KB
crates/ui-egui/src/i18n/fa.tsv 427.9 KB 460.5 KB +32.6 KB
crates/ui-egui/src/i18n/ja.tsv 395.8 KB 425.4 KB +29.6 KB
crates/ui-egui/src/i18n/vi.tsv 366.5 KB 395.0 KB +28.5 KB
crates/ui-egui/src/i18n/ko.tsv 353.7 KB 381.1 KB +27.3 KB
crates/ui-egui/src/i18n/fr.tsv 357.6 KB 384.6 KB +27.0 KB
crates/ui-egui/src/i18n/de.tsv 348.0 KB 374.5 KB +26.5 KB
crates/ui-egui/src/i18n/az.tsv 351.9 KB 378.4 KB +26.5 KB
crates/ui-egui/src/i18n/es.tsv 345.2 KB 371.4 KB +26.2 KB
crates/ui-egui/src/i18n/it.tsv 340.9 KB 367.1 KB +26.2 KB
crates/ui-egui/src/i18n/tr.tsv 341.2 KB 367.2 KB +26.0 KB
crates/ui-egui/src/i18n/nl.tsv 337.9 KB 363.9 KB +26.0 KB
crates/ui-egui/src/i18n/pt.tsv 340.9 KB 366.9 KB +26.0 KB
crates/ui-egui/src/i18n/pl.tsv 335.9 KB 361.3 KB +25.5 KB
crates/ui-egui/src/i18n/id.tsv 322.7 KB 347.8 KB +25.1 KB
crates/ui-egui/src/i18n/zh-tw.tsv 329.0 KB 353.0 KB +24.1 KB

stats.json lists 20 of the 21 files in largest_changes. crates/ui-egui/src/i18n/zh.tsv is not in the list, so its size change is not shown here. trees_truncated is false.

@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

📖 Docs preview

Item Value
Preview https://preview.rustgis.app/pr-3372/
Web app https://preview.rustgis.app/pr-3372/app/
Commit f70dddb

GitHub Pages takes a minute or two to publish a new commit.

Aa is a glyph sample painted directly, and ADM, Digit, EPSG: and ESRI:
are only prefixes matched against data.
@@ -3763,6 +3918,7 @@ Sepia সেপিয়া
Sequential ক্রমিক
Serif সেরিফ
Server সার্ভার
Server or server\\instance সার্ভার বা সার্ভার\\instance

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Bengali value leaves the English word "instance" in the translation (সার্ভার বা সার্ভার\\instance), so the line reads half in English, unlike the rest of the catalog. The same key in the other catalogs translates the second word (de Instanz, ru экземпляр, ja インスタンス). A native speaker should pick the Bengali term; for example সার্ভার বা সার্ভার\\ইনস্ট্যান্স is a common transliteration. Not a crash or data issue, so this is a wording nit.

Category: quality

@github-actions

Copy link
Copy Markdown
Contributor

Code review

Scope: this PR changes only the 21 interface catalogs in crates/ui-egui/src/i18n/*.tsv. The staged diff was truncated at 1.5 MB, so I read the translations for az, bn, de, el, es, fa, fr, id, it and the first part of ja. The other locales (rest of ja, ka, ko, lo, nl, pl, pt, ru, tr, vi, zh, zh-tw) were not read line by line. I ran whole-file checks on the complete catalogs in the checkout instead (below).

Bugs: none found.

  • Every {placeholder} check passes in all 21 full catalogs: no translation adds or drops a brace group. Placeholder names in the diff I read match the English.
  • No malformed rows (every row has two tab-separated fields with non-empty text), no stray \r, and no empty translations. The leading-space rows ( by ×, · {n} more…) are deliberate.
  • The Aa, ADM, Digit, EPSG: and ESRI: rows are gone from all catalogs. The code uses these only as strip_prefix/starts_with arguments, so the removal is correct.
  • The existing "Aa/ADM" thread is answered and fixed in f70dddb. I did not re-post it. Left alone: 1 earlier concern.

Security: none found. The change is catalog text only.

Performance: none found.

Quality:

  • bn.tsv:3921 leaves the English word "instance" in the Bengali translation. Inline comment posted. Confidence: high.
  • The PR body says every locale has 4,840 of 4,840 keys. az.tsv has 5,284 entries, zh-tw.tsv 5,491 and zh.tsv 5,601. The count doesn't reconcile with the body, and zh/zh-tw differ from the other 19 catalogs. I can't check this without the audit script, which is not in the repo's xtask/ or in this diff. Confidence: medium that the body's numbers are inaccurate or the audit counts only some entries. Worth a re-run.
  • The PR body says the extraction script "now skips" the removed literals. No script change is in the changed files, so the reviewer can't confirm this. Confidence: medium.

AGENTS.md: no breaks found. The PR adds catalog translations, and AGENTS.md says these are not required, so they are allowed. The (linked) and other new keys have matching placeholders.

Change size

Compared with main: the whole PR (merge base 713d33a to head f70dddb). 21 files: 0 added, 21 modified, 0 removed, 0 renamed. Total size before 8.08 MB, after 8.69 MB, change +630.6 KB.

Measure Value
Files changed 21 (added 0, modified 21, removed 0, renamed 0)
Size before 8.08 MB
Size after 8.69 MB
Total size change +630.6 KB

Largest changes (the stats list the top 20 of 21 files; zh.tsv is not listed):

Path Before After Change
ka.tsv 602.8 KB 649.1 KB +46.3 KB
lo.tsv 563.7 KB 606.1 KB +42.4 KB
bn.tsv 515.7 KB 558.0 KB +42.3 KB
el.tsv 496.7 KB 535.0 KB +38.3 KB
ru.tsv 460.7 KB 495.8 KB +35.1 KB
fa.tsv 427.9 KB 460.5 KB +32.6 KB
ja.tsv 395.8 KB 425.4 KB +29.6 KB
vi.tsv 366.5 KB 395.0 KB +28.5 KB
ko.tsv 353.8 KB 381.0 KB +27.3 KB
fr.tsv 357.6 KB 384.5 KB +27.0 KB
de.tsv 348.0 KB 374.5 KB +26.5 KB
az.tsv 351.9 KB 378.3 KB +26.4 KB
es.tsv 345.2 KB 371.3 KB +26.2 KB
it.tsv 340.9 KB 367.1 KB +26.1 KB
tr.tsv 341.2 KB 367.2 KB +26.0 KB
nl.tsv 337.9 KB 363.9 KB +25.9 KB
pt.tsv 340.9 KB 366.8 KB +25.9 KB
pl.tsv 335.9 KB 361.3 KB +25.4 KB
id.tsv 322.7 KB 347.7 KB +25.1 KB
zh-tw.tsv 328.9 KB 353.0 KB +24.0 KB

@giswqs
giswqs added this pull request to the merge queue Nov 29, 2026
Merged via the queue into main with commit d849249 Nov 29, 2026
30 checks passed
@giswqs
giswqs deleted the i18n/fill-catalogs-2026-11-29 branch November 29, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant