mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-03 01:42:20 +08:00
翻译
This commit is contained in:
parent
efc6c50f88
commit
2c205bf5db
7
main.cpp
7
main.cpp
@ -2,6 +2,7 @@
|
||||
#include <DWidgetUtil> //Dtk::Widget::moveToCenter(&w); 要调用它,就得引用DWidgetUtil
|
||||
#include <QDesktopWidget>
|
||||
#include <widget.h>
|
||||
#include <QTranslator>
|
||||
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();
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 4.8.2, 2020-09-12T13:36:12. -->
|
||||
<!-- Written by QtCreator 4.8.2, 2020-09-17T16:48:42. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
|
@ -1,6 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="zh_CN">
|
||||
<context>
|
||||
<name>QLabel</name>
|
||||
<message>
|
||||
<location filename="../main.cpp" line="19"/>
|
||||
<location filename="../main.cpp" line="21"/>
|
||||
<source>Spark应用商店</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../main.cpp" line="20"/>
|
||||
<source>社区驱动的一款为第三方应用商店,为改变而生
|
||||
本程序按GPL第三版开源</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Widget</name>
|
||||
<message>
|
||||
|
Binary file not shown.
@ -1,6 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="en">
|
||||
<context>
|
||||
<name>QLabel</name>
|
||||
<message>
|
||||
<location filename="../main.cpp" line="19"/>
|
||||
<location filename="../main.cpp" line="21"/>
|
||||
<source>Spark应用商店</source>
|
||||
<translation>Spark Store</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../main.cpp" line="20"/>
|
||||
<source>社区驱动的一款为第三方应用商店,为改变而生
|
||||
本程序按GPL第三版开源</source>
|
||||
<translation>A 3-rd party app store powered by deepin community
|
||||
Spark Store is published under GPL V3
|
||||
We born for change.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Widget</name>
|
||||
<message>
|
||||
|
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user