Skip to content

Commit

Permalink
templateselector: make some texts translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
octaeder committed Feb 14, 2024
1 parent 00f04ef commit e87ca7f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/templateselector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,8 @@ void TemplateSelector::showInfo(QTreeWidgetItem *currentItem, QTreeWidgetItem *p

pbOk->setEnabled(true);
ui.lbName->setText(orDefault(th.name(), tr("<No Name>")));
ui.lbDescription->setText(orDefault(th.description(), "<No Description>"));
ui.lbAuthor->setText(orDefault(th.author(), "<Unknown Author>"));
ui.lbDescription->setText(orDefault(th.description(), tr("<No Description>")));
ui.lbAuthor->setText(orDefault(th.author(), tr("<Unknown Author>")));
ui.lbDate->setText(tr("Date") + ": " + th.date().toString(Qt::ISODate));
ui.lbVersion->setText(tr("Version") + ": " + th.version());
ui.lbLicense->setText(tr("License") + ": " + th.license());
Expand Down Expand Up @@ -576,9 +576,9 @@ void TemplateSelector::editTemplate()
{
TemplateHandle th = selectedTemplate();
if (th.isMultifile()) {
UtilsUi::txsInformation("Editing of multi-file templates is not supported.\n"
UtilsUi::txsInformation(tr("Editing of multi-file templates is not supported.\n"
"Please open the template location and unzip the\n"
"template to edit individual files.");
"template to edit individual files."));
return;
}
if (!th.isEditable()) {
Expand Down

0 comments on commit e87ca7f

Please sign in to comment.