From 1b56d3ad520ff523a9c016ca986722ad6bb292ca Mon Sep 17 00:00:00 2001 From: RigoLigoRLC Date: Sun, 4 Oct 2020 00:13:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E8=B4=A1=E7=8C=AE=E7=BF=BB?= =?UTF-8?q?=E8=AF=91=E6=8C=89=E9=92=AE=E6=8F=90=E7=A4=BA=E6=A1=86=E4=B8=BA?= =?UTF-8?q?DDialog=EF=BC=8C=E5=B9=B6=E4=BF=AE=E5=A4=8D=E9=81=97=E7=95=99?= =?UTF-8?q?=E7=BF=BB=E8=AF=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans/spark-store_en.ts | 250 ++++++++++++++++++--------------- trans/spark-store_zh_CN.ts | 274 ++++++++++++++++++++++--------------- widget.cpp | 18 +-- 3 files changed, 320 insertions(+), 222 deletions(-) diff --git a/trans/spark-store_en.ts b/trans/spark-store_en.ts index 37174ff..97dbb11 100644 --- a/trans/spark-store_en.ts +++ b/trans/spark-store_en.ts @@ -76,11 +76,6 @@ Music - - - Coding - - Office @@ -97,86 +92,71 @@ - - FrontPage - - - - - Images - - - - + Games - - Chatting - - - - + Network - + Name - + ICON - - + + Install - + Uninstall - + Site - - + + <html><head/><body><p>This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology</p></body></html> - + <html><head/><body><p><img src=":/tags/community-small.png"/></p></body></html> - - + + <html><head/><body><p>Capable to Ubuntu 20.04</p></body></html> - + <html><head/><body><p><img src=":/tags/ubuntu-small.png"/></p></body></html> - + <html><head/><body><p><img src=":/tags/uos-small.png"/></p></body></html> - - + + <html><head/><body><p>Capable to deepin 20</p></body></html> @@ -186,156 +166,192 @@ - + Reload - + The list is currently empty. Go and download some softwares! - + Open download directory - + <html><head/><body><p><img src=":/tags/deepin-small.png"/></p></body></html> - - + + <html><head/><body><p>Capable to UOS home 20</p></body></html> - - + + <html><head/><body><p>This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment</p></body></html> - + <html><head/><body><p><img src=":/tags/dtk-small.png"/></p></body></html> - - + + <html><head/><body><p>A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.</p></body></html> - - wine - - - - - + + <html><head/><body><p>An Appimage to deb app.</p></body></html> - + <html><head/><body><p><img src=":/tags/a2d-small.png"/></p></body></html> - + Share - + + Development + + + + + Home + + + + + Graphics + + + + + Communication + + + + + + <html><head/><body><p>A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.</p></body></html> + + + + + <html><head/><body><p><img src=":/tags/dwine2-small.png"/></p></body></html> + + + + + <html><head/><body><p><img src=":/tags/dwine5-small.png"/></p></body></html> + + + + + Contribute translation + + + + Info - + <html><head/><body><p>An app store developed by community enthusiasts</p></body></html> - + Screenshots - + Line Settings - + Choose Line: - + Refresh - + Take effect when restart - + <html><head/><body><p>The role of the source server is to ensure that the software is updated, and supports the use of the apt tool to get the software. We usually prefer that you use the first line as the update source, which is generally the most stable. </p></body></html> - + Update - + Source Server - + Server - + Temp - + Clean - + Since the dictionary is at /tmp,It would be cleaned automatically when system reboot. - + Size: - + Location:/tmp/spark-store - + About us - + <html><head/><body><p>We are <span style=" font-weight:600;">NOT</span> the official team, just like you, we are just one of the many Linux/deepin system enthusiasts and users, we develop and run the &quot;Spark Store&quot;! &quot;, is to bring the community together to share useful software, or to participate in development together, so that we all use the latest and greatest software. </p><p>We don't make a profit from this, all developers and maintainers don't get paid, and we rely on the community's donations to us for most of our expenses, which we are grateful for and which allow us not to spend too much energy worrying about funding. </p><p>Our service and software are free for everyone to use, communicate, and learn, but you must comply with local laws and regulations in the process of your use, otherwise any problems have nothing to do with us. </p><p>If any part of the store infringes your rights, please tell us &lt;jifengshenmo@outlook.com&gt; we will remove the infringing content as soon as possible. </p><p>If you'd like to get involved with us too, whether you're involved in development, design, pitching or submitting work, we welcome you to join us. </p><p>QQ group:872690351<br/></p></body></html> @@ -345,42 +361,37 @@ - + about:blank - + <html><head/><body><p><br/></p></body></html> - - TextLabel - - - - + 0B 0B - + Spark Store - + Search or enter spk:// - + Submit App - + Settings @@ -396,93 +407,118 @@ - + Failed to download app info. Please check internet connection. - + PkgName: - + Version: - + Author: - + Official Site: - + Contributor: - + Update Time: - + Installed Size: - - + + Reinstall - + Failed to load application icon. - + Failed to get the name to the file to be downloaded. - + Spark store could only process spk:// links for now. The search feature is coming soon! - + Updating, please wait... - + Apt has reported an error. Please use apt update in terminal to locate the problem. - - Unknown server error! + + Unknown error! - + + Yes + + + + + No + + + + + Information for Contributors + + + + + Currently the translation contribution is limited to English, +and you will be redirected to our Gitee repository at which you are +supposed to be creating pull requests to contribute app info +translations. + +Click yes to continue. + + + + Uninstall succeeded - + Temporary cache was cleaned - + The URL has been copied to the clipboard diff --git a/trans/spark-store_zh_CN.ts b/trans/spark-store_zh_CN.ts index 85726fd..50d08bc 100644 --- a/trans/spark-store_zh_CN.ts +++ b/trans/spark-store_zh_CN.ts @@ -15,7 +15,7 @@ We publish this program under GPL V3 - 本程序按GPL V3开源 + 本程序按GPL V3开源 @@ -31,7 +31,7 @@ <span style=' font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>Spark developers</span> - <span style=' font-size:10pt;font-weight:60;'>deepin 社区驱动的一款第三方应用商店</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>Spark developers</span> + <span style=' font-size:10pt;font-weight:60;'>deepin 社区驱动的一款第三方应用商店</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>Spark developers</span> @@ -77,9 +77,8 @@ 音乐欣赏 - Coding - 编程开发 + 编程开发 @@ -97,225 +96,258 @@ 其他应用 - FrontPage - 商店首页 + 商店首页 - Images - 图形图像 + 图形图像 - + Games 游戏娱乐 - Chatting - 社交沟通 + 社交沟通 - + Network 网络应用 - + The list is currently empty. Go and download some softwares! 当前下载列表为空 - + Open download directory 打开下载文件夹 - + Name - + 软件名 - + ICON - - + + Install 安装 - + Uninstall 卸载 - + Site 官网 - - + + <html><head/><body><p>This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology</p></body></html> - <html><head/><body><p>这款应用是社区开发者开发的,我们为社区开发者颁发这款勋章以表彰他们对Linux生态的贡献</p></body></html> + <html><head/><body><p>这款应用是社区开发者开发的,我们为社区开发者颁发这款勋章以表彰他们对Linux生态的贡献</p></body></html> - + <html><head/><body><p><img src=":/tags/community-small.png"/></p></body></html> - - + + <html><head/><body><p>Capable to Ubuntu 20.04</p></body></html> <html><head/><body><p>支持Ubuntu 20.04</p></body></html> - - + + <html><head/><body><p>Capable to deepin 20</p></body></html> <html><head/><body><p>支持deepin 20</p></body></html> - + <html><head/><body><p><img src=":/tags/deepin-small.png"/></p></body></html> - - + + <html><head/><body><p>Capable to UOS home 20</p></body></html> <html><head/><body><p>支持UOS家庭版 20</p></body></html> - - + + <html><head/><body><p>This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment</p></body></html> <html><head/><body><p>这是一款DTK5应用,请使用深度桌面环境来获得最完美的体验</p></body></html> - + <html><head/><body><p><img src=":/tags/dtk-small.png"/></p></body></html> - - + + <html><head/><body><p>A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.</p></body></html> <html><head/><body><p>这是一款deepin-wine5应用,如果你并没有在使用深度系列发行版(比如您在使用ubuntu),你需要自行配置deepin-wine5环境</p></body></html> - - wine - - - - - + + <html><head/><body><p>An Appimage to deb app.</p></body></html> <html><head/><body><p>这是一款Appimage转制应用.</p></body></html> - + <html><head/><body><p><img src=":/tags/a2d-small.png"/></p></body></html> - + Share 分享 - + + Development + 编程开发 + + + + Home + 商店首页 + + + + Graphics + 图形图像 + + + + Communication + 社交沟通 + + + + + <html><head/><body><p>A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.</p></body></html> + <html><head/><body><p>这是一款deepin-wine5应用,如果你并没有在使用深度系列发行版(比如您在使用ubuntu),你需要自行配置deepin-wine5环境</p></body></html> {2 ?} {2 ?} + + + + <html><head/><body><p><img src=":/tags/dwine2-small.png"/></p></body></html> + + + + + <html><head/><body><p><img src=":/tags/dwine5-small.png"/></p></body></html> + + + + + Contribute translation + + + + Info 详细 - + <html><head/><body><p>An app store developed by community enthusiasts</p></body></html> <html><head/><body><p>社区爱好者开发的一款应用商店</p></body></html> - + Screenshots 屏幕截图 - + Line Settings 线路设置 - + Choose Line: 线路选择: - + Refresh 刷新 - + Take effect when restart 重启商店后生效 - + <html><head/><body><p>The role of the source server is to ensure that the software is updated, and supports the use of the apt tool to get the software. We usually prefer that you use the first line as the update source, which is generally the most stable. </p></body></html> <html><head/><body><p>源服务器的作用是保证软件更新,并且支持使用apt工具获取软件。通常我们更建议你使用第一个线路作为更新源,一般是最稳定的。</p></body></html> - + Update 更新源 - + Source Server 更新源服务器 - + Server - + Temp 缓存目录 - + Clean 清空 - + Since the dictionary is at /tmp,It would be cleaned automatically when system reboot. 因为这个目录位于/tmp下,所以即使你不手动清空的话,其也将在系统重启时自动清空。 - + Size: 目录大小: - + Location:/tmp/spark-store 目录位置:/tmp/spark-store - + About us 关于我们 - + <html><head/><body><p>We are <span style=" font-weight:600;">NOT</span> the official team, just like you, we are just one of the many Linux/deepin system enthusiasts and users, we develop and run the &quot;Spark Store&quot;! &quot;, is to bring the community together to share useful software, or to participate in development together, so that we all use the latest and greatest software. </p><p>We don't make a profit from this, all developers and maintainers don't get paid, and we rely on the community's donations to us for most of our expenses, which we are grateful for and which allow us not to spend too much energy worrying about funding. </p><p>Our service and software are free for everyone to use, communicate, and learn, but you must comply with local laws and regulations in the process of your use, otherwise any problems have nothing to do with us. </p><p>If any part of the store infringes your rights, please tell us &lt;jifengshenmo@outlook.com&gt; we will remove the infringing content as soon as possible. </p><p>If you'd like to get involved with us too, whether you're involved in development, design, pitching or submitting work, we welcome you to join us. </p><p>QQ group:872690351<br/></p></body></html> <html><head/><body><p>我们并<span style=" font-weight:600;">不是</span>官方团队,和你一样,我们也只是众多Linux/deepin系统爱好者和用户之中的一员,我们开发并且运营这个“Spark应用商店”,是为了让社区的朋友们一起分享好用的软件,或者一起参与开发,让大家都用到最新的,最优秀的软件。</p><p>我们并没有因此盈利,所有开发和维护人员都不会获得报酬,我们的主要支出大部分依赖于社区对我们的捐助,很感谢大家,这部分捐助让我们并不需要耗费太多精力去担心资金问题。</p><p>我们的服务和开发的软件都是免费供给大家使用,交流,学习的,但是在您的使用过程中一定要遵守当地的法律法规,否则出现任何问题和我们无关。</p><p>如果商店中任何一部分有侵犯您权益的行为,请告知我们 &lt;jifengshenmo@outlook.com&gt;,我们会第一时间删除侵权内容。</p><p>如果你也想参与我们,不管是参与开发,设计,投递还是投稿作品,我们都欢迎你的加入。</p><p>QQ 群:872690351<br/></p></body></html> @@ -330,57 +362,52 @@ 返回分类 - + Reload 刷新 - + about:blank - + <html><head/><body><p><br/></p></body></html> - + <html><head/><body><p><img src=":/tags/ubuntu-small.png"/></p></body></html> - + <html><head/><body><p><img src=":/tags/uos-small.png"/></p></body></html> - - TextLabel - - - - + 0B - + Spark Store Spark 应用商店 - + Search or enter spk:// 搜索或打开链接 - + Submit App 投递应用 - + Settings 设置 @@ -393,96 +420,129 @@ Spark\ Store - 星火应用商店 + 星火应用商店 - + Failed to download app info. Please check internet connection. 下载应用程序详细信息失败,请检查网络连接 - + PkgName: 包名: - + Version: 版本: - + Author: 作者: - + Official Site: 官网: - + Contributor: 投稿者: - + Update Time: 更新时间: - + Installed Size: 大小: - - + + Reinstall 重新安装 - + Failed to load application icon. 加载应用程序图标失败 - + Failed to get the name to the file to be downloaded. 获取安装包文件名失败 - + Spark store could only process spk:// links for now. The search feature is coming soon! - 目前仅支持商店专用链接的打开,搜索功能正在开发,请期待以后的版本! + 目前仅支持商店专用链接的打开,搜索功能正在开发,请期待以后的版本! - + Updating, please wait... 正在更新,请稍候…… - + Apt has reported an error. Please use apt update in terminal to locate the problem. 更新中发生错误,请在终端使用apt update来查看错误原因 - - Unknown server error! - 服务器未知错误 + + Unknown error! + 未知错误! - + + Yes + + + + + No + + + + + Information for Contributors + 贡献者须知 + + + + Currently the translation contribution is limited to English, +and you will be redirected to our Gitee repository at which you are +supposed to be creating pull requests to contribute app info +translations. + +Click yes to continue. + 目前商店仅支持应用程序英文详细信息的贡献。 +在你确认后你会被导向到我们的 Gitee 页面, +请在此创建 Pull Request 以进行翻译贡献。 + +单击“是”以继续。. + + + Unknown server error! + 服务器未知错误 + + + Uninstall succeeded 卸载成功 - + Temporary cache was cleaned 缓存目录已清空 - + The URL has been copied to the clipboard 链接已复制到剪贴板 @@ -507,7 +567,7 @@ Name - 软件名 + 软件名 @@ -527,22 +587,22 @@ Info - 详情 + 详情 dpkg - ssinstall + dpkg gdebi - + gdebi deepin deb installer - 深度软件包安装器 + 深度软件包安装器 diff --git a/widget.cpp b/widget.cpp index 24119b2..40bd7b1 100644 --- a/widget.cpp +++ b/widget.cpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include #include @@ -1019,13 +1019,15 @@ void Widget::on_webEngineView_loadFinished(bool arg1) void Widget::on_pushButton_translate_clicked() { - if(QMessageBox::information(nullptr, tr("Information for Contributors"), - tr("Currently the translation contribution is limited to English, " - "and you will be redirected to our Gitee repository at which you are " - "supposed to be creating pull requests to contribute app info " - "translations.\n\nClick yes to continue."), - QMessageBox::StandardButton::Yes | QMessageBox::StandardButton::No) - == QMessageBox::Yes) + DDialog tipDialog; + tipDialog.setWordWrapMessage(true); + tipDialog.addButtons({ tr("Yes"), tr("No") }); + tipDialog.setTitle(tr("Information for Contributors")); + tipDialog.setMessage(tr("Currently the translation contribution is limited to English,\n" + "and you will be redirected to our Gitee repository at which you are\n" + "supposed to be creating pull requests to contribute app info\n" + "translations.\n\nClick yes to continue.")); + if(!tipDialog.exec()) QDesktopServices::openUrl("https://gitee.com/deepin-community-store/json/tree/master/store/" + type_name + '/' + pkgName); }