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

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);