Skip to content

Conversation

@JWWTSL
Copy link
Contributor

@JWWTSL JWWTSL commented Aug 7, 2025

log: Translation update

Summary by Sourcery

Add comprehensive Lao (lo) translations for the application UI and desktop entry

Enhancements:

  • Introduce Lao locale translation file for the main Deepin Draw UI
  • Add Lao translation for the desktop entry metadata

@github-actions
Copy link

github-actions bot commented Aug 7, 2025

TAG Bot

TAG: 6.5.25
EXISTED: yes
DISTRIBUTION: unstable

@sourcery-ai
Copy link

sourcery-ai bot commented Aug 7, 2025

Reviewer's Guide

This PR introduces Lao locale support by adding two new Qt translation files for the main application and desktop entry, and records the localization update in the Debian changelog.

File-Level Changes

Change Details Files
Record translation update in changelog
  • Add entry for Lao translation update
debian/changelog
Add main application Lao translations
  • Create deepin-draw_lo.ts with translations for UI strings across all contexts
translations/deepin-draw_lo.ts
Add desktop entry Lao translations
  • Create desktop_lo.ts with localized desktop entry Name, Comment and GenericName
translations/desktop/desktop_lo.ts

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @JWWTSL - I've reviewed your changes - here's some feedback:

  • Update the TS header to set language="lo" and sourcelanguage="en" to correctly configure the Lao translation file.
  • Double-check that all placeholder tokens (e.g. %1) and newline markers match the source strings exactly to avoid runtime formatting issues.
  • Review the attributes in desktop_lo.ts to ensure the desktop entry keys (Name, Comment, GenericName) are correctly referenced.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Update the TS header to set language="lo" and sourcelanguage="en" to correctly configure the Lao translation file.
- Double-check that all placeholder tokens (e.g. %1) and newline markers match the source strings exactly to avoid runtime formatting issues.
- Review the <location> attributes in desktop_lo.ts to ensure the desktop entry keys (Name, Comment, GenericName) are correctly referenced.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@deepin-ci-robot
Copy link

deepin pr auto review

代码审查意见:

  1. translations/deepin-draw_lo.ts文件中,<TS version="2.1" language="en" sourcelanguage="lo">中的language属性应该改为lo,以匹配文件名中的语言代码。

  2. translations/deepin-draw_lo.ts文件中,<TS version="2.1" language="en" sourcelanguage="lo">中的sourcelanguage属性应该改为en,以匹配源文件的原始语言。

  3. translations/deepin-draw_lo.ts文件中,<TS version="2.1" language="en" sourcelanguage="lo">中的version属性应该改为2.1,以匹配文件版本。

  4. translations/deepin-draw_lo.ts文件中,<TS version="2.1" language="en" sourcelanguage="lo">中的<context>标签应该包含<name><message>标签,以提供上下文和消息翻译。

  5. translations/desktop/desktop_lo.ts文件中,<TS version="2.1" language="lo">中的language属性应该改为lo,以匹配文件名中的语言代码。

  6. translations/desktop/desktop_lo.ts文件中,<TS version="2.1" language="lo">中的<context>标签应该包含<name><message>标签,以提供上下文和消息翻译。

  7. translations/desktop/desktop_lo.ts文件中,<TS version="2.1" language="lo">中的<message>标签应该包含<location><source>标签,以提供消息的位置和原始文本。

  8. translations/desktop/desktop_lo.ts文件中,<TS version="2.1" language="lo">中的<message>标签应该包含<translation>标签,以提供消息的翻译文本。

  9. translations/desktop/desktop_lo.ts文件中,<TS version="2.1" language="lo">中的<message>标签应该包含<location><source>标签,以提供消息的位置和原始文本。

  10. translations/desktop/desktop_lo.ts文件中,<TS version="2.1" language="lo">中的<message>标签应该包含<translation>标签,以提供消息的翻译文本。

@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: JWWTSL, lzwind

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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