Location EN vs FR
It's strange, I did a test like this on the "Location" field of the profile.
Oupeye, Wallonia, Belgium. If I am in english correctly displays the city, the region, the country but if i go in french the city is no longer visible. It only indicates Wallonia, Belgium. Why?
-
- · Baloo
- ·
Up: It's not that in the profile field, in fact it's everywhere. In the limit, I would have the reverse ....
-
-
·
Alex T⚜️
- ·
Could you please describe how can we reproduce the problem ?
Also you have two identical images attached, I don't see differences.
-
·
Alex T⚜️
-
- · Baloo
-
·
In reply to Alex T⚜️
- ·
Sure enough, sorry for the illustrations. I start again. In French, for example, I fill in the profile localization field, type the city and the API automatically proposes me, city + region + country. I save you.
But the city then disappears from the profile, it remains only region + countries (see fr.png)
I realized that if I just switch to the English language, the display is then correct, city + region + country. (See en.png).
If I switch back to French, the city is no longer displayed, only region + country.
You understand? -
- · UNA Inc
- ·
It maybe that geodata is different for different languages.
I've tried to reproduce this issue with English and Russian and it works fine for me.
-
- · Baloo
-
·
In reply to UNA Inc
- ·
Maybe but for good info are stored in bx_persons_meta_locations, for my example I have the information, so why does not it display it in French?
Does it make a location request with each profile view? It will not search the info in the database? -
-
·
Alex T⚜️
- ·
It tries to store the location in the current language.
Upon each profile view it takes information from the database and displays it. If block with map is also displayed then request to google servers is also performed.
-
·
Alex T⚜️
-
- · Baloo
-
·
In reply to Alex T⚜️
- ·
Okay Alex. So if the problem was because the API works differently depending on the language, then the saved result in the table would not be the same whether I was in French or English at the time I saved. In that case I would have understood.
But that is not the case. Whether I am in French or English at the time I save, the recording is the same. City + Region + Country.
The problem is only at the display and if I understand what you are telling me, when viewing the field, unlike the map, it takes the stored information.
It seems that when I am in French he "forgets" to recover the city which is nevertheless present in the table. So it's surprising why? -
-
·
Alex T⚜️
- ·
Could you please provide link to the page with problem to see the it ?
-
·
Alex T⚜️
-
-
-
·
Alex T⚜️
- ·
I would suggest to check '_sys_location_country_city' language key translation for French language, it's maybe incorrect, city part maybe missing there.
-
·
Alex T⚜️
-
- · Baloo
-
·
In reply to Alex T⚜️
- ·
Well seen Alex, you're right, the problem came from there. Thank you for your help.