projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Woops, remove the testing en_AU from ALL_LINGUAS
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
main.cpp
diff --git
a/synfig-core/trunk/src/synfig/main.cpp
b/synfig-core/trunk/src/synfig/main.cpp
index
a911a48
..
da9cd31
100644
(file)
--- a/
synfig-core/trunk/src/synfig/main.cpp
+++ b/
synfig-core/trunk/src/synfig/main.cpp
@@
-219,6
+219,7
@@
synfig::Main::Main(const synfig::String& basepath,ProgressCallback *cb):
// Add initialization after this point
// Add initialization after this point
+ bindtextdomain("synfig", LOCALEDIR);
CHECK_EXPIRE_TIME();
CHECK_EXPIRE_TIME();
@@
-389,6
+390,19
@@
synfig::Main::~Main()
#endif
}
#endif
}
+static const String
+current_time()
+{
+ const int buflen = 50;
+ time_t t;
+ struct tm *lt;
+ char b[buflen];
+ time(&t);
+ lt = localtime(&t);
+ strftime(b, buflen, " [%X] ", lt);
+ return String(b);
+}
+
void
synfig::error(const char *format,...)
{
void
synfig::error(const char *format,...)
{
@@
-401,7
+415,7
@@
void
synfig::error(const String &str)
{
static Mutex mutex; Mutex::Lock lock(mutex);
synfig::error(const String &str)
{
static Mutex mutex; Mutex::Lock lock(mutex);
- cerr<<"synfig("<<getpid()<<")
: "
<<_("error")<<": "+str<<endl;
+ cerr<<"synfig("<<getpid()<<")
"<<current_time()
<<_("error")<<": "+str<<endl;
}
void
}
void
@@
-416,7
+430,7
@@
void
synfig::warning(const String &str)
{
static Mutex mutex; Mutex::Lock lock(mutex);
synfig::warning(const String &str)
{
static Mutex mutex; Mutex::Lock lock(mutex);
- cerr<<"synfig("<<getpid()<<")
: "
<<_("warning")<<": "+str<<endl;
+ cerr<<"synfig("<<getpid()<<")
"<<current_time()
<<_("warning")<<": "+str<<endl;
}
void
}
void
@@
-431,5
+445,5
@@
void
synfig::info(const String &str)
{
static Mutex mutex; Mutex::Lock lock(mutex);
synfig::info(const String &str)
{
static Mutex mutex; Mutex::Lock lock(mutex);
- cerr<<"synfig("<<getpid()<<")
: "
<<_("info")<<": "+str<<endl;
+ cerr<<"synfig("<<getpid()<<")
"<<current_time()
<<_("info")<<": "+str<<endl;
}
}