1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-14 11:59:50 +03:00

Make default category translatable (with dev warning) (#4712)

This commit is contained in:
3djc 2017-03-29 21:10:29 +02:00 committed by Max Paperno
parent 3eb39ddac2
commit 443d75c0ac
2 changed files with 4 additions and 2 deletions

View file

@ -415,7 +415,8 @@ void MdiChild::generalEdit()
void MdiChild::categoryAdd() void MdiChild::categoryAdd()
{ {
CategoryData category("New category"); /*: Translators do NOT use accent for this, this is the default category name on Horus. */
CategoryData category(qPrintable(tr("New category")));
radioData.categories.push_back(category); radioData.categories.push_back(category);
setModified(); setModified();
emit copyAvailable(false); // workaround : nothing is selected after model creation emit copyAvailable(false); // workaround : nothing is selected after model creation

View file

@ -114,7 +114,8 @@ void ModelEdit::launchSimulation()
{ {
RadioData * simuData = new RadioData(); RadioData * simuData = new RadioData();
simuData->generalSettings = generalSettings; simuData->generalSettings = generalSettings;
CategoryData category("Models"); /*: Translators do NOT use accent for this, this is the default category name on Horus. */
CategoryData category(qPrintable(tr("Models")));
simuData->categories.push_back(category); simuData->categories.push_back(category);
if (simuData->models.size() == 0) { if (simuData->models.size() == 0) {
simuData->models.push_back(model); simuData->models.push_back(model);