Fix a bug that the dirname in ~/.local/share/ is translated into
Chinese;
Update part of translation.
This commit is contained in:
忘记、过去 2020-11-19 13:59:25 +08:00
parent e00273c0e6
commit 5b3d1aea39
3 changed files with 15 additions and 15 deletions

@ -27,7 +27,7 @@ int main(int argc, char *argv[])
DAboutDialog dialog;
a.loadTranslator();
a.setAttribute(Qt::AA_UseHighDpiPixmaps);
a.setApplicationName(DEFAULT_TITLE);
a.setApplicationName("SparkWebAppRuntime"); // 这里不要翻译,否则 ~/.local/share 中文件夹名也会被翻译
a.setProductName(DEFAULT_TITLE);
a.setAboutDialog(&dialog);
@ -85,7 +85,7 @@ int main(int argc, char *argv[])
parser.addOption(optWidth);
QCommandLineOption optHeight(QStringList() << "H" << "height",
QObject::tr("The Height of Application. Default is %1").arg(DEFAULT_HEIGHT),
QObject::tr("The Height of Application. Default is %1.").arg(DEFAULT_HEIGHT),
"height",
QString::number(DEFAULT_HEIGHT));
parser.addOption(optHeight);

@ -21,62 +21,62 @@
<message>
<location filename="../main.cpp" line="61"/>
<source>Description: %1</source>
<translation>: %1</translation>
<translation>%1</translation>
</message>
<message>
<location filename="../main.cpp" line="66"/>
<source>Enable CommandLineParser. Default is false.</source>
<translation>. .</translation>
<translation></translation>
</message>
<message>
<location filename="../main.cpp" line="70"/>
<source>The Title of Application. Default is %1.</source>
<translation>. %1.</translation>
<translation> %1</translation>
</message>
<message>
<location filename="../main.cpp" line="76"/>
<source>The target URL. Default is Blank.</source>
<translation>URL. .</translation>
<translation> URL</translation>
</message>
<message>
<location filename="../main.cpp" line="82"/>
<source>The Width of Application. Default is %1.</source>
<translation>. %1.</translation>
<translation> %1</translation>
</message>
<message>
<location filename="../main.cpp" line="88"/>
<source>The Height of Application. Default is %1</source>
<translation>. %1</translation>
<source>The Height of Application. Default is %1.</source>
<translation> %1</translation>
</message>
<message>
<location filename="../main.cpp" line="94"/>
<source>The ICON of Application.</source>
<translation>.</translation>
<translation></translation>
</message>
<message>
<location filename="../main.cpp" line="100"/>
<source>The Description of Application.</source>
<translation>.</translation>
<translation></translation>
</message>
<message>
<location filename="../main.cpp" line="106"/>
<source>The Configuration file of Application.</source>
<translation>.</translation>
<translation></translation>
</message>
<message>
<location filename="../main.cpp" line="112"/>
<source>The root path of the program web service.</source>
<translation>WebServer的根路径.</translation>
<translation> WebServer </translation>
</message>
<message>
<location filename="../main.cpp" line="119"/>
<source>The port number of the program web service.</source>
<translation>WebServer的监听端口号.</translation>
<translation> WebServer </translation>
</message>
<message>
<location filename="../main.cpp" line="126"/>
<source>The ssl port number of the program web service.</source>
<translation>WebServer的SSL协议的监听端口号.</translation>
<translation> WebServer SSL </translation>
</message>
<message>
<location filename="../globaldefine.h" line="7"/>