]> git.lyx.org Git - lyx.git/blobdiff - src/gettext.h
Fix breakage caused by bad commits.
[lyx.git] / src / gettext.h
index ebd358a739535c0e7af6b69a36b54a242f80db9d..eaddb3253afee452a0599b106a639baa75807664 100644 (file)
@@ -1,6 +1,21 @@
 // -*- C++ -*-
-#ifndef _GETTEXT_H_
-#define _GETTEXT_H_
+/**
+ * \file src/gettext.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ * \author Jean-Marc Lasgouttes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
+#ifndef GETTEXT_H
+#define GETTEXT_H
+
+#include "support/docstring.h"
+
+#include <string>
 
 /*
  * Native Language Support
  *   Panic/fatal (that should not happen) messages need not be translated
  */
 
-#ifdef ENABLE_NLS
 
-#include "LString.h"
+//#ifdef ENABLE_NLS
 
 ///
-char const * _(char const *);
-///
-string const _(string const &);
-///
-void locale_init();
-///
-void gettext_init(string const & localedir);
+lyx::docstring const _(std::string const &);
+
+//#else // ENABLE_NLS
 
-#else
-///
-#  define _(str) (str)
-///
-#  define S_(str) (str)
-///
-#  define locale_init()
 ///
-#  define gettext_init(package, localedir)
+//#  define _(str) (str)
 
-#endif
+//#endif
 
 #  define N_(str) (str)              // for detecting static strings
 
+///
+void locale_init();
+
 #endif