-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Layout issues in RTL languages #2575
Comments
A possible fix for 1 and 2 points is adding the RLM char in the Hebrew translation |
Does issue 1 and 2 occur if the app name is localized? In Xcode you can select the InfoPlist file for the Sparkle Test App, and enable Hebrew localization in the File Inspector. Then add Maybe we should add a RLM char anyway, assuming it won't cause any issue when a developer localizes the app name? |
I assume even if the app name was localized, adding RLM chars would not be an issue though. |
Yes, the RLM character is an RTL distinct unicode character that causes the "neutral" field to identify the content as RTL content (since it determines text orientation by first character), but it is transparent and causes no display side effect. However, keep in mind that I'm not a MacOS developer so there may be better ways. |
Okay, looks good.
Yes, a RLM character is the way to do it:
|
As for how to force the table view to be left-to-right, I'm not currently sure how to do this. Setting the userInterfaceLayoutDirection on the table view to be left-to-right seems to have no effect. This table view is showing data that will be transmitted anonymously to the update server. So it makes sense it is not localized. |
Do you think the table columns should be reversed still? Or should they be in the same order as running the app in English. (I can re-order the columns programmatically but haven't found a property to switch the order automatically) Should the scrollview still be on the left? (I don't currently know how to change this). Should the text alignment for the columns change to be more left-aligned? I assume yes, for this question, at least. (There is a property on the table view to Never Mirror for this) |
Actually I think we will localize this table where it makes sense, at least for the keys. Since they are "display" fields and aren't exactly what's sent. There will be some things that are English though. |
I made it possible to localize these keys and values where it makes sense. Check 94440a4 as a starting point (on |
Summary
Please note that some of the problems will only be presented after the completion of the Hebrew translation (in #2573)
Some languages, such as Hebrew and Arabic, are written from right to left (RTL). Mixed sentences are written from right to left, with terms embedded in their original form, for example:
אני משתמש ב-Github כל יום
Github הוא כלי חשוב
However, when there is a block of text that is entirely in English, it should be spread from left to right.
See also Apple's guide: https://developer.apple.com/design/human-interface-guidelines/right-to-left
I found a few things that don't match in Sparkle:
Version
The Sparkle Test App
The text was updated successfully, but these errors were encountered: