Skip to content

Commit

Permalink
fix: Wrong translation and icon in control-center
Browse files Browse the repository at this point in the history
1. 修复翻译问题
2. 更新在控制中心显示的图标,截图的默认图标在dcc-dock-plugin
   插件中已有,录屏图标需单独安装

Log: 修复翻译和显示问题
  • Loading branch information
rb-union committed Apr 9, 2024
1 parent 080e5cf commit 2d8e1d4
Show file tree
Hide file tree
Showing 9 changed files with 94 additions and 33 deletions.
2 changes: 2 additions & 0 deletions src/dde-dock-plugins/shotstartrecord/res.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
<file>res/screen-recording.svg</file>
<file>res/status-screen-record.svg</file>
<file>res/status-screen-record-dark.svg</file>
<file>res/shot-start-record-plugin.svg</file>
<file>res/shot-start-record-plugin-dark.svg</file>
</qresource>
</RCC>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion src/dde-dock-plugins/shotstartrecord/shotstartrecord.pro
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ SOURCES += \
target.path = /usr/lib/dde-dock/plugins/
file.files += $$PWD/com.deepin.dde.dock.module.shot-start-record-plugin.gschema.xml
file.path += /usr/share/glib-2.0/schemas/
recordicon.files += $$PWD/res/shot-start-record-plugin.svg \
$$PWD/res/shot-start-record-plugin-dark.svg
recordicon.path += /usr/share/icons/hicolor/scalable/status

INSTALLS += target file
INSTALLS += target file recordicon
RESOURCES += res.qrc
17 changes: 14 additions & 3 deletions translations/deepin-screen-recorder_bo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,22 @@ or press the shortcut again to stop recording</source>
<name>QuickPanelWidget</name>
<message>
<source>Screenshot</source>
<translation type="unfinished">བརྙན་བཤུས།</translation>
<translation>བརྙན་བཤུས།</translation>
</message>
<message>
<source>Record</source>
<translation type="unfinished">བརྙན་ཕབ།</translation>
<translation>བརྙན་ཕབ།</translation>
</message>
</context>
<context>
<name>RecordIconWidget</name>
<message>
<source>Screenshot</source>
<translation>བརྙན་བཤུས།</translation>
</message>
<message>
<source>Recording</source>
<translation>བརྙན་ཕབ།</translation>
</message>
</context>
<context>
Expand Down Expand Up @@ -394,7 +405,7 @@ or press the shortcut again to stop recording</source>
<name>ShotStartRecordPlugin</name>
<message>
<source>Record</source>
<translation type="unfinished">བརྙན་ཕབ།</translation>
<translation>བརྙན་ཕབ།</translation>
</message>
</context>
<context>
Expand Down
17 changes: 14 additions & 3 deletions translations/deepin-screen-recorder_ug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,22 @@ or press the shortcut again to stop recording</source>
<name>QuickPanelWidget</name>
<message>
<source>Screenshot</source>
<translation type="unfinished">رەسىم تۇتۇش</translation>
<translation>رەسىم تۇتۇش</translation>
</message>
<message>
<source>Record</source>
<translation type="unfinished">سىنغا ئېلىش</translation>
<translation>سىنغا ئېلىش</translation>
</message>
</context>
<context>
<name>RecordIconWidget</name>
<message>
<source>Screenshot</source>
<translation>رەسىم تۇتۇش</translation>
</message>
<message>
<source>Recording</source>
<translation>ئېكراننى سىنغا ئېلىش</translation>
</message>
</context>
<context>
Expand Down Expand Up @@ -393,7 +404,7 @@ or press the shortcut again to stop recording</source>
<name>ShotStartRecordPlugin</name>
<message>
<source>Record</source>
<translation type="unfinished">سىنغا ئېلىش</translation>
<translation>سىنغا ئېلىش</translation>
</message>
</context>
<context>
Expand Down
38 changes: 18 additions & 20 deletions translations/deepin-screen-recorder_zh_CN.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?xml version="1.0" ?><!DOCTYPE TS><TS version="2.1" language="zh_CN">
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="zh_CN">
<context>
<name>CountdownTooltip</name>
<message>
Expand Down Expand Up @@ -139,11 +141,22 @@ or press the shortcut again to stop recording</source>
<name>QuickPanelWidget</name>
<message>
<source>Screenshot</source>
<translation/>截图</translation>
<translation>截图</translation>
</message>
<message>
<source>Record</source>
<translation/>录屏</translation>
<translation>录屏</translation>
</message>
</context>
<context>
<name>RecordIconWidget</name>
<message>
<source>Screenshot</source>
<translation>截图</translation>
</message>
<message>
<source>Recording</source>
<translation>录屏</translation>
</message>
</context>
<context>
Expand Down Expand Up @@ -392,7 +405,7 @@ or press the shortcut again to stop recording</source>
<name>ShotStartRecordPlugin</name>
<message>
<source>Record</source>
<translation/></translation>
<translation>录屏</translation>
</message>
</context>
<context>
Expand All @@ -406,14 +419,6 @@ or press the shortcut again to stop recording</source>
<translation>马赛克</translation>
</message>
</context>
<context>
<name>StartTooltip</name>
<message>
<source>Click or drag to
select the area to record</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SubToolWidget</name>
<message>
Expand Down Expand Up @@ -619,11 +624,4 @@ select the area to record</source>
<translation>退出</translation>
</message>
</context>
<context>
<name>VoiceRecordProcess</name>
<message>
<source>New recording</source>
<translation>新录音</translation>
</message>
</context>
</TS>
</TS>
17 changes: 14 additions & 3 deletions translations/deepin-screen-recorder_zh_HK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,22 @@ or press the shortcut again to stop recording</source>
<name>QuickPanelWidget</name>
<message>
<source>Screenshot</source>
<translation type="unfinished">截圖</translation>
<translation>截圖</translation>
</message>
<message>
<source>Record</source>
<translation type="unfinished">錄屏</translation>
<translation>錄屏</translation>
</message>
</context>
<context>
<name>RecordIconWidget</name>
<message>
<source>Screenshot</source>
<translation>截圖</translation>
</message>
<message>
<source>Recording</source>
<translation>錄屏</translation>
</message>
</context>
<context>
Expand Down Expand Up @@ -394,7 +405,7 @@ or press the shortcut again to stop recording</source>
<name>ShotStartRecordPlugin</name>
<message>
<source>Record</source>
<translation type="unfinished">錄屏</translation>
<translation>錄屏</translation>
</message>
</context>
<context>
Expand Down
17 changes: 14 additions & 3 deletions translations/deepin-screen-recorder_zh_TW.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,22 @@ or press the shortcut again to stop recording</source>
<name>QuickPanelWidget</name>
<message>
<source>Screenshot</source>
<translation type="unfinished">截圖</translation>
<translation>截圖</translation>
</message>
<message>
<source>Record</source>
<translation type="unfinished">錄屏</translation>
<translation>錄屏</translation>
</message>
</context>
<context>
<name>RecordIconWidget</name>
<message>
<source>Screenshot</source>
<translation>截圖</translation>
</message>
<message>
<source>Recording</source>
<translation>錄屏</translation>
</message>
</context>
<context>
Expand Down Expand Up @@ -394,7 +405,7 @@ or press the shortcut again to stop recording</source>
<name>ShotStartRecordPlugin</name>
<message>
<source>Record</source>
<translation type="unfinished">錄屏</translation>
<translation>錄屏</translation>
</message>
</context>
<context>
Expand Down

0 comments on commit 2d8e1d4

Please sign in to comment.