Maps in other language?

My maps labels (OpenStreetMap) are in English instead of French.
May be because value of “locale” is ‘en’ ?

In Firefox inspector I have : grampsjs_settings {“lang”:“fr”,“serverLang”:“en”}

  • lang → user
  • serverLang → server (how to set it ?)

I deployed it with Docker.

Gramps 5.2.2
Gramps Web API 2.3.1
Gramps Web Frontend 24.7.0
Gramps QL 0.3.0
locale: en
multi-tree: false
task queue: true

The map tiles published by OpenStreetMap at tile.openstreetmap.org are monolingual - they are images after all so there is no way to change the names on the fly and we don’t have the resources to host hundreds of different tile sets for different languages.

That language is not English though, rather it is the “primary” name for each object (the value of the name tag, ignoring any localised names like name:en or name:fr) so you should see English names in English speaking countries and French names in French speaking countries.

We are working on moving to vector tiles which opens up the possibility of supporting localisation by using separate tile sets for for names but I can’t guarantee that will definitely happen or when exactly it might happen.

2 Likes

So, as Gramps Desktop display all names/labels in french from OpenStreetMap means that it doesn’t use map tiles from http://tile.openstreetmap.org/ ?

I’m not in front of a machine with a desktop client that I can try right now but I believe there is a selection of maps available there? In which case it will depend on which one you are using.

The easy way to tell is to look at the same area on https://www.openstreetmap.org/ and see if you see the same names, and the same map style.

Hi,

you can use any Leaflet compatible layer you like, see Frontend customization - Gramps Web

For instance, Gramps Web by default uses Carto Voyager (see gramps-web/src/components/GrampsjsMap.js at main · gramps-project/gramps-web · GitHub), while Grampshub uses HighRes tiles from MapTiler (which requires an API code, which is why we don’t set it as default).

Gramps Web v24.7 also introduced OpenHistoricalMap as a new layer, which uses vector tiles (high res!) and displays time-dependent place names in the local language:

FYI: the frontend language settings and serverLang don’t have any impact on map language.

1 Like

Thanks for answers !

So it not a bug nor a bad setting, only due to Carto Voyager. I’ll see later for Leaflet layer.
For instance my main priority is to learn more about “docker” and I’ll probably have to deploy a reverse proxy… but that’s another story :wink:

I tried OpenHistoricalMap looks really useful, but lot of town names are missing for me yet.

Thanks !