X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futil%2Fgettext.hpp;h=d67c93bc4743b22fb9b0050210346bb7f03e33cf;hb=b1b2c3c00fab1d4ac6af6e133b488b40e96ad877;hp=f4186953a2036cbe4a9a8a160e6817864f162f51;hpb=a8057c3d1726484928a3091fdd5c7a3d810f5f63;p=supertux.git diff --git a/src/util/gettext.hpp b/src/util/gettext.hpp index f4186953a..d67c93bc4 100644 --- a/src/util/gettext.hpp +++ b/src/util/gettext.hpp @@ -19,9 +19,12 @@ #include #include +#include #include "supertux/globals.hpp" +extern std::unique_ptr g_dictionary_manager; + /* * If you need to do a nontrivial substitution of values into a pattern, use * boost::format rather than an ad-hoc concatenation. That way, translators can @@ -43,9 +46,9 @@ static inline std::string _(const std::string& message) { - if (dictionary_manager) + if (g_dictionary_manager) { - return dictionary_manager->get_dictionary().translate(message); + return g_dictionary_manager->get_dictionary().translate(message); } else {