diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-10-09 22:48:35 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-09 22:51:59 -0700 |
commit | 193d20c479d597db307ac5e206b74b26c2f97ba9 (patch) | |
tree | b9f55e5acbacb4d397edb022cf8a37ef4654efbf /equipment.c | |
parent | 2d69d4a5ef5f2d3e777d77380732c333151fe949 (diff) | |
download | subsurface-193d20c479d597db307ac5e206b74b26c2f97ba9.tar.gz |
Next step towards working translations
This may seem like a really odd change - but with this change the Qt tools
can correctly parse the C files (and qt-gui.cpp) and get the context for
the translatable strings right.
It's not super-pretty (I'll admit that _("string literal") is much easier
on the eye than translate("gettextFromC", "string literal") ) but I think
this will be the price of success.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'equipment.c')
-rw-r--r-- | equipment.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/equipment.c b/equipment.c index 8d113ed2b..240e92681 100644 --- a/equipment.c +++ b/equipment.c @@ -158,11 +158,11 @@ struct tank_info_t tank_info[100] = { * This is a bit odd as the weight system types don't usually encode weight */ struct ws_info_t ws_info[100] = { - { QT_TR_NOOP("integrated"), 0 }, - { QT_TR_NOOP("belt"), 0 }, - { QT_TR_NOOP("ankle"), 0 }, - { QT_TR_NOOP("backplate weight"), 0 }, - { QT_TR_NOOP("clip-on"), 0 }, + { QT_TRANSLATE_NOOP("gettextFromC","integrated"), 0 }, + { QT_TRANSLATE_NOOP("gettextFromC","belt"), 0 }, + { QT_TRANSLATE_NOOP("gettextFromC","ankle"), 0 }, + { QT_TRANSLATE_NOOP("gettextFromC","backplate weight"), 0 }, + { QT_TRANSLATE_NOOP("gettextFromC","clip-on"), 0 }, }; void remove_cylinder(struct dive *dive, int idx) |