summaryrefslogtreecommitdiffstats
path: root/commands/command_edit_trip.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-21 16:46:36 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-22 12:02:48 -0700
commita109a283672e8e57c1dd85eb681e71a32d4c97bf (patch)
treef7f3fc5a9f2d65e7e02f76a83d34a901aba511b4 /commands/command_edit_trip.cpp
parente6cbb28a9fbac6b58b60d1715e86948869e62607 (diff)
downloadsubsurface-a109a283672e8e57c1dd85eb681e71a32d4c97bf.tar.gz
translations: qualify tr function to get correct context
The way inheritance is implemented for the undo commands confuses the Qt translation tooling - with the result that the context assumed by the tools used to extract the strings doesn't match the context calculated at runtime - so all the translations for the strings in undo commands fail (including creating proper numerus forms). This change forces a consistant context tag, at the price of creating a significant delta for the source strings (the strings themselves stay the same, but the context for a lot of them changes). I am hoping that Transifex is smart enough to automagically add the correct translations for these, but I guess I won't know until I try. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'commands/command_edit_trip.cpp')
-rw-r--r--commands/command_edit_trip.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/command_edit_trip.cpp b/commands/command_edit_trip.cpp
index c0f512907..f6d7251ea 100644
--- a/commands/command_edit_trip.cpp
+++ b/commands/command_edit_trip.cpp
@@ -15,7 +15,7 @@ EditTripBase::EditTripBase(dive_trip *tripIn, const QString &newValue) : trip(tr
// Therefore, setting of the title is done here.
bool EditTripBase::workToBeDone()
{
- setText(tr("Edit %1").arg(fieldName()));
+ setText(Command::Base::tr("Edit %1").arg(fieldName()));
return data(trip) != value;
}
@@ -50,7 +50,7 @@ QString EditTripLocation::data(dive_trip *t) const
QString EditTripLocation::fieldName() const
{
- return tr("trip location");
+ return Command::Base::tr("trip location");
}
TripField EditTripLocation::fieldId() const
@@ -72,7 +72,7 @@ QString EditTripNotes::data(dive_trip *t) const
QString EditTripNotes::fieldName() const
{
- return tr("trip notes");
+ return Command::Base::tr("trip notes");
}
TripField EditTripNotes::fieldId() const