From e5829c26f9d34d9857deaec9c8b0dd730bed8204 Mon Sep 17 00:00:00 2001 From: auria Date: Wed, 16 Mar 2011 15:20:08 +0000 Subject: [PATCH] Fixed RTL with tinygettext git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/tinygettext@7944 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/utils/translation.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/utils/translation.cpp b/src/utils/translation.cpp index 7bda4ab17..5b2546218 100644 --- a/src/utils/translation.cpp +++ b/src/utils/translation.cpp @@ -266,19 +266,17 @@ Translations::Translations() //: m_dictionary_manager("UTF-16") //I18N: Do NOT literally translate this string!! Please enter Y as the translation if your language is a RTL (right-to-left) language, N (or nothing) otherwise const std::string isRtl = m_dictionary.translate(" Is this a RTL language?"); - const wchar_t* isRtlW = reinterpret_cast(isRtl.c_str()); m_rtl = false; - for (int n=0; isRtlW[n] != 0; n++) + for (unsigned int n=0; n < isRtl.size() != 0; n++) { - if (isRtlW[n] == 'Y') + if (isRtl[n] == 'Y') { m_rtl = true; break; } } - #endif } // Translations