From 443d75c0ac92d3db809b8c1ed55df3977e64961c Mon Sep 17 00:00:00 2001 From: 3djc Date: Wed, 29 Mar 2017 21:10:29 +0200 Subject: [PATCH] Make default category translatable (with dev warning) (#4712) --- companion/src/mdichild.cpp | 3 ++- companion/src/modeledit/modeledit.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/companion/src/mdichild.cpp b/companion/src/mdichild.cpp index 8b8eb00f1..b64492a20 100644 --- a/companion/src/mdichild.cpp +++ b/companion/src/mdichild.cpp @@ -415,7 +415,8 @@ void MdiChild::generalEdit() 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); setModified(); emit copyAvailable(false); // workaround : nothing is selected after model creation diff --git a/companion/src/modeledit/modeledit.cpp b/companion/src/modeledit/modeledit.cpp index 8edae5a27..4e2791211 100644 --- a/companion/src/modeledit/modeledit.cpp +++ b/companion/src/modeledit/modeledit.cpp @@ -114,7 +114,8 @@ void ModelEdit::launchSimulation() { RadioData * simuData = new RadioData(); 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); if (simuData->models.size() == 0) { simuData->models.push_back(model);