Topic on Extension talk:Maps

Languages showing on wiki according to the user

10
Summary by Kghbln

It will be possible to explicitly set a language starting with version 3.5.0 of the Maps extension.

Stampstudy (talkcontribs)

We have noticed something new on the wiki. Previously all maps created on the wiki came out in english - they are now showing in the language of the user who created the map on the page.

If one of our users (from Bulgaria) creates a page all the place names are in Bulgarian. If I come along and edit the page and save then the map goes to English and so on.

How can I set it so that all maps will display in English ?

StampStudy

Kghbln (talkcontribs)

Never heard or seen something like this before. I case you did not upgrade MediaWiki or the Maps extension recently I would not even be surprised if the Google API started to control this behaviour. In this case the ability to specify a language will indeed be a reasonable feature to have. Does this also happen with openlayers or just with googlemaps? Which versions do you use?

Stampstudy (talkcontribs)

I have checked and I am using an outdated version of maps -- will try upgrade later today. Using Maps v2 and Mediawiki 1.24.

We are only using google maps and we haven't updated either maps or mediawiki for a while - we only started noticing it in the last few days.

Here is and example of a page that is in a different language. http://stampsoftheworld.co.uk/wiki/Bayard_%28US-FL%29

Kghbln (talkcontribs)

Well this confirms that Google itself must have changed something lately.

Upgrading will not help since I also was able to replicate this behaviour on a wiki running the latest software. Thus I filed a issue on GitHub to make aware of this.

Indeed the page now has either to be edited or purged to help the cause.

Kghbln (talkcontribs)

With the help of James Hong Kong I authored a pull request to address this issue. Now Jeroen De Dauw has to say ok to it.

Stampstudy (talkcontribs)

Thanks Kghbln,

I looked through the code and saw where maybe it should be set but my knowledge is limited. Maybe there will be a way to set the language in localsettings.

Kghbln (talkcontribs)

It is the following line that changed from wgLang to wgContLang. Dunno if this file was already present in Maps 2.0. This change takes the "$wgLanguageCode" setting which makes a lot of sense - at least to me.

Stampstudy (talkcontribs)

Checking the wiki today and all seems to be fixed - so google must have changed something back, I will monitor it.

Kghbln (talkcontribs)

In the upcoming 3.5 version of Maps there will be a new configuration parameter $egMapsGMaps3Language which will allow you to explicitly set a language to be used when rendering the maps.

Stampstudy (talkcontribs)

Great stuff, thank you for all your help.