mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 01:07:22 +00:00
COMMON: Support Farsi at convertBiDiString(input, lang, dir)
This commit is contained in:
parent
dce92c8e41
commit
9eef2c954d
@ -132,10 +132,13 @@ String convertBiDiStringByLines(const String &input, const Common::CodePage page
|
||||
}
|
||||
|
||||
String convertBiDiString(const String &input, const Common::Language lang, BiDiParagraph dir) {
|
||||
if (lang != Common::HE_ISR) //TODO: modify when we'll support other RTL languages, such as Arabic and Farsi
|
||||
if (lang == Common::HE_ISR) {
|
||||
return Common::convertBiDiString(input, kWindows1255, dir);
|
||||
} else if (lang == Common::FA_IRN) {
|
||||
return Common::convertBiDiString(input, kWindows1256, dir);
|
||||
} else {
|
||||
return input;
|
||||
|
||||
return Common::convertBiDiString(input, kWindows1255, dir);
|
||||
}
|
||||
}
|
||||
|
||||
String convertBiDiString(const String &input, const Common::CodePage page, BiDiParagraph dir) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user