-// -*- C++ -*-
/* This file is part of
* ======================================================
*
#include <config.h>
-#ifdef ENABLE_NLS
-
#include "LString.h"
+#ifdef ENABLE_NLS
+
# if HAVE_GETTEXT
# include <libintl.h> // use the header already in the system *EK*
# ifdef HAVE_LOCALE_H
char * tmp = new char[s + 1];
str.copy(tmp, s);
tmp[s] = '\0';
- string ret(gettext(tmp));
+ string const ret(gettext(tmp));
delete [] tmp;
return ret;
- }
- else
+ } else {
return string();
+ }
}
void locale_init()