Page MenuHomePhabricator

Translate "User type" data returned from MaxMind
Closed, ResolvedPublic2 Estimated Story Points

Description

IPInfo displays data from MaxMind about an IP address. Currently "User type" data is displayed as returned from MaxMind. We should instead display a message translation, depending on the type returned.

Possible types are:

  • business
  • cafe
  • cellular
  • college
  • consumer_privacy_network
  • content_delivery_network
  • dialup
  • government
  • hosting
  • library
  • military
  • residential
  • router
  • school
  • search_engine_spider
  • traveler

Reference: https://github.com/maxmind/GeoIP2-php/blob/a3048d0d43d1a587169e64618282bc1f94d5acb1/src/Record/Traits.php#L93
An example of where it was useful to clarify: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/IPInfo/+/refs/heads/master/i18n/qqq.json#29

AC

Event Timeline

Tchanders set the point value for this task to 2.
Tchanders updated the task description. (Show Details)
Tchanders updated the task description. (Show Details)
STran updated the task description. (Show Details)

Change 822491 had a related patch set uploaded (by TsepoThoabala; author: TsepoThoabala):

[mediawiki/extensions/IPInfo@master] Translate "User type" data returned from MaxMind

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

Change 822491 merged by jenkins-bot:

[mediawiki/extensions/IPInfo@master] Translate "User type" data returned from MaxMind

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

dom_walden subscribed.

I can see translations of "Connection owner" in the Infobox. I looked at as many Connection owner types as I could find.

Test environment: local docker IP Info 0.0.0 (669fac4) 06:29, 19 August 2022.