OpenSwitchMaps icon indicating copy to clipboard operation
OpenSwitchMaps copied to clipboard

add GeoHack with local map/lang support

Open tankaru opened this issue 3 years ago • 4 comments

(1) With lang and region: https://geohack.toolforge.org/geohack.php?language=de&params=48.137222222222_N_11.575555555556_E_region:DE

(2) Lang only: https://geohack.toolforge.org/geohack.php?language=de&params=48.137222222222_N_11.575555555556_E

I think (1) is friendly.

tankaru avatar Jan 05 '23 23:01 tankaru

https://github.com/tankaru/OpenSwitchMaps/issues/76#issuecomment-1372253301

tankaru avatar Jan 05 '23 23:01 tankaru

Region is not obtained from browser. I use option (2).

tankaru avatar Jan 06 '23 00:01 tankaru

Hi, I get language=de-DE instead of language=de with the current plugin version 1.5.0. Unfortunately, Geohack does ignore the de-DE value, it only understands de. Furthermore, adding region:de significantly improves the result, as mainly german maps are displayed then. Would it be possible to just use the language as region?

fxedel avatar Jul 19 '23 13:07 fxedel

Hi, I get language=de-DE instead of language=de with the current plugin version 1.5.0. Unfortunately, Geohack does ignore the de-DE value, it only understands de.

I have asked for this to be fixed, at https://www.mediawiki.org/wiki/Talk:GeoHack#Language_fallback

Furthermore, adding region:de significantly improves the result, as mainly german maps are displayed then. Would it be possible to just use the language as region?

Language is not region; consider Spanish in Mexico or Portuguese in Brazil

pigsonthewing avatar Jul 19 '23 14:07 pigsonthewing