#include <ETL/stringf>
#include "string.h"
#include "version.h"
#include <ETL/stringf>
#include "string.h"
#include "version.h"
-#include <locale.h>
-#include <libintl.h>
+#ifdef ENABLE_NLS
+ #include <locale.h>
+ #include <libintl.h>
+#endif
/* === M A C R O S ========================================================= */
/* === M A C R O S ========================================================= */
#define _(x) dgettext("synfig",x)
#define gettext_noop(x) x
#define N_(x) gettext_noop(x)
#define _(x) dgettext("synfig",x)
#define gettext_noop(x) x
#define N_(x) gettext_noop(x)
+#else
+#define dgettext(a,x) (x)
+#define _(x) (x)
+#define N_(x) (x)
+#endif
#define SYNFIG_COPYRIGHT "Copyright (c) 2001-2005 Robert B. Quattlebaum Jr., Adrian Bentley"
#define SYNFIG_COPYRIGHT "Copyright (c) 2001-2005 Robert B. Quattlebaum Jr., Adrian Bentley"
// Add initialization after this point
// Add initialization after this point
bindtextdomain("synfig", LOCALEDIR);
bindtextdomain("synfig", LOCALEDIR);
String prefix=basepath+"/..";
unsigned int i;
String prefix=basepath+"/..";
unsigned int i;
/* === M A C R O S ========================================================= */
/* === M A C R O S ========================================================= */
#undef _
#define _(x) gettext(x)
#undef _
#define _(x) gettext(x)
+#else
+#undef _
+#define _(x) (x)
+#endif
arg_list_t arg_list;
job_list_t job_list;
arg_list_t arg_list;
job_list_t job_list;
setlocale(LC_ALL, "");
bindtextdomain("synfig", LOCALEDIR);
textdomain("synfig");
setlocale(LC_ALL, "");
bindtextdomain("synfig", LOCALEDIR);
textdomain("synfig");
progname=argv[0];
Progress p(argv[0]);
progname=argv[0];
Progress p(argv[0]);