-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tray menu quick action lack translate
- Loading branch information
1 parent
950c19c
commit 4e29d1b
Showing
12 changed files
with
120 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
qpp/prefetch/Source/Interface/TrayIcon/const_tray_icon.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include "const_tray_icon_tdummy.cpp" | ||
|
||
QString Const_TrayIcon::MenuText::Pause = DEFINE_Pause; | ||
QString Const_TrayIcon::MenuText::Resume = DEFINE_Resume; | ||
QString Const_TrayIcon::MenuText::Exit = DEFINE_Exit; | ||
|
||
void Const_TrayIcon::MenuText::init() | ||
{ | ||
Pause = trr(tscope, DEFINE_Pause); | ||
Resume = trr(tscope, DEFINE_Resume); | ||
Exit = trr(tscope, DEFINE_Exit); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
qpp/prefetch/Source/Interface/TrayIcon/const_tray_icon_tdummy.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#include "const_tray_icon.h" | ||
#include "..\..\Translate\translate_tool.h" | ||
|
||
#define tscope "Const_TrayIcon::MenuText" | ||
|
||
void Const_TrayIcon::MenuText::tdummy() | ||
{ | ||
#define DEFINE_Pause "Pause" | ||
Pause = tr("Pause"); | ||
#define DEFINE_Resume "Resume" | ||
Resume = tr("Resume"); | ||
#define DEFINE_Exit "Exit" | ||
Exit = tr("Exit"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters