summaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-11 22:03:10 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-11 22:03:10 +0900
commitd4a3ecedb03d52886e63f76fca1f2aa4a7428d21 (patch)
tree8ede29377f0b49e99815eacfc5338b7c9496c5e8 /divelist.c
parentf5de37dbcfa549913c360c26491b8264457fa59a (diff)
downloadsubsurface-d4a3ecedb03d52886e63f76fca1f2aa4a7428d21.tar.gz
Get divelist headers localized, too
This fixes an oversight in commit 881a2df83616 ("Conversion to gettext to allow localization") - string literals that are marked with N_ need to be converted when the corresponding variables are used at runtime. This was missed for the divelist headers. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.c')
-rw-r--r--divelist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/divelist.c b/divelist.c
index baef39696..1ded3f9d2 100644
--- a/divelist.c
+++ b/divelist.c
@@ -1273,7 +1273,7 @@ static struct divelist_column {
static GtkTreeViewColumn *divelist_column(struct DiveList *dl, struct divelist_column *col)
{
int index = col - &dl_column[0];
- const char *title = col->header;
+ const char *title = _(col->header);
data_func_t data_func = col->data;
sort_func_t sort_func = col->sort;
unsigned int flags = col->flags;