Fix translation issues and update location files

This commit is contained in:
Syping 2018-05-24 01:27:44 +02:00
parent eb505c7d8a
commit 65bc740b88
27 changed files with 532 additions and 58 deletions

View file

@ -16,7 +16,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <QDesktopServices>
#include <QStringBuilder>
#include <QMessageBox>
#include "AboutDialog.h"
#include "ui_AboutDialog.h"
#include "AppEnv.h"
@ -117,3 +119,16 @@ AboutDialog::~AboutDialog()
{
delete ui;
}
void AboutDialog::on_labAbout_linkActivated(const QString &link)
{
if (link.left(12) == "g5e://about?")
{
QStringList aboutStrList = QString(link).remove(0, 12).split(":");
QMessageBox::information(this, QString::fromUtf8(QByteArray::fromBase64(aboutStrList.at(0).toUtf8())), QString::fromUtf8(QByteArray::fromBase64(aboutStrList.at(1).toUtf8())));
}
else
{
QDesktopServices::openUrl(QUrl(link));
}
}