Page MenuHomePhabricator

meta=babel query API gives incorrect proficiency information
Closed, ResolvedPublic

Description

https://meta.wikimedia.org/w/api.php?action=query&format=xml&meta=babel&babuser=Base
gives

<?xml version="1.0"?>
<api batchcomplete="">
  <query>
    <babel en="N" ru="N" uk="N" />
  </query>
</api>

It should be

<?xml version="1.0"?>
<api batchcomplete="">
  <query>
    <babel en="2" ru="4" uk="N" />
  </query>
</api>

As per https://meta.wikimedia.org/w/index.php?title=User:Base&oldid=16389590

Event Timeline

For ukwiki https://uk.wikipedia.org/w/api.php?action=query&format=xml&meta=babel&babuser=Base gives

<api batchcomplete=""><query><babel be="0" en="2" pl="0" ru="4" uk="N"/></query></api>

which is correct

On the other hand for ruwiki https://ru.wikipedia.org/w/api.php?action=query&format=xml&meta=babel&babuser=Base gives

<api batchcomplete=""><query><babel en="2" la="2" ru="4" uk="N"/></query></api>

while it should be

<api batchcomplete=""><query><babel en="2" ru="4" uk="N"/></query></api>

There is template https://ru.wikipedia.org/wiki/Ш:User_lat-2 on the page adding category https://ru.wikipedia.org/wiki/К:User_Lat-2 but it is about Latin alphabet, not Latin language.

This is because meta-wiki is still relying on the categories to extract data and not the database. I'll hopefully have time to make the necesary config changes next week to fix this.

Legoktm claimed this task.

This was fixed a while back.