Last modified: 2012-08-23 22:27:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T41593, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39593 - WLM: Brussels missing from Belgium
WLM: Brussels missing from Belgium
Status: RESOLVED INVALID
Product: WikiLoves Monuments Mobile
Classification: Unclassified
Browse (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-23 21:36 UTC by Brion Vibber
Modified: 2012-08-23 22:27 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Brion Vibber 2012-08-23 21:36:21 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?
Comment 1 Arthur Richards 2012-08-23 22:10:13 UTC
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)
Comment 2 Brion Vibber 2012-08-23 22:18:04 UTC
Ugh! Oh well.
Comment 3 Arthur Richards 2012-08-23 22:27:40 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links