#else
# define _(String) (String)
# define N_(String) (String)
-# define gettext(String) (String)
#endif
/*****************************************************************************
if (desc == NULL)
desc = "?";
- if (fprintf (file, "# %s (%s)\n%s%s=", desc, gettext (type),
+ if (fprintf (file, "# %s (%s)\n%s%s=", desc, _(type),
comment ? "#" : "", name) < 0)
return -1;
const char *text = va_arg (ap, const char *);
const char *longtext = va_arg (ap, const char *);
- item->psz_text = text ? strdup (gettext (text)) : NULL;
- item->psz_longtext = longtext ? strdup (gettext (text)) : NULL;
+ item->psz_text = text ? strdup ( _(text)) : NULL;
+ item->psz_longtext = longtext ? strdup ( _(text)) : NULL;
ret = 0;
break;
}
if (text != NULL)
{
for (size_t i = 0; i < len; i++)
- dtext[i] = text[i] ? strdup (gettext (text[i])) : NULL;
+ dtext[i] = text[i] ? strdup ( _(text[i])) : NULL;
dtext[len] = NULL;
item->ppsz_list_text = dtext;
item->ppsz_action_text = tabtext;
if (name)
- tabtext[item->i_action] = strdup (gettext (name));
+ tabtext[item->i_action] = strdup ( _(name));
else
tabtext[item->i_action] = NULL;
tabtext[item->i_action + 1] = NULL;