deltachat / deltachat-android

Email-based instant messaging for Android.
GNU General Public License v3.0
1.1k stars 144 forks source link

Changing the language direction of Luri Bakhtiari #3213

Closed hosseinabaspanah closed 3 weeks ago

hosseinabaspanah commented 1 month ago

Hello, please set the language for Luri Bakhtiari like English from left to right, because I have translated this language in Luritian script...

r10s commented 1 month ago

i agree, it looks wrong having latin-like characters right-to-left.

because I have translated this language in Luritian script

this sounds like if there are several alphabets/scrips possible?

i am wondering if the used code bqi is the correct one for "Luritian script" still? https://en.wikipedia.org/wiki/Luri_language says the script for bqi is "arabic", which is "right to left".

because, as far as i know, "right to left", "left to right" and other settings are not really supposed to be under control of the app but are defined in the used locale. there is not really code in the app where we say "this language is right to left".

can you point us to another (open source) app that uses bqi in a similar way so we can peek at what they're doing?

hosseinabaspanah commented 1 month ago

@r10s Yes, there is an Arabic script for this language normally, but translation is allowed for this language and other Luri languages ​​with a special script for Luri, which is taken from Latin, and its name is Luritin...

If you want to check a program to see the status of this language and the source code of the program, look at the link below...

https://github.com/TeamAmaze/AmazeFileManager

Except for one case in which they mistakenly attributed the Luxembourg region to Luri Bakhtiari's language in this program, there is no problem with the display and arrangement from left to right for Luri Bakhtiari's language...

r10s commented 1 month ago

thanks for the pointer, then it is what i meant, the language code is wrong. my assumptions:

i will do a PR that changes the language code for android. you should be able to download a testing file from there and can give feedback if it fixes the issue

r10s commented 1 month ago

i created a PR that uses - the wrong, but same as Amaze - bqi-rLU code.

you can try that out by setting Delta Chat's language to "Default" - and then select "Luri Bakhtiari" in the global system settings.

selecting the language that way in Delta Chat, does not work (and would probably also not work for Amaze if there would be such an option) as it would set the locale to "Luri Bakhtiari" using region "Luxembourg" which seems to be just wrong and the latter is ignored, resulting in only setting "Luri Bakhtiari" which again is right-to-left.

otherwise, i am a bit lost here - "Luri Bakhtiari" exists in transifex in the following variations:

Screenshot 2024-08-12 at 14 46 41

@hosseinabaspanah is anyone of that known to use latin script?

for the locale, we are using setLocale() that takes the ISO_639, 2 or 3 characters and ISO 3166, 2 characters - but it is unclear to me how that makes to "Luri Bakhtiari, latin script". as far as i understand the documentation, there is no way to force a script.

do you have another example of an app using "Luri Bakhtiari, latin script" - Amaze seems not to be a good example any may work just coincidentally using "Luxemburg" ...

hosseinabaspanah commented 1 month ago

yes that's right...

It seems that Amaze was able to use the Latin script for this language through this region...

Unfortunately, I have not encountered this problem during all these years of translation...

I know another program in which Luri Bakhtiari's language is displayed well and I have translated it... but unfortunately the text is not open and its name is Lucky Patcher...

Regarding the language of Luri Bakhtiari in Transifex, I have to say that I don't think there is any difference between them, because I had requested the use of RTL functionality for both languages, i.e. Luri Bakhtiari and Luri Bakhtiari of Iran, and it has been applied a long time ago...

r10s commented 4 weeks ago

@hosseinabaspanah if possible, can you re-check the question from above:

there is the idea to get rid of the language selection inside Delta Chat, then there will be at least less confusion - if the steps above work, this is one more reason. otherwise, there is no actionable item left for this issue, as we cannot reproduce or do things to improve.

adbenitez commented 3 weeks ago

I think the real problem here is that the translation for Luri Bakhtiari is wrong then, it should not be Latin but the original Arabic translation, from what I understood the Latin-characters translation would be like translating Japanese to romanji it would be better to have the real thing that most natives use in their daily live, not some academia or variant for (potentially tourist) learners :thinking:

r10s commented 3 weeks ago

but translation is allowed for this language and other Luri languages ​​with a special script for Luri, which is taken from Latin, and its name is Luritin

@hosseinabaspanah can you provide some sources about that? a wikipedia entry, an iso code, a page, or something? otherwise, the next user may regard using the wrong script for bqi as an error.

closing this now, as there is no actionable item.

once we have more detailed information, we can iterate.

hosseinabaspanah commented 3 weeks ago

This case can only be solved through the translation with calligraphy based on Arabic...

Anyway, I apologize for opening and discussing this problem...