hrydgard / ppsspp-lang

DEPRECATED / ARCHIVED - merged into the main PPSSPP repository. Make further changes there.

Home Page:https://github.com/hrydgard/ppsspp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PC and Android versions don't match (Farsi/Arabic)

Leopard20 opened this issue · comments

commented

I know this isn't really PPSSPP's fault, but the Android version translations are messed up. It looks fine on PC:
PC:
image

Android:
screenshot_2018-05-16-22-02-06-614_org ppsspp ppsspp

I think it's because Android doesn't have a proper RTL implementation.

I was hoping you could provide some tips for fixing it.

commented

Weird, Arabic looks fine:
screenshot_2018-05-16-22-24-01-639_org ppsspp ppsspp

Maybe the difference you see is related to the font used by each system?

commented

Maybe, but the Arabic font kinda looks the same as the Farsi one. So shouldn't they both be bugged?

On both Windows and Android, we just tell the system to "draw this text on this bitmap please" and hope for the best. It's possible that there's a different way we should do it, or some flag to set or something.. Or Android support for Farsi on that particular version of Android or something might just be broken? Have you tried on other devices?

commented

No, but I'll test it later.
I just found it weird that it worked on Windows but not on Android. I wish I could build the app my own so I could try changing a few things to figure out what the problem is
Do you think if I replace the lang file in the apk package directly it'll work?

Another strange thing is everything looks good in the Graphics submenu, but not in others.

Could be some nonstandard use of RTL markers in the ini? or failure of PPSSPP to load them correctly from there..

commented

Actually your word "nonstandard" gave me an idea as to what the problem may be.
Basically Windows supports two types of Farsi keyboards: One is called Farsi (abbreviated as FA) and another Farsi Standard (FAS). I probably have accidentally switched between the two during translation and it may have caused an issue. Don't know which one is the one that worked though! I'll have to try both to find out.

It seems to mostly have a problem when non rtl glyphs are in a string? Or an I mistaken?

-[Unknown]

commented

To state it more accurately, it happens when non RTL words are in the middle. If I put them at the end then there's no problem.
Maybe I was wrong about keyboards, and Arabic too:
screenshot_2018-05-17-16-22-26-158_org ppsspp ppsspp

@Leopard20 , is this the expected result ?
screenshot_1541765431

index bf0db1b..7586381 100644
--- a/ar_AE.ini
+++ b/ar_AE.ini
@@ -866,7 +866,7 @@ PSP-2000/3000 = PSP-2000/3000
 Record Audio = تسجيل الصوت
 Record Display = سجل الفيديو
 Reset Recording on Save/Load State = Reset recording on Save/Load state
-Restore Default Settings = إلي الإفتراضي PPSSPP's إعادة إعدادات
+Restore Default Settings = <U+200E>إلي الإفتراضي PPSSPP's إعادة إعدادات
 Rewind Snapshot Frequency = ترجيع تردد اللقطة (يأكل الذاكرة)
 Save path in installed.txt = installed.txt مسار الحفظ في
 Save path in My Documents = مسار الحفظ في مستنداتي
commented

@Florin9doi Yep! That worked! I'll update the rest when I have the time. Or if you want go ahead and complete it yourself!

Thanks!