/* PSPPIRE - a graphical user interface for PSPP.
- Copyright (C) 2006, 2009, 2010 Free Software Foundation
+ Copyright (C) 2006, 2009, 2010, 2011 Free Software Foundation
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
psppire_var_store_init (PsppireVarStore *var_store)
{
if ( ! gdk_color_parse (DISABLED_COLOR, &var_store->disabled))
- g_critical ("Could not parse color \"%s\"", DISABLED_COLOR);
+ g_critical ("Could not parse color `%s'", DISABLED_COLOR);
var_store->dictionary = NULL;
var_store->format_type = PSPPIRE_VAR_STORE_OUTPUT_FORMATS;
switch (col)
{
case PSPPIRE_VAR_STORE_COL_LABEL:
- var_set_label (pv, NULL);
+ var_clear_label (pv);
return TRUE;
break;
}
break;
case PSPPIRE_VAR_STORE_COL_LABEL:
{
- var_set_label (pv, text);
+ var_set_label (pv, text, true);
return TRUE;
}
break;
default:
{
char str[FMT_STRING_LEN_MAX + 1];
- g_warning ("Unknown format: \"%s\"\n",
+ g_warning ("Unknown format: `%s'\n",
fmt_to_string (write_spec, str));
}
break;
{
gchar *const vstr = value_to_text (vl->value, dict, *write_spec);
- return g_strdup_printf ( "{%s,\"%s\"}_", vstr, val_lab_get_label (vl));
+ return g_strdup_printf (_("{%s,`%s'}_"), vstr,
+ val_lab_get_escaped_label (vl));
}
}
}