1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

Fix non-I18N build

* Remove directly include of <libintl.h> and include src/wconfig.h, that
already include libintl.h and declare _() function
* Replace some gettext() calls to _()

These changes fixes build with LINGUAS is unset, and removes I18N
support in this case.
This commit is contained in:
Renato Botelho
2010-03-24 11:14:38 -03:00
committed by Carlos R. Mafra
parent 1f2b9999b9
commit 0f5c36a67e
2 changed files with 8 additions and 7 deletions

View File

@@ -32,7 +32,6 @@
#include <pwd.h>
#include <math.h>
#include <time.h>
#include <libintl.h>
#include <WINGs/WUtil.h>
#include <wraster.h>
@@ -561,13 +560,13 @@ getuserinput(WScreen *scr, char *line, int *ptr, Bool advanced)
if(advanced)
rv = wAdvancedInputDialog(scr,
title ? gettext(title):_("Program Arguments"),
prompt ? gettext(prompt):_("Enter command arguments:"),
title ? _(title):_("Program Arguments"),
prompt ? _(prompt):_("Enter command arguments:"),
name, &ret);
else
rv = wInputDialog(scr,
title ? gettext(title):_("Program Arguments"),
prompt ? gettext(prompt):_("Enter command arguments:"),
title ? _(title):_("Program Arguments"),
prompt ? _(prompt):_("Enter command arguments:"),
&ret);
if(title) wfree(title);