#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 ========================================================= */
+#ifdef ENABLE_NLS
#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"
// Add initialization after this point
+#ifdef ENABLE_NLS
bindtextdomain("synfig", LOCALEDIR);
+#endif
String prefix=basepath+"/..";
unsigned int i;
/* === M A C R O S ========================================================= */
+#ifdef ENABLE_NLS
#undef _
#define _(x) gettext(x)
+#else
+#undef _
+#define _(x) (x)
+#endif
enum exit_code
{
arg_list_t arg_list;
job_list_t job_list;
+#ifdef ENABLE_NLS
setlocale(LC_ALL, "");
bindtextdomain("synfig", LOCALEDIR);
textdomain("synfig");
+#endif
progname=argv[0];
Progress p(argv[0]);