X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Ftool%2Fmain.cpp;h=afda5228f739a68ed310ae1f7fa7f859412f539d;hb=69ee4621b51e714c0962d54b6e679d9c175e56fa;hp=8141c0095f37739cc839d65636fc2b1d1e7e2a80;hpb=563c0b4883cce4c1a73a496b0fa585e9daa8ff80;p=synfig.git diff --git a/synfig-core/trunk/src/tool/main.cpp b/synfig-core/trunk/src/tool/main.cpp index 8141c00..afda522 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,6 +58,14 @@ 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 { SYNFIGTOOL_OK = 0, @@ -836,6 +845,13 @@ int main(int argc, char *argv[]) arg_list_t arg_list; job_list_t job_list; + setlocale(LC_ALL, ""); + +#ifdef ENABLE_NLS + bindtextdomain("synfig", LOCALEDIR); + textdomain("synfig"); +#endif + progname=argv[0]; Progress p(argv[0]); @@ -958,7 +974,8 @@ int main(int argc, char *argv[]) if(target_name.empty() && !job_list.front().outfilename.empty()) { VERBOSE_OUT(3)<<_("Target name undefined, attempting to figure it out")<