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_MINOR) + "." +
|
||||||
QString::number(TOX_VERSION_PATCH);
|
QString::number(TOX_VERSION_PATCH);
|
||||||
|
|
||||||
bodyUI->youareusing->setText(bodyUI->youareusing->text().replace("$GIT_DESCRIBE", QString(GIT_DESCRIBE)));
|
bodyUI->youAreUsing->setText(tr("You are using qTox version %1.")
|
||||||
bodyUI->gitVersion->setText(bodyUI->gitVersion->text().replace("$GIT_VERSION", QString(GIT_VERSION)));
|
.arg(QString(GIT_DESCRIBE)));
|
||||||
bodyUI->toxCoreVersion->setText(bodyUI->toxCoreVersion->text().replace("$TOXCOREVERSION", TOXCORE_VERSION));
|
|
||||||
bodyUI->qtVersion->setText(bodyUI->qtVersion->text().replace("$QTVERSION", QT_VERSION_STR));
|
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(
|
QString issueBody = QString(
|
||||||
"##### Brief Description\n\n"
|
"##### Brief Description\n\n"
|
||||||
|
|
|
@ -30,8 +30,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>514</width>
|
<width>496</width>
|
||||||
<height>537</height>
|
<height>554</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="0,1,0,0">
|
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="0,1,0,0">
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>toxcore version: $TOXCOREVERSION</string>
|
<string notr="true">{TOXCOREVERSION}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="textInteractionFlags">
|
<property name="textInteractionFlags">
|
||||||
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
|
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
|
||||||
|
@ -85,7 +85,7 @@
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Qt version: $QTVERSION</string>
|
<string notr="true">{QTVERSION}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="textInteractionFlags">
|
<property name="textInteractionFlags">
|
||||||
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
|
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<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>
|
||||||
<property name="openExternalLinks">
|
<property name="openExternalLinks">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
|
@ -120,7 +120,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0" colspan="2">
|
<item row="0" column="0" colspan="2">
|
||||||
<widget class="QLabel" name="youareusing">
|
<widget class="QLabel" name="youAreUsing">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
@ -136,7 +136,7 @@
|
||||||
<enum>QFrame::NoFrame</enum>
|
<enum>QFrame::NoFrame</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>You are using qTox version $GIT_DESCRIBE.</string>
|
<string notr="true">{GIT_DESCRIBE}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="indent">
|
<property name="indent">
|
||||||
<number>-1</number>
|
<number>-1</number>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user