完善翻译

This commit is contained in:
2024-04-27 12:25:04 +08:00
parent 1f8750596f
commit dcc7630440
4 changed files with 47 additions and 6 deletions

View File

@@ -1,11 +1,25 @@
#include "aboutwindow.h" #include "aboutwindow.h"
#include "ui_aboutwindow.h" #include "ui_aboutwindow.h"
#include <QDateTime>
AboutWindow::AboutWindow(QWidget *parent) : AboutWindow::AboutWindow(QWidget *parent) :
QMainWindow(parent), QMainWindow(parent),
ui(new Ui::AboutWindow) ui(new Ui::AboutWindow)
{ {
ui->setupUi(this); ui->setupUi(this);
QString info = "";
info += "<pre>";
info += tr("A kernel manager allows users to install or remove kernels easily.") + "\n\n";
info += "<b>" + tr("Warning: You may damage your system unless you know what you will do!") + "</b>\n";
info += "</pre>";
info += "<hr/>";
info += "<h3>" + tr("Website") + "</h3>";
info += "<p>Gitee: <a href='https://gitee.com/GXDE-OS/gxde-kernel-manager'>https://gitee.com/GXDE-OS/gxde-kernel-manager</a></p>";
info += "<p>Github: <a href='https://github.com/GXDE-OS/gxde-kernel-manager'>https://github.com/GXDE-OS/gxde-kernel-manager</a></p>";
info += "<hr/>\n";
info += "<h1>©2023" + QDateTime::currentDateTime().toString("yyyy") + " gfdgd xi</h1>\n";
ui->textBrowser->setHtml(info);
} }
AboutWindow::~AboutWindow() AboutWindow::~AboutWindow()

View File

@@ -32,7 +32,14 @@
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<widget class="QTextBrowser" name="textBrowser"/> <widget class="QTextBrowser" name="textBrowser">
<property name="openExternalLinks">
<bool>true</bool>
</property>
<property name="openLinks">
<bool>true</bool>
</property>
</widget>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_2">

5
debian/control vendored
View File

@@ -5,6 +5,11 @@ Maintainer: gfdgd_xi <3025613752@qq.com>
Rules-Requires-Root: no Rules-Requires-Root: no
Build-Depends: Build-Depends:
debhelper-compat (= 13), debhelper-compat (= 13),
qtbase5-dev,
qtbase5-dev-tools
qtbase5-private-dev,
libqtermwidget5-1-dev,
qttools5-dev-tools
Standards-Version: 4.6.2 Standards-Version: 4.6.2
Homepage: https://gitee.com/GXDE-OS/gxde-kernel-manager Homepage: https://gitee.com/GXDE-OS/gxde-kernel-manager
#Vcs-Browser: https://salsa.debian.org/debian/gxde-kernel-manager #Vcs-Browser: https://salsa.debian.org/debian/gxde-kernel-manager

View File

@@ -14,10 +14,25 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../aboutwindow.ui" line="55"/> <location filename="../aboutwindow.ui" line="62"/>
<source>OK</source> <source>OK</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<location filename="../aboutwindow.cpp" line="13"/>
<source>A kernel manager allows users to install or remove kernels easily.</source>
<translation>便</translation>
</message>
<message>
<location filename="../aboutwindow.cpp" line="14"/>
<source>Warning: You may damage your system unless you know what you will do!</source>
<translation></translation>
</message>
<message>
<location filename="../aboutwindow.cpp" line="17"/>
<source>Website</source>
<translation></translation>
</message>
</context> </context>
<context> <context>
<name>KernelInstaller</name> <name>KernelInstaller</name>
@@ -161,24 +176,24 @@
<context> <context>
<name>QObject</name> <name>QObject</name>
<message> <message>
<location filename="../main.cpp" line="16"/> <location filename="../main.cpp" line="23"/>
<source>Waring</source> <source>Waring</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../main.cpp" line="16"/> <location filename="../main.cpp" line="23"/>
<source>It is danger because it may make your system unboot. <source>It is danger because it may make your system unboot.
Press &apos;OK&apos; to countinue</source> Press &apos;OK&apos; to countinue</source>
<translation> <translation>
OK</translation> OK</translation>
</message> </message>
<message> <message>
<location filename="../main.cpp" line="23"/> <location filename="../main.cpp" line="30"/>
<source>Error</source> <source>Error</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../main.cpp" line="23"/> <location filename="../main.cpp" line="30"/>
<source>It unsupport Windows</source> <source>It unsupport Windows</source>
<translation> Windows</translation> <translation> Windows</translation>
</message> </message>