Do not print locale warning under cygwin, from Enrico

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14942 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2006-09-08 14:43:50 +00:00
parent fe8d08d72f
commit 31d4e8d00f

View File

@ -125,10 +125,10 @@ public:
#endif #endif
// setlocale fails (returns NULL) if the corresponding locale // setlocale fails (returns NULL) if the corresponding locale
// is not installed. // is not installed.
// On windows (mingw) it always returns NULL. // On windows (mingw and cygwin) it always returns NULL.
// Since this method gets called for every translatable // Since this method gets called for every translatable
// buffer string like e.g. "Figure:" we warn only once. // buffer string like e.g. "Figure:" we warn only once.
#ifndef _WIN32 #if !defined(_WIN32) && !defined(__CYGWIN__)
static bool warned = false; static bool warned = false;
if (!warned && !lc_msgs) { if (!warned && !lc_msgs) {
warned = true; warned = true;