streetcomplete / StreetComplete

Easy to use OpenStreetMap editor for Android
https://streetcomplete.app
GNU General Public License v3.0
3.9k stars 355 forks source link

Flat range interface may result in weird input with RTL languages #4412

Closed matkoniecz closed 1 year ago

matkoniecz commented 2 years ago

https://poeditor.com/projects/po_edit?id=97843&term=381790295&id_language=3#showComments381790295

For right to left scripts which use right to left numbers and ranges, this should probably just be an ellipsis or similar to avoid confusion, so it shows 1 … 2 instead of 1 نوں‎ 2 which look kind of like 2 to 1. (As the video below shows, the numbers are input boxes, not part of the actual text, so no bi-directional control characters necessary thankfully.)

I suspect that problem may be deeper with people entering lower number where higher will go. In two weeks I will be able to talk with friend who has experience with Hebrew/Arabic and verify the problem and discuss what would be the best solution. I guess that switching position of boxes would work? But then special separate string value may be needed or resetting what was translated already in RTL languages if they used this kind of hack.

westnordost commented 2 years ago

ping

westnordost commented 1 year ago

No reply, closing.

westnordost commented 1 year ago

On RTL languages, the view_entrance_flat_range.xml actually looks like this, because the LinearLayout reverses its orientation on RTL languages:

image