Skip to content

i18n(fa): Refine Persian translations for GIS terminology and UI read… - #1758

Merged
giswqs merged 3 commits into
opengeos:mainfrom
arazshah:fix/persian-translation-review
Aug 7, 2026
Merged

i18n(fa): Refine Persian translations for GIS terminology and UI read…#1758
giswqs merged 3 commits into
opengeos:mainfrom
arazshah:fix/persian-translation-review

Conversation

@arazshah

@arazshah arazshah commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Hi @QiushengWu,

As a native Persian speaker with a background in geospatial technology, I have reviewed the fa.json catalog to improve machine-translated phrases into standard GIS terminology and natural Persian UI phrasing.

Key improvements in this PR:

Refined core GIS/Geospatial terms (e.g., Attribute Table, Layers, Symbology) to align with standard domain usage.
Fixed awkward machine-translated phrases for better UX.
Preserved all placeholder parity ({{count}}, {{name}}), formatting tags, and JSON structure/ordering.

Verified with npm run typecheck and i18n tests.

Summary by CodeRabbit

  • Localization
    • Updated Persian translations throughout the desktop application.
    • Standardized wording for export, import, discard, selection, creation, and failure messages.
    • Clarified error and status messages for improved readability.
    • Replaced inconsistent terminology with a unified term for display styles across basemap, layer, rendering, and interface settings.
    • Improved consistency across related labels, descriptions, and workflow messages.

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 3195f2e3-6317-4ee3-bdc9-dd6f8e6869ab

📥 Commits

Reviewing files that changed from the base of the PR and between 4bf01a7 and c3ff72c.

📒 Files selected for processing (1)
  • apps/geolibre-desktop/src/i18n/locales/fa.json

📝 Walkthrough

Walkthrough

The Persian desktop localization catalog standardizes display-style terminology and clarifies export, import, selection, creation, discard, and failure messages across application features.

Changes

Persian desktop localization

Layer / File(s) Summary
Core terminology and source messages
apps/geolibre-desktop/src/i18n/locales/fa.json
General source, service, vector-tile, basemap, bookmark, and display-style wording is updated.
Media and export messages
apps/geolibre-desktop/src/i18n/locales/fa.json
Recording, GPS, georeferencing, collaboration, print, atlas, and pixel-time-series messages are reworded.
Processing, project, and grid terminology
apps/geolibre-desktop/src/i18n/locales/fa.json
Settings, style-manager, project, SQL, grid, STAC, Earthdata, and raster messages are standardized.
Analysis and symbology wording
apps/geolibre-desktop/src/i18n/locales/fa.json
Assistant, story-map, detection, attribute-table, field, plugin, and rendering terminology is updated.
Layer and raster export wording
apps/geolibre-desktop/src/i18n/locales/fa.json
Layer, KML, raster, chart, legend, time-slider, style, and clipboard messages use standardized Persian terminology.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • opengeos/GeoLibre#1737: Both PRs modify apps/geolibre-desktop/src/i18n/locales/fa.json, with this PR refining related Persian translations.

Suggested reviewers: itsmadson

Poem

A rabbit checks each Persian phrase,
And trims old “style” in gentle ways.
Exports now speak, failures clear,
New wording hops from far to near.
The locale blooms, neat and bright. 🐇

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the Persian localization changes and the refinement of GIS terminology and UI wording.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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 @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

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.

Actionable comments posted: 6

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/geolibre-desktop/src/i18n/locales/fa.json`:
- Line 44: Normalize the user-facing labels in fa.json identified by the
exportLibrary entry and the additional listed locations by replacing every
doubled space with a single space, without changing the surrounding Persian text
or translation keys.
- Around line 1003-1005: Update the trackExported and exportFailed translations
to use the existing “رد” track terminology instead of “مسیر” route terminology,
while preserving their respective track-export success and failure meanings.
- Line 1456: Update the exporting translation value in fa.json by replacing the
misspelled Persian word گزفتن with گرفتن, while preserving the rest of the
message and interpolation placeholders unchanged.
- Line 4054: Update the Persian descriptions at both the visible entry and the
corresponding message around the second referenced location to explicitly state
that the YOLO model is created in ONNX format, replacing the ambiguous “ایجادشده
به ONNX” wording with the established equivalent of “ساخته‌شده در قالب ONNX”
while preserving the rest of each translation.
- Line 1097: Update the "exported" translation in the fa locale so “GeoTIFF” and
the Persian text are separated properly, and remove the space before the final
period while preserving the intended success message.
- Line 57: Update the Persian description value in the fa locale so the phrase
corresponding to “lightweight” uses an appropriate term such as “سبک,” while
preserving the meanings of “cloud-native” and “GIS platform” from the English
source; remove the incorrect “شیوهٔ نمایش” wording.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: d748d0d2-fdc8-4aed-be0b-23338a5057fc

📥 Commits

Reviewing files that changed from the base of the PR and between ca6a5fc and 4bf01a7.

📒 Files selected for processing (1)
  • apps/geolibre-desktop/src/i18n/locales/fa.json

Comment thread apps/geolibre-desktop/src/i18n/locales/fa.json Outdated
Comment thread apps/geolibre-desktop/src/i18n/locales/fa.json Outdated
Comment thread apps/geolibre-desktop/src/i18n/locales/fa.json Outdated
Comment thread apps/geolibre-desktop/src/i18n/locales/fa.json Outdated
Comment thread apps/geolibre-desktop/src/i18n/locales/fa.json Outdated
Comment thread apps/geolibre-desktop/src/i18n/locales/fa.json Outdated
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

🔍 Cloudflare PR preview

Item Value
Site https://45e7c7a9.geolibre-preview.pages.dev
Demo app https://45e7c7a9.geolibre-preview.pages.dev/demo/
Commit c3ff72c

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

🔍 GitHub Pages PR preview

Item Value
Site Deploy failed. See the job log.
Demo app Unavailable
Commit c3ff72c

- Collapse doubled spaces in nine user-facing Persian labels (export
  library, export all, GPX/GeoJSON export, print layout description,
  atlas export failure, GeoParquet, HTML export)
- about.description: translate "lightweight" as سبک instead of
  شیوهٔ نمایش (display style), which described GeoLibre as a
  display-style platform
- gps.trackExported / gps.exportFailed: use the رد track terminology
  already used by trackLog, record, and trackLayerName, and keep the
  messages about exporting rather than creating a route
- georeferencer.exported: separate GeoTIFF from the Persian text and
  drop the space before the period
- printLayout.atlas.exporting: fix the گزفتن typo (گرفتن)
- objectDetection description and chooseModel: state the ONNX format
  explicitly with خروجی‌گرفته‌شده در قالب ONNX

@giswqs giswqs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you very much for your contribution.

@giswqs
giswqs merged commit 6b37213 into opengeos:main Aug 7, 2026
42 checks passed
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.

2 participants