Page MenuHomePhabricator

Use html tag "lang" property to fill in "language" parameter in citoid service
Closed, ResolvedPublic0 Estimated Story Points

Description

Random example: http://mno.hu/migr_1834/tellerlevel-cafolat-es-cafolat-700280 - the news article puts lang="hu" in its html tag, but the template needs to be filled out manually.

  • Add property to html-metadata
  • Update html-metadata version and lib/translator/general.js

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Mvolz renamed this task from Citoid should fill "language" parameter of citation templates to Use html tag "lang" property to fill in "language" parameter in citoid service.Oct 15 2016, 8:46 PM
Mvolz moved this task from Site specific issues to Service: Scraper & Validation on the Citoid board.

Citoid does do this, just .... inconsistently :). We currently use DC and OG metadata for language only and don't do anything with the html tag as of yet.

Mvolz triaged this task as Low priority.Oct 15 2016, 8:50 PM
Mvolz updated the task description. (Show Details)

(T141856 is for the wikidata citoid gadget, so another matter entirely.)

Mvolz updated the task description. (Show Details)

Change 331851 had a related patch set uploaded (by Mvolz):
Scrape language from html tag

https://gerrit.wikimedia.org/r/331851

Change 331851 merged by jenkins-bot:
Scrape language from html tag

https://gerrit.wikimedia.org/r/331851

mobrovac subscribed.

Deployed, resolving