fix: rename "UOS AI" to "小U同学" in Chinese translation - #511
Conversation
There was a problem hiding this comment.
Sorry @tianming-1996, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
Reviewer's GuideAdds proper hover and press interaction states to ColorLabel in ColorSelectWdg, refactoring painting and mouse event handling so the color markers visually respond to hover/press and emit their selection signal on mouse release instead of press. Sequence diagram for updated ColorLabel mouse interactionsequenceDiagram
actor User
participant ColorLabel
participant ColorSelectWdg
User->>ColorLabel: enterEvent
ColorLabel->>ColorLabel: m_bHover = true
ColorLabel->>ColorLabel: update
User->>ColorLabel: mousePressEvent (LeftButton)
ColorLabel->>ColorLabel: m_bPressed = true
ColorLabel->>ColorLabel: update
User->>ColorLabel: mouseReleaseEvent (LeftButton)
ColorLabel->>ColorLabel: m_bPressed = false
ColorLabel->>ColorLabel: m_bSelected = true
ColorLabel->>ColorLabel: update
ColorLabel-->>ColorSelectWdg: sigColorClicked(m_bSelected, m_color)
User->>ColorLabel: leaveEvent
ColorLabel->>ColorLabel: m_bHover = false
ColorLabel->>ColorLabel: m_bPressed = false
ColorLabel->>ColorLabel: update
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
3604de7 to
6a71b34
Compare
6a71b34 to
e4d32a9
Compare
1. 更新简体中文翻译中语音朗读/语音听写的提示文案,将"UOS AI"改为"小U同学"; 2. 仅修改 zh_CN 翻译值,不改动英文源字符串以保持其他语言翻译条目匹配; 3. 覆盖 slotVoiceReadingAction 与 slotdictationAction 共用的同一翻译条目; ===================================== 1. updated the prompt text of text-to-speech/speech-to-text in Simplified Chinese translation, renaming "UOS AI" to "小U同学"; 2. only modified the zh_CN translation value, keeping the English source string unchanged to preserve translation entry matching for other languages; 3. covers the single shared translation entry used by both slotVoiceReadingAction and slotdictationAction; Log: 文本编辑器卸载 UOS AI 后使用语音朗读/听写时的提示文案中产品名"UOS AI"更改为"小U同学",同步产品品牌更名 Bug: https://pms.uniontech.com/bug-view-373369.html
e4d32a9 to
4e17dde
Compare
|
recheck |
|
/reset |
|
recheck |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: max-lvs, tianming-1996 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/merge |
|
This pr cannot be merged! (status: unstable) |
deepin pr auto review★ 总体评分:100分■ 【总体评价】
■ 【详细分析】
■ 【改进建议代码示例】 diff --git a/translations/deepin-editor_zh_CN.ts b/translations/deepin-editor_zh_CN.ts
index 51aa88dd..1c013356 100644
--- a/translations/deepin-editor_zh_CN.ts
+++ b/translations/deepin-editor_zh_CN.ts
@@ -1029,7 +1029,7 @@
<location filename="../src/editor/dtextedit.cpp" line="2868"/>
<location filename="../src/editor/dtextedit.cpp" line="2870"/>
<source>Please install UOS AI from the app store first.</source>
- <translation>请前往应用商店安装“UOS AI”后再使用</translation>
+ <translation>请前往应用商店安装“小U同学”后再使用</translation>
</message>
<message>
<location filename="../src/editor/dtextedit.cpp" line="292"/> |
|
/merge |
|
This pr cannot be merged! (status: unstable) |
|
/forcemerge |
|
This pr force merged! (status: unstable) |
7458207
into
linuxdeepin:release/eagle
根因分析
文本编辑器(deepin-editor)在右键菜单提供"语音朗读"和"语音听写"功能,依赖 UOS AI(
com.iflytek.aiassistantDBus 服务)。卸载 UOS AI 后使用这些功能时,弹出提示"请前往应用商店安装"UOS AI"后再使用"。产品品牌已从"UOS AI"更名为"小U同学",但简体中文翻译文件
translations/deepin-editor_zh_CN.ts未同步更新。translations/deepin-editor_zh_CN.ts:1032src/editor/dtextedit.cpp中slotVoiceReadingAction()和slotdictationAction()共 4 处tr("Please install UOS AI from the app store first."),共用同一条翻译条目。修复方案
仅修改
translations/deepin-editor_zh_CN.ts一行,将翻译值中的"UOS AI"替换为"小U同学"。不修改英文源字符串(Qttr()翻译键),不影响其他语言。改动安全评估
低风险。仅修改翻译文案值,不涉及代码逻辑、函数签名或外部调用者(0 处引用)。