You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the sandbox item's geolocation to somewhere near you (or use FakeGPS or scroll to its current location and press "Search in this area") and change its "instance of" to "embassy", remove its "image" if it has one.
Change your Android language to Hebrew (might work with other non-English languages)
Open the app, tap "Nearby"
Find the sandbox item
Tap the + and upload a picture for it.
The proposed description is in Upper Sorbian instead of Hebrew.
There are two problems with this:
If "embassy" had no label for Hebrew and the app had to fallback to Upper Sorbian, then the description's language selection dropdown UI should have "hsb" selected instead of "iw"
I think the cause of the problem is that the SPARQL request coalesces languages, and we have no way to know what language was used:
SAMPLE(COALESCE(?itemLabelPreferredLanguage, ?itemLabelAnyLanguage)) as ?label
As you can see, the label in language itemLabelPreferredLanguage is used if it exists, but if it does not exist, a label in any other language is used (randomly and we don't know which one).
Solution
When the user proceed with uploading a picture for that nearby item, we should run another request on that particular item only, that gets us all language-label pairs, and either take only the one we had displayed to the user, or even add all of them.
Steps to reproduce:
There are two problems with this:
The text was updated successfully, but these errors were encountered: