From: John Darrington Date: Thu, 19 Aug 2010 14:54:45 +0000 (+0200) Subject: Fix translation of column header. X-Git-Tag: v0.7.6~284 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f2af815f203766612c0baceed18e972ea9507e0;p=pspp-builds.git Fix translation of column header. The "var" column header in the data view was not getting translated, due to lack of a call to gettext. Thanks to Mindaugas embar@super.lt for reporting this. --- diff --git a/src/ui/gui/psppire-data-store.c b/src/ui/gui/psppire-data-store.c index 9833fb49..9a59638f 100644 --- a/src/ui/gui/psppire-data-store.c +++ b/src/ui/gui/psppire-data-store.c @@ -793,7 +793,7 @@ get_column_button_label (const PsppireSheetModel *model, gint col) PsppireDataStore *ds = PSPPIRE_DATA_STORE (model); if ( col >= psppire_dict_get_var_cnt (ds->dict) ) - return g_locale_to_utf8 (null_var_name, -1, 0, 0, 0); + return xstrdup (gettext (null_var_name)); pv = psppire_dict_get_variable (ds->dict, col);