Skip to content

feat: add pt_BR help manual - #466

Merged
pengfeixx merged 1 commit into
linuxdeepin:masterfrom
pengfeixx:feat/pt_BR-manual
Nov 30, 2026
Merged

pengfeixx merged 1 commit into
linuxdeepin:masterfrom
pengfeixx:feat/pt_BR-manual

Conversation

@pengfeixx

@pengfeixx pengfeixx commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • 新增葡萄牙语(pt_BR)帮助手册

Changes

  • assets/deepin-reader/document-viewer/pt_BR/: 两个 md(d_/p_document-viewer.md)+ fig/printer.png + fig/hotkey.png,结构与 en_US 一致
  • 合入源为 assets/deepin-reader/document-viewer/(debian/、linglong/output/ 为构建产物,不入源)

Test plan

  • pt_BR 目录已入 assets/deepin-reader/document-viewer/
  • common/ 与 assets 里的一致,无需合入

Summary by Sourcery

Add Brazilian Portuguese documentation and supporting images for the Document Viewer.

New Features:

  • Add a Brazilian Portuguese help manual for the Document Viewer, covering its features and usage workflows.
  • Include localized screenshots for keyboard shortcuts and printing instructions.

Documentation:

  • Provide the Document Viewer user documentation in pt_BR while preserving the existing manual structure.

@sourcery-ai

sourcery-ai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Documentation

Add the Brazilian Portuguese overview and detailed Document Viewer manuals, with their supporting screenshots, to make the help content available in pt_BR.

  • assets/deepin-reader/document-viewer/pt_BR/d_document-viewer.md L1-300
  • assets/deepin-reader/document-viewer/pt_BR/p_document-viewer.md L1-300
  • assets/deepin-reader/document-viewer/pt_BR/fig/hotkey.png
  • assets/deepin-reader/document-viewer/pt_BR/fig/printer.png

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="assets/deepin-reader/document-viewer/pt_BR/d_document-viewer.md" line_range="263" />
<code_context>
+Ao realizar leituras prolongadas, você pode ativar o modo de proteção ocular para reduzir o cansaço visual e o brilho da tela.
+
+1. Na interface do Visualizador de Documentos, clique em ![icon_menu](../common/icon_menu.svg).
+2. Selecione **Modo de proteção ocular** e escolha uma das predefinições:
+   - **Proteção ocular clássica**: Fundo bege suave, simulando a textura do papel e reduzindo a luz azul, ideal para leituras prolongadas.
+   - **Proteção ocular verde**: Fundo verde claro, aliviando o cansaço visual, indicado para trabalho diário em escritório.
</code_context>
<issue_to_address>
**Portuguese menu labels don't match**

When the app runs with the pt_BR locale, the app runs with the pt_BR locale, its unfinished translations fall back to the English menu labels, so readers cannot find the Portuguese labels given for eye protection and batch printing.

Translate these UI strings in pt_BR or use the English labels shown by the app in the manual.

Also at `assets/deepin-reader/document-viewer/pt_BR/p_document-viewer.md:89`, `assets/deepin-reader/document-viewer/pt_BR/p_document-viewer.md:263`, `assets/deepin-reader/document-viewer/pt_BR/d_document-viewer.md:89`.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Ao realizar leituras prolongadas, você pode ativar o modo de proteção ocular para reduzir o cansaço visual e o brilho da tela.

1. Na interface do Visualizador de Documentos, clique em ![icon_menu](../common/icon_menu.svg).
2. Selecione **Modo de proteção ocular** e escolha uma das predefinições:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Medium · Portuguese menu labels don't match

When the app runs with the pt_BR locale, the app runs with the pt_BR locale, its unfinished translations fall back to the English menu labels, so readers cannot find the Portuguese labels given for eye protection and batch printing.

Translate these UI strings in pt_BR or use the English labels shown by the app in the manual.

Also at assets/deepin-reader/document-viewer/pt_BR/p_document-viewer.md:89, assets/deepin-reader/document-viewer/pt_BR/p_document-viewer.md:263, assets/deepin-reader/document-viewer/pt_BR/d_document-viewer.md:89.

Prompt for AI agents
In `assets/deepin-reader/document-viewer/pt_BR/d_document-viewer.md` at line 263:

**Portuguese menu labels don't match**

When the app runs with the pt_BR locale, the app runs with the pt_BR locale, its unfinished translations fall back to the English menu labels, so readers cannot find the Portuguese labels given for eye protection and batch printing.

Translate these UI strings in pt_BR or use the English labels shown by the app in the manual.

Also at `assets/deepin-reader/document-viewer/pt_BR/p_document-viewer.md:89`, `assets/deepin-reader/document-viewer/pt_BR/p_document-viewer.md:263`, `assets/deepin-reader/document-viewer/pt_BR/d_document-viewer.md:89`.

1. Add pt_BR help manual under assets/deepin-reader/document-viewer/pt_BR/
2. Include d_/p_document-viewer.md and fig/printer.png + fig/hotkey.png
3. Structure mirrors the existing en_US manual; no source build artifacts

feat: 新增葡萄牙语(pt_BR)帮助手册

1. 在 assets/deepin-reader/document-viewer/pt_BR/ 下新增 pt_BR 帮助手册
2. 包含 d_/p_document-viewer.md 及 fig/printer.png、fig/hotkey.png
3. 目录结构与现有 en_US 一致,未引入构建产物

Influence:
1. Verify pt_BR help manual appears in deepin-manual on pt_BR locale
2. Check both overview and detail pages render with pt_BR text
3. Confirm pt_BR figures (printer/hotkey) display correctly
4. 验证 pt_BR 语言环境下 deepin-manual 能显示该帮助手册
5. 检查概览页与详情页均以 pt_BR 文本正常渲染
6. 确认 pt_BR 配图(printer/hotkey)显示正确

Log: Add Portuguese (Brazil) help manual for the document viewer
PMS: TASK-396575
@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

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

@pengfeixx
pengfeixx merged commit e663efa into linuxdeepin:master Nov 30, 2026
9 checks passed
@pengfeixx
pengfeixx deleted the feat/pt_BR-manual branch November 30, 2026 08:52
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