]> git.lyx.org Git - lyx.git/blobdiff - src/gettext.h
* src/LyXRC.{cpp,h}:
[lyx.git] / src / gettext.h
index eaddb3253afee452a0599b106a639baa75807664..597a3a1abda6a8510282f153226df0a01bdaf8c5 100644 (file)
 #ifndef GETTEXT_H
 #define GETTEXT_H
 
-#include "support/docstring.h"
+#include "support/strfwd.h"
 
-#include <string>
+
+namespace lyx {
 
 /*
  * Native Language Support
@@ -49,7 +50,7 @@
 //#ifdef ENABLE_NLS
 
 ///
-lyx::docstring const _(std::string const &);
+docstring const _(std::string const &);
 
 //#else // ENABLE_NLS
 
@@ -60,7 +61,17 @@ lyx::docstring const _(std::string const &);
 
 #  define N_(str) (str)              // for detecting static strings
 
+/**
+ * Translate \p name if it is possible.
+ * This should be used to translate strings that come from configuration
+ * files like .ui files. These strings could already be in the native
+ * language if they come from a file in the personal directory. */
+docstring const translateIfPossible(docstring const & name);
+
 ///
 void locale_init();
 
+
+} // namespace lyx
+
 #endif