summaryrefslogtreecommitdiff
path: root/i18nlangtag
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-06 13:00:50 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-06 15:11:59 +0000
commitb37bce11cf59c6c9544e62e81f71a07e4d987a34 (patch)
tree855229c7d6e375846352dad3d06610700c7f337b /i18nlangtag
parenteb07ab05c3b8774ab2b2059befef0eadf61c97d6 (diff)
Resolves: rhbz#975421 wrong chart direction in Farsi
Where Farsi (and apparenly Moroccon) are RTL but have LTR math and charts should reportedly follow the math direction Change-Id: Ib60eaaaa90fe46ef240030a91169fdff3f736329
Diffstat (limited to 'i18nlangtag')
-rw-r--r--i18nlangtag/source/isolang/mslangid.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/i18nlangtag/source/isolang/mslangid.cxx b/i18nlangtag/source/isolang/mslangid.cxx
index e27e13bb6c24..6bb92bbeba0d 100644
--- a/i18nlangtag/source/isolang/mslangid.cxx
+++ b/i18nlangtag/source/isolang/mslangid.cxx
@@ -233,6 +233,15 @@ bool MsLangId::isRightToLeft( LanguageType nLang )
}
// static
+bool MsLangId::isRightToLeftMath( LanguageType nLang )
+{
+ //http://www.w3.org/TR/arabic-math/
+ if (nLang == LANGUAGE_FARSI || nLang == LANGUAGE_ARABIC_MOROCCO)
+ return false;
+ return isRightToLeft(nLang);
+}
+
+// static
bool MsLangId::isSimplifiedChinese( LanguageType nLang )
{
return isChinese(nLang) && !isTraditionalChinese(nLang);