Skip to content

fix: Translation correction#95

Closed
JWWTSL wants to merge 0 commit intolinuxdeepin:masterfrom
JWWTSL:master
Closed

fix: Translation correction#95
JWWTSL wants to merge 0 commit intolinuxdeepin:masterfrom
JWWTSL:master

Conversation

@JWWTSL
Copy link
Contributor

@JWWTSL JWWTSL commented Jul 7, 2025

log: update translation.

Please do not send pull requests to the linuxdeepin/*

see https://github.com/linuxdeepin/developer-center/wiki/Contribution-Guidelines-for-Developers

Thanks!

Summary by Sourcery

Update and expand translation files for Deepin Boot Maker to improve localization quality and add support for additional languages.

New Features:

  • Add new translation templates for German (de_DE), US English (en_US), Kurdish (krl), and Uzbek (uz)

Enhancements:

  • Refine and correct existing translation strings across numerous languages for clarity and consistency
  • Standardize desktop entry translations to uniform terminology for "Boot Maker"

@sourcery-ai
Copy link

sourcery-ai bot commented Jul 7, 2025

Reviewer's Guide

This PR standardizes translation files by updating TS headers, adjusting source location offsets, refreshing and correcting translation strings across languages, flagging unfinished entries, and synchronizing desktop entry metadata.

File-Level Changes

Change Details Files
Standardize TS file headers and encoding declarations
  • Add encoding="utf-8" attribute in TS header
  • Separate XML declaration and DOCTYPE onto distinct lines
  • Ensure consistent XML formatting across TS files
src/translations/deepin-boot-maker_pam.ts
src/translations/deepin-boot-maker_ast.ts
src/translations/deepin-boot-maker_kn_IN.ts
...
Update location line numbers for source entries
  • Adjust line offsets for BMHandler context by +4
  • Sync location tags in BMWindow, ISOSelectView, ProgressView
  • Revise locations in QObject and ResultView contexts
src/translations/deepin-boot-maker_*.ts
Refresh and correct translation strings
  • Fix disk error and mount messages in Portuguese
  • Translate Boot Maker description consistently
  • Correct ISO selection prompts in multiple locales
src/translations/deepin-boot-maker_pam.ts
src/translations/deepin-boot-maker_pt_PT.ts
src/translations/deepin-boot-maker_es_ES.ts
...
Flag incomplete translations
  • Add type="unfinished" to new or pending entries
  • Preserve existing translations while marking unreviewed ones
  • Ensure consistency of comment attributes
src/translations/deepin-boot-maker_ml.ts
src/translations/deepin-boot-maker_de_DE.ts
src/translations/deepin-boot-maker_krl.ts
Synchronize desktop entry translations
  • Update GenericName and Name fields
  • Translate 'Comment' for boot media description
  • Harmonize naming as 'Boot Maker' or 'Boot Creator'
src/translations/desktop/desktop_*.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:

  • The newly added de_DE.ts file is entirely marked as unfinished; please either provide the German translations or omit this file from the PR to avoid shipping empty entries.
  • Many <translation> entries across languages are still flagged as type="unfinished"; please ensure all strings are fully localized or remove the unfinished attribute so untranslated placeholders aren’t displayed in the UI.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The newly added de_DE.ts file is entirely marked as unfinished; please either provide the German translations or omit this file from the PR to avoid shipping empty entries.
- Many `<translation>` entries across languages are still flagged as `type="unfinished"`; please ensure all strings are fully localized or remove the `unfinished` attribute so untranslated placeholders aren’t displayed in the UI.

## Individual Comments

### Comment 1
<location> `src/translations/deepin-boot-maker_fil.ts:55` </location>
<code_context>
         <location filename="../app/view/isoselectview.cpp" line="114"/>
         <source>Drag an ISO image file here</source>
-        <translation>I-drag ang ISO image file dito</translation>
+        <translation>I-click-dito ang file na ISO mo</translation>
     </message>
     <message>
</code_context>

<issue_to_address>
Colloquial phrasing in Filipino translation may reduce clarity.

Consider replacing 'I-click-dito ang file na ISO mo' with 'I-drag ang ISO image file dito' for greater clarity and accuracy.
</issue_to_address>

<suggested_fix>
<<<<<<< SEARCH
        <translation>I-click-dito ang file na ISO mo</translation>
=======
        <translation>I-drag ang ISO image file dito</translation>
>>>>>>> REPLACE

</suggested_fix>

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.

<location filename="../app/view/isoselectview.cpp" line="114"/>
<source>Drag an ISO image file here</source>
<translation>I-drag ang ISO image file dito</translation>
<translation>I-click-dito ang file na ISO mo</translation>
Copy link

Choose a reason for hiding this comment

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

suggestion: Colloquial phrasing in Filipino translation may reduce clarity.

Consider replacing 'I-click-dito ang file na ISO mo' with 'I-drag ang ISO image file dito' for greater clarity and accuracy.

Suggested change
<translation>I-click-dito ang file na ISO mo</translation>
<translation>I-drag ang ISO image file dito</translation>

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Jul 10, 2025

TAG Bot

New tag: 6.0.10
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #96

@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: JWWTSL

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.

2 participants