summaryrefslogtreecommitdiffstats
path: root/equipment.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-06 08:55:58 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-06 10:42:32 -0700
commit4d3e74a23676a33ffdc04a4a8b83c05f63b2693c (patch)
tree23cff2046459ab33f32499e71e7caeb5892dbcd6 /equipment.c
parent2c4ccc04bd384090917d7d17221012611426edb3 (diff)
downloadsubsurface-4d3e74a23676a33ffdc04a4a8b83c05f63b2693c.tar.gz
Trying to switch to Qt translation
This compiles and looks about right, but it doesn't appear to work, yet. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'equipment.c')
-rw-r--r--equipment.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/equipment.c b/equipment.c
index 4880b49fc..5485b2101 100644
--- a/equipment.c
+++ b/equipment.c
@@ -12,12 +12,8 @@
#include <stdlib.h>
#include <stdarg.h>
#include <time.h>
-#if 0
-#include <glib/gi18n.h>
-#else /* stupid */
-#define _(arg) arg
-#define N_(arg) arg
-#endif
+#include "gettext.h"
+#define QT_TR_NOOP(arg) arg
#include "dive.h"
#include "display.h"
#if USE_GTK_UI
@@ -933,11 +929,11 @@ bad_tank_info:
* This is a bit odd as the weight system types don't usually encode weight
*/
struct ws_info_t ws_info[100] = {
- { N_("integrated"), 0 },
- { N_("belt"), 0 },
- { N_("ankle"), 0 },
- { N_("backplate weight"), 0 },
- { N_("clip-on"), 0 },
+ { 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 },
};
#if USE_GTK_UI