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
+2 -2
View File
@@ -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"/>