projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New static member ValueBase::type_local_name() to allow translation of type names.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
tool
/
main.cpp
diff --git
a/synfig-core/trunk/src/tool/main.cpp
b/synfig-core/trunk/src/tool/main.cpp
index
4f1618c
..
afda522
100644
(file)
--- a/
synfig-core/trunk/src/tool/main.cpp
+++ b/
synfig-core/trunk/src/tool/main.cpp
@@
-35,6
+35,7
@@
#include <list>
#include <ETL/clock>
#include <algorithm>
#include <list>
#include <ETL/clock>
#include <algorithm>
+#include <cstring>
#include <synfig/loadcanvas.h>
#include <synfig/savecanvas.h>
#include <synfig/loadcanvas.h>
#include <synfig/savecanvas.h>
@@
-57,8
+58,13
@@
using namespace synfig;
/* === M A C R O S ========================================================= */
/* === M A C R O S ========================================================= */
+#ifdef ENABLE_NLS
#undef _
#define _(x) gettext(x)
#undef _
#define _(x) gettext(x)
+#else
+#undef _
+#define _(x) (x)
+#endif
enum exit_code
{
enum exit_code
{
@@
-840,8
+846,11
@@
int main(int argc, char *argv[])
job_list_t job_list;
setlocale(LC_ALL, "");
job_list_t job_list;
setlocale(LC_ALL, "");
+
+#ifdef ENABLE_NLS
bindtextdomain("synfig", LOCALEDIR);
textdomain("synfig");
bindtextdomain("synfig", LOCALEDIR);
textdomain("synfig");
+#endif
progname=argv[0];
Progress p(argv[0]);
progname=argv[0];
Progress p(argv[0]);