From 2c205bf5dbe21e30b4a525e162e34900e2d73f74 Mon Sep 17 00:00:00 2001 From: shenmo Date: Thu, 17 Sep 2020 16:49:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 7 ++++--- spark-store.pro.user | 2 +- trans/lang_Chinses.ts | 15 +++++++++++++++ trans/lang_English.qm | Bin 2891 -> 3310 bytes trans/lang_English.ts | 17 +++++++++++++++++ widget.cpp | 2 +- 6 files changed, 38 insertions(+), 5 deletions(-) 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 7b4778e6560da3ae96b596c6c929ec73c39bd01b..10f929da460ce2f21c5096f8ee5a700021639669 100644 GIT binary patch delta 779 zcmZuuQD{TQ~L{3h^Anw)k!k?O1Vur&kSdbT0ggu2Gso=<{bU{{aSL5I^tb77(w+4Sc6 z7ch9NZ~lG^)uzvMKLqij{zDLf*4^W*p=kta;tqY=fah6*VIKp-Im5HiW(dz4R^u>Y zZdZ-&m?wOy-dZjLAE_=qI)NZlJS$X#H^y5wwh(Dn_-2#hm*YP<+u_f==JS0u5ct6t zI|?{KA76}KgFrW5Try*x;!AI?Ac)1t4$q;sS1Pw;)D5^WpEqu?wc$jPajyfoq0NWC z3u+{(rA`Wyiz4JFGx{in(0g@CN-ch-&Tz~X@ry!APR)wfM?~QUt3Vxgm)jdqDH8AL z09LKE6N?^n6}c!4p?6^lqYnHLF5@9OM_$FI%y*ZW9!y?veG~-e6k?pkcMwy|hvgyS z{+|?NALJF=L2^@|JoW#UR@N2a2=G>Nk{$IpqH@%Qr)Kb#(<+9i%bjA}kI+Fn1AJHI z7GgMKuY7+|ObW#ZPsFRU@~unxOk7GY<}-qvPUkZTX*&D&4XrFB0ZFN>IDWGbPs*to sPP&tpXU9ZgTuLTdo%YI_oEQ}s;*v1&@0B*tQTQvDhBx!nuUgjs0zw1W6#xJL delta 340 zcmaDSd0K3ONWBBY**AU+4D81lzuk^vU|{8E5_piqz`$^k$d%3`|PgyYuCM2C8s>ZU9=q$iZ_-sTD|n=Ka1l0;ryW zk9`*}Q2h@+B^i4L2Id$(8$qB&Z2o)?1H6IitofcK2mt9czL$Y77(5s_&hou1=>-ZL z<9m5X0q6q;zV8>>fg1by*_*Zk=^YT7Q=gxsI1$Ky&add?1$1yQzm*?Qo^yL9ka)HE IFVja(0P!DEzyJUM 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";