Skip to content

Translations update from OSGeo Weblate #143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2025

Conversation

osgeoweblate
Copy link
Contributor

Currently translated at 100.0% (73 of 73 strings)

Co-authored-by: Dapeng Wang <[email protected]>
Translate-URL: https://weblate.osgeo.org/projects/postgis-workshop/loading_data/zh_Hans/
Translation: postgis-workshop/loading_data
Copy link
Contributor

coderabbitai bot commented May 14, 2025

📝 Walkthrough

Walkthrough

The update revises the Simplified Chinese translation file for the Introduction to PostGIS package. Changes include updating translator metadata and making minor formatting adjustments, such as adding spaces around inline links and punctuation, to improve readability and consistency in the translation entries. No technical content or code was altered.

Changes

File(s) Change Summary
postgis-intro/sources/locale/zh_Hans/LC_MESSAGES/loading_data.po Updated translator metadata; adjusted whitespace and formatting in translation strings for clarity

Poem

In the warren of words, we polish and space,
Making each link and comma fall into place.
With paws on the keyboard, translations anew—
For clarity’s sake, we hop and we hew.
Now every command in Chinese will gleam,
As neat as a rabbit’s well-tended dream!
🐇✨

Tip

⚡️ Faster reviews with caching
  • CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure Review - Disable Cache at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the Data Retention setting under your Organization Settings.

Enjoy the performance boost—your workflow just got faster.


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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (6)
postgis-intro/sources/locale/zh_Hans/LC_MESSAGES/loading_data.po (6)

85-86: Ensure consistent spacing around inline links.
The link markup is split across lines with an extra space at the end of the first line. It’s clearer to keep the sentence as one logical unit, for example:

-msgstr ""
-"可以从 `GIS Internals <https://www.gisinternals.com/release.php>`_ "
-"下载ogr2ogr的构建版本。"
+msgstr "可以从 `GIS Internals <https://www.gisinternals.com/release.php>`_ 下载ogr2ogr的构建版本。"

91-93: Correct inline link markup and punctuation.
The closing backtick and underscore for the QGIS link are split from the link text, and a trailing hyphen is used. Prefer a single line with proper Chinese punctuation and a full-width dash if needed:

-msgstr ""
-"ogr2ogr包含在 `QGIS安装包 <https://qgis.org/en/site/forusers/download.html>`"
-"_ 中,并可以通过OSGeo4W Shell访问 -"
+msgstr "ogr2ogr 包含在 `QGIS 安装包 <https://qgis.org/en/site/forusers/download.html>`_ 中,并可通过 OSGeo4W Shell 访问。"

105-107: Remove spaces before Chinese punctuation.
In Chinese text, avoid spaces before commas and periods. For example:

-msgstr ""
-"如果您安装了 `Postgres.app <https://postgresapp.com/>`_ ,那么您会在 :file:`/"
-"Applications/...` 目录中找到 "
-":file:`ogr2ogr`。"
+msgstr "如果您安装了 `Postgres.app <https://postgresapp.com/>`_,那么您会在 :file:`/Applications/...` 目录中找到 :file:`ogr2ogr`。"

112-113: Remove spaces before Chinese punctuation.
Similarly, eliminate the space before the comma after the link. E.g.:

-msgstr ""
-"若已安装 `HomeBrew <https://brew.sh/>`_ ,可通过安装 **gdal** 软件包获取 "
-":file:`ogr2ogr` 工具"
+msgstr "若已安装 `HomeBrew <https://brew.sh/>`_,可通过安装 **gdal** 软件包获取 :file:`ogr2ogr` 工具"

169-171: Consolidate multi-line link for readability.
Breaking the PostgreSQL 驱动程序 link across three lines may hamper maintainability. Consider merging into one or two lines:

-msgstr ""
-"**lco** 选项代表“图层创建选项”。不同的驱动程序具有不同的创建选项,"
-"我们在这里使用了 `PostgreSQL驱动程序 <https://gdal.org/drivers/vector/pg.html>`_ 的三个选项。"
+msgstr "**lco** 选项代表“图层创建选项”。不同驱动的创建选项各有差异,这里使用了 `PostgreSQL 驱动程序 <https://gdal.org/drivers/vector/pg.html>`_ 提供的三个选项。"

390-390: Remove space before comma in Chinese text.
Eliminate the space before the comma following the :command: role:

-msgstr "配置了PostGIS数据库连接后,转到 :command:`Database->DbManager` ,展开到您的数据库,如下所示:"
+msgstr "配置了PostGIS 数据库连接后,转到 :command:`Database->DbManager`,展开到您的数据库,如下所示:"
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 742f800 and 1bdc939.

📒 Files selected for processing (1)
  • postgis-intro/sources/locale/zh_Hans/LC_MESSAGES/loading_data.po (5 hunks)
🔇 Additional comments (2)
postgis-intro/sources/locale/zh_Hans/LC_MESSAGES/loading_data.po (2)

12-13: PO metadata update looks correct.
The PO-Revision-Date and Last-Translator fields have been updated to reflect the new translator and timestamp.


96-96: MS4W translation is clear and consistent.
The sentence structure and link formatting match the Windows and QGIS examples above.

Comment on lines 5 to +6
# Wangdapeng <[email protected]>, 2025.
# Dapeng Wang <[email protected]>, 2025.
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Unify translator metadata to avoid duplication.
Two very similar comment lines exist for the same individual (“# Wangdapeng…” and “# Dapeng Wang…”). Standardize on one form (e.g., “Dapeng Wang <…>, 2025”) and remove the redundant entry to prevent confusion.

🤖 Prompt for AI Agents (early access)
In postgis-intro/sources/locale/zh_Hans/LC_MESSAGES/loading_data.po around lines
5 to 6, there are two redundant translator metadata comment lines for the same
person with slightly different name formats. Remove one of the lines and keep a
single standardized comment line, such as "# Dapeng Wang
<[email protected]>, 2025", to unify the metadata and avoid
duplication.

@robe2 robe2 merged commit 4a5082b into postgis:master May 20, 2025
1 check 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.

3 participants