diff --git a/main.cpp b/main.cpp index 95999ed..f6b08a5 100644 --- a/main.cpp +++ b/main.cpp @@ -2,6 +2,7 @@ #include //Dtk::Widget::moveToCenter(&w); 要调用它,就得引用DWidgetUtil #include #include +#include DWIDGET_USE_NAMESPACE int main(int argc, char *argv[]) { @@ -15,9 +16,9 @@ int main(int argc, char *argv[]) a.setApplicationAcknowledgementPage("https://gitee.com/deepin-community-store/spark-store"); a.setProductIcon(QIcon::fromTheme("spark-store")); //设置Logo - a.setProductName("Spark应用商店"); - a.setApplicationDescription("社区驱动的一款为第三方应用商店,为改变而生\n本程序按GPL第三版开源"); - a.setApplicationName("Spark应用商店"); //只有在这儿修改窗口标题才有效 + a.setProductName(QLabel::tr("Spark应用商店")); + a.setApplicationDescription(QLabel::tr("社区驱动的一款为第三方应用商店,为改变而生\n本程序按GPL第三版开源")); + a.setApplicationName(QLabel::tr("Spark应用商店")); //只有在这儿修改窗口标题才有效 Widget w; QDesktopWidget *s=DApplication::desktop(); int d_w=s->width(); diff --git a/spark-store.pro.user b/spark-store.pro.user index 33abdf6..d58c715 100644 --- a/spark-store.pro.user +++ b/spark-store.pro.user @@ -1,6 +1,6 @@ - + EnvironmentId diff --git a/trans/lang_Chinses.ts b/trans/lang_Chinses.ts index d7ad1da..ac12508 100644 --- a/trans/lang_Chinses.ts +++ b/trans/lang_Chinses.ts @@ -1,6 +1,21 @@ + + QLabel + + + + Spark应用商店 + + + + + 社区驱动的一款为第三方应用商店,为改变而生 +本程序按GPL第三版开源 + + + Widget diff --git a/trans/lang_English.qm b/trans/lang_English.qm index 7b4778e..10f929d 100644 Binary files a/trans/lang_English.qm and b/trans/lang_English.qm differ diff --git a/trans/lang_English.ts b/trans/lang_English.ts index fec25ee..9896e2b 100644 --- a/trans/lang_English.ts +++ b/trans/lang_English.ts @@ -1,6 +1,23 @@ + + QLabel + + + + Spark应用商店 + Spark Store + + + + 社区驱动的一款为第三方应用商店,为改变而生 +本程序按GPL第三版开源 + A 3-rd party app store powered by deepin community +Spark Store is published under GPL V3 +We born for change. + + Widget diff --git a/widget.cpp b/widget.cpp index 7e49c51..0299a3e 100644 --- a/widget.cpp +++ b/widget.cpp @@ -474,7 +474,7 @@ void Widget::loadappinfo(QUrl arg1) ui->label_show->show(); // 软件信息加载 QString info; - info="包名: "+json["Pkgname"].toString()+"\n"; + info= "包名: "+json["Pkgname"].toString()+"\n"; info+="版本号: "+json["Version"].toString()+"\n"; if(json["Author"].toString()!="" && json["Author"].toString()!=" "){ info+="作者: "+json["Author"].toString()+"\n";