]> git.lyx.org Git - lyx.git/blobdiff - src/gettext.C
Fix working of the spellchecker dialog with ispell when there are no
[lyx.git] / src / gettext.C
index 22a135152b6ef812f96d5752db6878aa8463b801..77b1a672755bca096a9f6e2d725c9d8474288418 100644 (file)
@@ -1,4 +1,3 @@
-// -*- 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
@@ -43,12 +42,12 @@ string const _(string const & str)
                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()