From d4a3ecedb03d52886e63f76fca1f2aa4a7428d21 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 11 Oct 2012 22:03:10 +0900 Subject: [PATCH] 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 --- divelist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;