Skip to content

Commit

Permalink
fix: 【文件管理器】自定义屏保缩略图及右键菜单中菜单命令未国际化,展示为英文
Browse files Browse the repository at this point in the history
修改了【文件管理器】自定义屏保缩略图及右键菜单中菜单命令未国际化,展示为英文

Log: 修改了【文件管理器】自定义屏保缩略图及右键菜单中菜单命令未国际化,展示为英文

Bug: https://pms.uniontech.com/bug-view-263945.html
  • Loading branch information
zhx-uos authored and max-lvs committed Aug 15, 2024
1 parent d130d93 commit 7da67d7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion customscreensaver/deepin-custom-screensaver/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ int main(int argc, char *argv[])
DApplication a(argc, argv);
a.setOrganizationName("deepin");
a.loadTranslator();

a.setApplicationName(QObject::tr("deepin-screensaver"));
a.setApplicationDisplayName(QObject::tr("deepin-screensaver"));
CommandLineManager::instance()->process(a.arguments());

if (CommandLineManager::instance()->isSet("window-id")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@
<source>Restore Defaults</source>
<translation>Restore Defaults</translation>
</message>
<message>
<location filename="../src/main.cpp" line="37"/>
<source>deepin-screensaver</source>
<translation>自定义屏保</translation>
</message>
<message>
<location filename="../src/main.cpp" line="38"/>
<source>123</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SelectPathWidget</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
<source>Restore Defaults</source>
<translation>恢复默认</translation>
</message>
<message>
<location filename="../src/main.cpp" line="37"/>
<location filename="../src/main.cpp" line="38"/>
<source>deepin-screensaver</source>
<translation>自定义屏保设置</translation>
</message>
</context>
<context>
<name>SelectPathWidget</name>
Expand Down

0 comments on commit 7da67d7

Please sign in to comment.