Skip to content

fix: update Arabic (ar) translations - #549

Open
Kakueeen wants to merge 1 commit into
linuxdeepin:masterfrom
Kakueeen:agent/bugfix/7bb167f236e4
Open

fix: update Arabic (ar) translations#549
Kakueeen wants to merge 1 commit into
linuxdeepin:masterfrom
Kakueeen:agent/bugfix/7bb167f236e4

Conversation

@Kakueeen

@Kakueeen Kakueeen commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Complete all unfinished Arabic translation entries in .ts files.

Summary by Sourcery

Enhancements:

  • Complete previously unfinished Arabic translations across editor modes, Markdown controls, audio device warnings, file validation, and save dialogs.

Complete all unfinished Arabic translation entries in .ts files.
@sourcery-ai

sourcery-ai Bot commented Aug 28, 2026

Copy link
Copy Markdown

Reviewer's Guide

Fills unfinished entries in the Arabic Qt translation catalog with localized text for editor modes, markdown controls, device errors, and file-saving dialogs, including messages with substitution placeholders.

File-Level Changes

Change Details Files
Completes previously unfinished Arabic UI translations across editor, preview, markdown, audio, and save-warning workflows.
  • Adds Arabic labels for editing, reading, live preview, and view modes.
  • Translates markdown code-block actions and line-count messages.
  • Translates invalid-character, audio-device, and file-saving warning dialogs while preserving placeholders such as %1 and %2.
translations/deepin-editor_ar.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

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="translations/deepin-editor_ar.ts" line_range="1427" />
<code_context>
         <location filename="../src/widgets/bottombar.cpp" line="91"/>
         <location filename="../src/widgets/bottombar.cpp" line="499"/>
         <source>Edit Mode</source>
-        <translation type="unfinished"></translation>
+        <translation>وضع التحرير</translation>
     </message>
</code_context>
<issue_to_address>
**nitpick:** The Arabic translation uses "كالملف الأصلي" ("like the original file") instead of clearly expressing "as the original file/path"; the warning does not accurately tell users that saving over the original file is prohibited.

**Suggested fix:** Use wording such as `لا يمكن الحفظ باسم الملف الأصلي في وضع المعاينة. يرجى اختيار مسار مختلف.`
</issue_to_address>

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.

<message>
<location filename="../src/widgets/window.cpp" line="1569"/>
<source>Cannot save as the original file in preview mode. Please choose a different path.</source>
<translation type="unfinished"></translation>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nitpick: The Arabic translation uses "كالملف الأصلي" ("like the original file") instead of clearly expressing "as the original file/path"; the warning does not accurately tell users that saving over the original file is prohibited.

Suggested fix: Use wording such as لا يمكن الحفظ باسم الملف الأصلي في وضع المعاينة. يرجى اختيار مسار مختلف.

@deepin-ci-robot

Copy link
Copy Markdown

deepin pr auto review

🤖 AI 代码审查报告

总体评分: 100 分 (通过阈值: 70分)

Fail


📊 总体评价

项目 结果
审查结论 代码审查通过
评分详情 本次提交为阿拉伯语翻译更新,将 Qt 翻译文件中所有未完成的翻译条目(type="unfinished")替换为实际的阿拉伯语翻译。翻译内容完整、准确,格式占位符正确保留,XML 结构完整,无安全风险。

🔍 详细分析

1. 语法逻辑 ✅

评价: 优秀 ✅ 通过

潜在问题:
✅ 未发现明显问题

建议: []


2. 代码质量 ✅

评价: 优秀 ✅ 通过

潜在问题:
✅ 未发现明显问题

建议: []


3. 代码性能 ✅

评价: 优秀 ✅ 通过

潜在问题:
✅ 未发现明显问题

建议: []


4. 代码安全 🔒

评价: 优秀 ✅ 通过

🔐 发现 0 个安全漏洞

安全漏洞详情:
✅ 未发现安全漏洞

建议: []


💡 改进建议代码示例


本报告由 AI 代码审查工具自动生成

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Kakueeen, 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