From: grumbel Date: Fri, 20 Nov 2009 00:32:54 +0000 (+0000) Subject: Removed "const char*" versions of tinygettext for now, as they where buggy X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d377c1aecc815ed6af644dca328eb737f40a3624;p=supertux.git Removed "const char*" versions of tinygettext for now, as they where buggy git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6061 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- diff --git a/src/supertux/main.cpp b/src/supertux/main.cpp index 57078c5a9..41e22ef7b 100644 --- a/src/supertux/main.cpp +++ b/src/supertux/main.cpp @@ -206,27 +206,27 @@ Main::init_physfs(const char* argv0) void Main::print_usage(const char* argv0) { - fprintf(stderr, _("Usage: %s [OPTIONS] [LEVELFILE]\n\n"), argv0); - fprintf(stderr, - _("Options:\n" - " -f, --fullscreen Run in fullscreen mode\n" - " -w, --window Run in window mode\n" - " -g, --geometry WIDTHxHEIGHT Run SuperTux in given resolution\n" - " -a, --aspect WIDTH:HEIGHT Run SuperTux with given aspect ratio\n" - " -d, --default Reset video settings to default values\n" - " --renderer RENDERER Use sdl, opengl, or auto to render\n" - " --disable-sfx Disable sound effects\n" - " --disable-music Disable music\n" - " -h, --help Show this help message and quit\n" - " -v, --version Show SuperTux version and quit\n" - " --console Enable ingame scripting console\n" - " --noconsole Disable ingame scripting console\n" - " --show-fps Display framerate in levels\n" - " --no-show-fps Do not display framerate in levels\n" - " --record-demo FILE LEVEL Record a demo to FILE\n" - " --play-demo FILE LEVEL Play a recorded demo\n" - " -s, --debug-scripts Enable script debugger.\n" - "%s\n"), ""); + std::cerr << _("Usage: ") << argv0 << _(" [OPTIONS] [LEVELFILE]\n\n") + << _("Options:\n" + " -f, --fullscreen Run in fullscreen mode\n" + " -w, --window Run in window mode\n" + " -g, --geometry WIDTHxHEIGHT Run SuperTux in given resolution\n" + " -a, --aspect WIDTH:HEIGHT Run SuperTux with given aspect ratio\n" + " -d, --default Reset video settings to default values\n" + " --renderer RENDERER Use sdl, opengl, or auto to render\n" + " --disable-sfx Disable sound effects\n" + " --disable-music Disable music\n" + " -h, --help Show this help message and quit\n" + " -v, --version Show SuperTux version and quit\n" + " --console Enable ingame scripting console\n" + " --noconsole Disable ingame scripting console\n" + " --show-fps Display framerate in levels\n" + " --no-show-fps Do not display framerate in levels\n" + " --record-demo FILE LEVEL Record a demo to FILE\n" + " --play-demo FILE LEVEL Play a recorded demo\n" + " -s, --debug-scripts Enable script debugger.\n" + "\n") + << std::flush; } /** diff --git a/src/util/gettext.hpp b/src/util/gettext.hpp index 4a84f243f..6fb96be0e 100644 --- a/src/util/gettext.hpp +++ b/src/util/gettext.hpp @@ -22,18 +22,6 @@ #include "supertux/globals.hpp" -static inline const char* _(const char* message) -{ - if (dictionary_manager) - { - return dictionary_manager->get_dictionary().translate(message); - } - else - { - return message; - } -} - static inline std::string _(const std::string& message) { if (dictionary_manager)