X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgettext.h;h=0624d8be83ef5379ad9824fda22f73f3c9c3f24b;hb=f99d41a25a326865183879853b97ed3265499042;hp=a53042c1006e2d21765b4c34bd93ef758ab170a1;hpb=44cd0fc9a1687cc63911c7f98d978594458e7813;p=lyx.git diff --git a/src/gettext.h b/src/gettext.h index a53042c100..0624d8be83 100644 --- a/src/gettext.h +++ b/src/gettext.h @@ -1,6 +1,6 @@ // -*- C++ -*- /** - * \file gettext.h + * \file src/gettext.h * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * @@ -13,7 +13,10 @@ #ifndef GETTEXT_H #define GETTEXT_H -#include +#include "support/docstring.h" + + +namespace lyx { /* * Native Language Support @@ -47,7 +50,7 @@ //#ifdef ENABLE_NLS /// -std::string const _(std::string const &); +docstring const _(std::string const &); //#else // ENABLE_NLS @@ -58,7 +61,17 @@ std::string 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