Skip to content

Commit

Permalink
Fix: [File Manager] Custom screensaver thumbnail and menu commands in
Browse files Browse the repository at this point in the history
right-click menu are not internationalized and displayed in English

Log: [File Manager] Custom screensaver thumbnail and menu commands in
right-click menu are not internationalized and displayed in English

Bug: https://pms.uniontech.com/bug-view-263945.html
  • Loading branch information
zhx-uos committed Aug 16, 2024
1 parent 4343193 commit 860ecf6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion customscreensaver/deepin-custom-screensaver/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ 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"));
a.setApplicationDisplayName(QObject::tr("deepin-screensaver"));//The taskbar displays internationalization

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 @@ -9,8 +9,8 @@
<translation>Restore Defaults</translation>
</message>
<message>
<location filename="../src/main.cpp" line="37"/>
<location filename="../src/main.cpp" line="38"/>
<location filename="../src/main.cpp" line="39"/>
<source>deepin-screensaver</source>
<translation>自定义屏保</translation>
</message>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<translation>恢复默认</translation>
</message>
<message>
<location filename="../src/main.cpp" line="37"/>
<location filename="../src/main.cpp" line="38"/>
<location filename="../src/main.cpp" line="39"/>
<source>deepin-screensaver</source>
<translation>自定义屏保</translation>
</message>
Expand Down

0 comments on commit 860ecf6

Please sign in to comment.