Don't "untranslate" cylinder names
As far as I can see there are no translation strings for the cylinder names, so there is no point in translating them back. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
0d011231e6
commit
f4b35f67f6
@ -1289,14 +1289,7 @@ EditCylinder::EditCylinder(int index, cylinder_t cylIn, EditCylinderType typeIn,
|
|||||||
else
|
else
|
||||||
setText(Command::Base::tr("Edit cylinder (%n dive(s))", "", dives.size()));
|
setText(Command::Base::tr("Edit cylinder (%n dive(s))", "", dives.size()));
|
||||||
|
|
||||||
// Try to untranslate the cylinder type
|
|
||||||
QString description = cylIn.type.description;
|
QString description = cylIn.type.description;
|
||||||
for (int i = 0; i < tank_info_table.nr; ++i) {
|
|
||||||
if (gettextFromC::tr(tank_info_table.infos[i].name) == description) {
|
|
||||||
description = tank_info_table.infos[i].name;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// The base class copied the cylinders for us, let's edit them
|
// The base class copied the cylinders for us, let's edit them
|
||||||
for (int i = 0; i < (int)indexes.size(); ++i) {
|
for (int i = 0; i < (int)indexes.size(); ++i) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user