mirror of
https://gitee.com/spark-store-project/spark-web-app-runtime.git
synced 2025-12-15 03:22:05 +08:00
Fix Bugs
Fix a bug that the dirname in ~/.local/share/ is translated into Chinese; Update part of translation.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user