X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgettext.C;h=925e433363d50ab80972a4c4c70d3f5df129db64;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=aae9bc7f5c12b91b6e989775e99fda66c2b7484b;hpb=baa6723a406e2c8b44e1bb815839beba3290ba9c;p=lyx.git diff --git a/src/gettext.C b/src/gettext.C index aae9bc7f5c..925e433363 100644 --- a/src/gettext.C +++ b/src/gettext.C @@ -15,17 +15,21 @@ #include "messages.h" #include "support/environment.h" + +namespace lyx { + #ifdef HAVE_LOCALE_H # include #endif +using support::setEnv; + using std::string; -using lyx::support::setEnv; namespace { -Messages & getLyXMessages() +static Messages & getLyXMessages() { static Messages lyx_messages; @@ -35,7 +39,7 @@ Messages & getLyXMessages() } // anon namespace -string const _(string const & str) +docstring const _(string const & str) { return getLyXMessages().get(str); } @@ -62,3 +66,6 @@ void locale_init() } #endif + + +} // namespace lyx