Last modified: 2012-09-05 00:09:29 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 T41897, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39897 - Adm1 is missing for Slovakia
Adm1 is missing for Slovakia
Status: RESOLVED FIXED
Product: Wiki Loves Monuments
Classification: Unclassified
Sources (Other open bugs)
unspecified
All All
: Low normal
: ---
Assigned To: Nobody - You can work on this!
http://wlm.wikimedia.org/api/api.php?...
:
Depends on:
Blocks: 39882
  Show dependency treegraph
 
Reported: 2012-09-01 13:26 UTC by Maarten Dammers
Modified: 2012-09-05 00:09 UTC (History)
3 users (show)

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


Attachments

Comment 1 Maarten Dammers 2012-09-01 16:39:58 UTC
Hmm, looks like the information is in the database:

mysql> SELECT adm1, COUNT(adm1) FROM monuments_all WHERE lang='de' and country='sk' AND adm0='sk' GROUP BY adm1;
+-------+-------------+
| adm1  | COUNT(adm1) |
+-------+-------------+
| sk-bc |        2461 |
| sk-bl |        1709 |
| sk-ki |        1971 |
| sk-ni |        1150 |
| sk-pv |        3757 |
| sk-ta |        1026 |
| sk-tc |         941 |
| sk-zi |        1583 |
+-------+-------------+
8 rows in set (1.04 sec)

Not sure why the adminlevels are not showing this. Arthur, can you take a look at this?
Comment 2 Tomasz W. Kozlowski 2012-09-03 20:58:58 UTC
In any case, this is a low importance bug; Slovakia is not taking part in WLM2012.
Comment 3 Arthur Richards 2012-09-04 21:38:56 UTC
Max can probably better answer this, but I think this is happening because the default language for Slovakia has a typo in the API:

class ApiCountries extends ApiBase {
	public static $defaultLanguages = array(
		'be' => 'fr',
		'ch' => 'de',
		'es' => 'es',
		'fr' => 'fr',
		'sk' => 'sv',
		'it' => 'it',
	);

I believe 'sv' should be 'sk'.
Comment 4 Max Semenik 2012-09-05 00:09:29 UTC
r965

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


Navigation
Links