return m == MEASURE_NOMINAL || m == MEASURE_ORDINAL || m == MEASURE_SCALE;
}
-/* Returns a string version of measurement level M, for display to a user. */
+/* Returns a string version of measurement level M, for display to a user.
+ The caller may translate the string by passing it to gettext(). */
const char *
measure_to_string (enum measure m)
{
assert (m == measure[m].value);
- return gettext (measure[m].label);
+ return measure[m].label;
}
/* Returns a string version of measurement level M, for use in PSPP command
}
}
-/* Returns a string version of ROLE, for display to a user. */
+/* Returns a string version of ROLE, for display to a user.
+ The caller may translate the string by passing it to gettext(). */
const char *
var_role_to_string (enum var_role r)
{
assert (r == role[r].value);
- return gettext (role[r].label);
+ return role[r].label;
}
/* Returns a string version of ROLE, for use in PSPP comamnd syntax. */
return a == ALIGN_LEFT || a == ALIGN_RIGHT || a == ALIGN_CENTRE;
}
-/* Returns a string version of alignment A, for display to a user. */
+/* Returns a string version of alignment A, for display to a user.
+ The caller may translate the string by passing it to gettext(). */
const char *
alignment_to_string (enum alignment a)
{
assert (a == align[a].value);
- return gettext (align[a].label);
+ return align[a].label;
}
/* Returns a string version of alignment A, for use in PSPP command syntax. */
}
if (flags & DF_MEASUREMENT_LEVEL)
tab_text (t, x++, y, TAB_LEFT,
- measure_to_string (var_get_measure (v)));
+ gettext (measure_to_string (var_get_measure (v))));
if (flags & DF_ROLE)
tab_text (t, x++, y, TAB_LEFT,
- var_role_to_string (var_get_role (v)));
+ gettext (var_role_to_string (var_get_role (v))));
if (flags & DF_WIDTH)
{
char s[INT_BUFSIZE_BOUND (int)];
}
if (flags & DF_ALIGNMENT)
tab_text (t, x++, y, TAB_LEFT,
- alignment_to_string (var_get_alignment (v)));
+ gettext (alignment_to_string (var_get_alignment (v))));
if (flags & DF_PRINT_FORMAT)
{
const struct fmt_spec *print = var_get_print_format (v);