mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
feat(i18n): make Markdown settings translatable
This commit is contained in:
parent
5cb271b0c0
commit
3e22593ae7
|
@ -92,9 +92,6 @@ static QStringList langs = {"Arabic",
|
||||||
"Türkçe",
|
"Türkçe",
|
||||||
"Українська",
|
"Українська",
|
||||||
"简体中文"};
|
"简体中文"};
|
||||||
static QStringList mdPrefs = {"Plaintext",
|
|
||||||
"Show Formatting Characters",
|
|
||||||
"Don't Show Formatting Characters"};
|
|
||||||
|
|
||||||
static QStringList timeFormats = {"hh:mm AP", "hh:mm", "hh:mm:ss AP", "hh:mm:ss"};
|
static QStringList timeFormats = {"hh:mm AP", "hh:mm", "hh:mm:ss AP", "hh:mm:ss"};
|
||||||
// http://doc.qt.io/qt-4.8/qdate.html#fromString
|
// http://doc.qt.io/qt-4.8/qdate.html#fromString
|
||||||
|
@ -116,8 +113,6 @@ GeneralForm::GeneralForm(SettingsWidget *myParent) :
|
||||||
bodyUI->transComboBox->insertItem(i, langs[i]);
|
bodyUI->transComboBox->insertItem(i, langs[i]);
|
||||||
|
|
||||||
bodyUI->transComboBox->setCurrentIndex(locales.indexOf(Settings::getInstance().getTranslation()));
|
bodyUI->transComboBox->setCurrentIndex(locales.indexOf(Settings::getInstance().getTranslation()));
|
||||||
for (int i = 0; i < mdPrefs.size(); i++)
|
|
||||||
bodyUI->markdownComboBox->insertItem(i, mdPrefs[i]);
|
|
||||||
|
|
||||||
bodyUI->markdownComboBox->setCurrentIndex(Settings::getInstance().getMarkdownPreference());
|
bodyUI->markdownComboBox->setCurrentIndex(Settings::getInstance().getMarkdownPreference());
|
||||||
bodyUI->cbAutorun->setChecked(Settings::getInstance().getAutorun());
|
bodyUI->cbAutorun->setChecked(Settings::getInstance().getAutorun());
|
||||||
|
|
|
@ -39,8 +39,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1277</width>
|
<width>1278</width>
|
||||||
<height>1272</height>
|
<height>1413</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_4" stretch="0,0,0,1">
|
<layout class="QVBoxLayout" name="verticalLayout_4" stretch="0,0,0,1">
|
||||||
|
@ -382,6 +382,21 @@ instead of closing itself.</string>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Select Markdown preference.</string>
|
<string>Select Markdown preference.</string>
|
||||||
</property>
|
</property>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Plaintext</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Show formatting characters</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Don't show formatting characters</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user