Fix RTL languages
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7345 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
69b27fe2db
commit
83e4bd054e
@ -98,7 +98,20 @@ Translations::Translations()
|
||||
|
||||
//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 char* isRtl = gettext(" Is this a RTL language?");
|
||||
m_rtl = (isRtl[0] == 'Y');
|
||||
const wchar_t* isRtlW = reinterpret_cast<const wchar_t*>(isRtl);
|
||||
|
||||
m_rtl = false;
|
||||
|
||||
for (int n=0; isRtlW[n] != 0; n++)
|
||||
{
|
||||
if (isRtlW[n] == 'Y')
|
||||
{
|
||||
m_rtl = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//m_rtl = (isRtl[0] == 'Y');
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user