Merge pull request #298 from Scrumplex/fix-i18n

Fix translatable strings
This commit is contained in:
Sefa Eyeoglu
2022-03-21 14:21:06 +01:00
committed by GitHub
27 changed files with 39 additions and 39 deletions

View File

@ -62,7 +62,7 @@ ModrinthPage::ModrinthPage(ModDownloadDialog *dialog, BaseInstance *instance)
ui->versionSelectionBox->view()->parentWidget()->setMaximumHeight(300);
// index is used to set the sorting with the modrinth api
ui->sortByBox->addItem(tr("Sort by Relevence"));
ui->sortByBox->addItem(tr("Sort by Relevance"));
ui->sortByBox->addItem(tr("Sort by Downloads"));
ui->sortByBox->addItem(tr("Sort by Follows"));
ui->sortByBox->addItem(tr("Sort by last updated"));
@ -178,7 +178,7 @@ void ModrinthPage::onSelectionChanged(QModelIndex first, QModelIndex second) {
ui->versionSelectionBox->addItem(version.version, QVariant(i));
}
if (ui->versionSelectionBox->count() == 0) {
ui->versionSelectionBox->addItem(tr("No Valid Version found !"),
ui->versionSelectionBox->addItem(tr("No valid version found."),
QVariant(-1));
}
@ -198,7 +198,7 @@ void ModrinthPage::onSelectionChanged(QModelIndex first, QModelIndex second) {
QVariant(i));
}
if (ui->versionSelectionBox->count() == 0) {
ui->versionSelectionBox->addItem(tr("No Valid Version found !"),
ui->versionSelectionBox->addItem(tr("No valid version found."),
QVariant(-1));
}

View File

@ -62,7 +62,7 @@ public:
virtual ~ModrinthPage();
virtual QString displayName() const override
{
return tr("Modrinth");
return "Modrinth";
}
virtual QIcon icon() const override
{

View File

@ -51,7 +51,7 @@
<item row="0" column="0">
<widget class="QLineEdit" name="searchEdit">
<property name="placeholderText">
<string>Search and filter ...</string>
<string>Search and filter...</string>
</property>
</widget>
</item>