X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=synfig-core%2Ftrunk%2Fsrc%2Ftool%2Fmain.cpp;h=04bf9053d8e23b807e52eb5e69ce178988d3f615;hb=d0393f158eb7b8c3b79e41edd681b4397abd153c;hp=4f1618ca94ffa50e1fcdaa721c08920590ef8b3d;hpb=9268bf3c8225b1efd2978599d9964f135da4426b;p=synfig.git diff --git a/synfig-core/trunk/src/tool/main.cpp b/synfig-core/trunk/src/tool/main.cpp index 4f1618c..04bf905 100644 --- a/synfig-core/trunk/src/tool/main.cpp +++ b/synfig-core/trunk/src/tool/main.cpp @@ -35,6 +35,7 @@ #include #include #include +#include #include #include @@ -57,8 +58,13 @@ using namespace synfig; /* === M A C R O S ========================================================= */ +#ifdef ENABLE_NLS #undef _ #define _(x) gettext(x) +#else +#undef _ +#define _(x) (x) +#endif enum exit_code { @@ -839,9 +845,11 @@ int main(int argc, char *argv[]) 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]);