1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-29 01:42:32 +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

@@ -4,8 +4,8 @@
#include <stdlib.h>
#include <string.h>
#include <locale.h>
#include <libintl.h>
#define _(text) gettext(text)
#include "../src/wconfig.h"
#include <WINGs/WUtil.h>
@@ -33,6 +33,7 @@ int main(int argc, char *argv[])
locale = getenv("LANG");
setlocale(LC_ALL, "");
#if HAVE_LIBINTL_H && I18N
if (getenv("NLSPATH"))
bindtextdomain("wmgenmenu", getenv("NLSPATH"));
else
@@ -40,6 +41,7 @@ int main(int argc, char *argv[])
bind_textdomain_codeset("wmgenmenu", "UTF-8");
textdomain("wmgenmenu");
#endif
printf("\(\"Window Maker\",\n");