Last modified: 2012-08-23 22:27:40 UTC
Belgium used to contain three campaigns, one each for: * Brussels * Flemish region * Wallonia Browsing the admin levels now, I only see Flemish & Wallonia -- no Brussels. Has it been merged with one of the others or is this an error?
This is actually correct behavior, assuming your uselang == en. If your uselang were nl, then you would see Brussels (http://wlm.wikimedia.org/api/api.php?action=adminlevels&admtree=be&format=json&uselang=nl). This is a quirk that affects countries with monuments available in multiple languages - one that was agreed with the WLM folks we'll need to live with for now - where if monuments for a give country are available in multiple languages, including your uselang, then we just display the monuments that are available in your uselang. If there are no monuments available in your uselang, then it falls back to the default language of that country. (Which in the case of Belgium, is French - which ironically will also make it so that Brussels is not displayed as Brussels only has monuments in Dutch). mysql> select distinct lang from monuments_all where adm0='be' and adm1='be-bru'; +------+ | lang | +------+ | nl | +------+ 1 row in set (0.01 sec) mysql> select distinct lang from monuments_all where adm0='be'; +------+ | lang | +------+ | nl | | en | | fr | +------+ 3 rows in set (0.38 sec)
Ugh! Oh well.
Yeah, suboptimal :( To fix this would require significant changes to the data structure - which probably ought to happen in the future anyway as it would resolve a lot of other problems/pain points in the API.