mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor(about): Removed HTML tags from translation
This commit is contained in:
parent
fde9ad5356
commit
2d63e441d4
|
@ -77,10 +77,15 @@ void AboutForm::replaceVersions()
|
|||
QString::number(TOX_VERSION_MINOR) + "." +
|
||||
QString::number(TOX_VERSION_PATCH);
|
||||
|
||||
bodyUI->youareusing->setText(bodyUI->youareusing->text().replace("$GIT_DESCRIBE", QString(GIT_DESCRIBE)));
|
||||
bodyUI->gitVersion->setText(bodyUI->gitVersion->text().replace("$GIT_VERSION", QString(GIT_VERSION)));
|
||||
bodyUI->toxCoreVersion->setText(bodyUI->toxCoreVersion->text().replace("$TOXCOREVERSION", TOXCORE_VERSION));
|
||||
bodyUI->qtVersion->setText(bodyUI->qtVersion->text().replace("$QTVERSION", QT_VERSION_STR));
|
||||
bodyUI->youAreUsing->setText(tr("You are using qTox version %1.")
|
||||
.arg(QString(GIT_DESCRIBE)));
|
||||
|
||||
QString commitLink = "https://github.com/qTox/qTox/commit/" + QString(GIT_VERSION);
|
||||
bodyUI->gitVersion->setText(tr("Commit hash: %1")
|
||||
.arg(createLink(commitLink, QString(GIT_VERSION))));
|
||||
|
||||
bodyUI->toxCoreVersion->setText(tr("toxcore version: %1").arg(TOXCORE_VERSION));
|
||||
bodyUI->qtVersion->setText(tr("Qt version: %1").arg(QT_VERSION_STR));
|
||||
|
||||
QString issueBody = QString(
|
||||
"##### Brief Description\n\n"
|
||||
|
|
|
@ -30,8 +30,8 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>514</width>
|
||||
<height>537</height>
|
||||
<width>496</width>
|
||||
<height>554</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="0,1,0,0">
|
||||
|
@ -70,7 +70,7 @@
|
|||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>toxcore version: $TOXCOREVERSION</string>
|
||||
<string notr="true">{TOXCOREVERSION}</string>
|
||||
</property>
|
||||
<property name="textInteractionFlags">
|
||||
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
|
||||
|
@ -85,7 +85,7 @@
|
|||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Qt version: $QTVERSION</string>
|
||||
<string notr="true">{QTVERSION}</string>
|
||||
</property>
|
||||
<property name="textInteractionFlags">
|
||||
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
|
||||
|
@ -109,7 +109,7 @@
|
|||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Commit hash: <a href="https://github.com/qTox/qTox/commit/$GIT_VERSION">$GIT_VERSION</a></string>
|
||||
<string notr="true">{GIT_VERSION}</string>
|
||||
</property>
|
||||
<property name="openExternalLinks">
|
||||
<bool>true</bool>
|
||||
|
@ -120,7 +120,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0" colspan="2">
|
||||
<widget class="QLabel" name="youareusing">
|
||||
<widget class="QLabel" name="youAreUsing">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -136,7 +136,7 @@
|
|||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>You are using qTox version $GIT_DESCRIBE.</string>
|
||||
<string notr="true">{GIT_DESCRIBE}</string>
|
||||
</property>
|
||||
<property name="indent">
|
||||
<number>-1</number>
|
||||
|
|
Loading…
Reference in New Issue
Block a user