Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix:Custom screensaver thumbnail and menu commands in right-click menu are not internationalized and displayed in English #85

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,8 +34,9 @@ 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,15 +9,11 @@
<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>
<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 @@ -9,10 +9,10 @@
<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>
<translation>自定义屏保</translation>
</message>
</context>
<context>
Expand Down
Loading