Removed commented out code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8024 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -163,7 +163,6 @@ wchar_t* utf8_to_wide(const char* input)
|
||||
// ----------------------------------------------------------------------------
|
||||
Translations::Translations() //: m_dictionary_manager("UTF-16")
|
||||
{
|
||||
//#ifdef ENABLE_NLS
|
||||
|
||||
if (g_language_list.size() == 0)
|
||||
{
|
||||
@@ -277,8 +276,6 @@ Translations::Translations() //: m_dictionary_manager("UTF-16")
|
||||
break;
|
||||
}
|
||||
}
|
||||
//#endif
|
||||
|
||||
} // Translations
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -361,19 +358,10 @@ const wchar_t* Translations::w_gettext(const char* original)
|
||||
if (original[0] == '\0') return L"";
|
||||
|
||||
#if TRANSLATE_VERBOSE
|
||||
#if ENABLE_NLS
|
||||
std::cout << "Translating " << original << "\n";
|
||||
#else
|
||||
std::cout << "NOT Translating " << original << "\n";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//#if ENABLE_NLS
|
||||
const std::string& original_t = m_dictionary.translate(original);
|
||||
//#else
|
||||
// m_converted_string = core::stringw(original);
|
||||
// return m_converted_string.c_str();
|
||||
//#endif
|
||||
|
||||
/*
|
||||
std::cout << "--> original_t==original ? " << (original_t==original) << std::endl;
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
#include <string>
|
||||
#include "utils/string_utils.hpp"
|
||||
|
||||
//#if ENABLE_NLS
|
||||
# include "tinygettext/tinygettext.hpp"
|
||||
|
||||
# define _(String, ...) (translations->fribidize(StringUtils::insertValues(translations->w_gettext(String), ##__VA_ARGS__)))
|
||||
@@ -36,12 +35,6 @@
|
||||
# if defined(WIN32) && !defined(__CYGWIN__)
|
||||
# undef fprintf
|
||||
# endif
|
||||
//#else // No NLS
|
||||
//# define _(String, ...) (translations->w_gettext(String))
|
||||
//# define _LTR(String, ...) (translations->w_gettext(String))
|
||||
//# define gettext_noop(String) (String)
|
||||
//# define N_(String) (String)
|
||||
//#endif
|
||||
|
||||
class Translations
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user