Background
The IPInfo widget displays IP information using lists. Data attributes are added to list items to identify what type of IP information they are. One use-case is adding specific styling for different properties, e.g. removing list styling for "Real IP/Proxy" data: https://gerrit.wikimedia.org/g/mediawiki/extensions/IPInfo/+/4c51721c2703f189aac2d4a2d0d9ea34deb0865f/modules/ext.ipInfo/ipinfo.less#52
The data attribute should be language agnostic, however it is currently being set to an English translation. An example bug is that the list styling is not removed for the real/proxy data if the language is not English:
English | French |
Acceptance criteria
- Set the data attribute to some string instead of an English translation
- Also check this string when logging which help icon was clicked on, instead of re-translating a message here.
Notes
This might require passing a type string into ipInfoWidget#generatePropertyMarkup, where the data attribute is set, rather than passing in a message translation. See: https://gerrit.wikimedia.org/g/mediawiki/extensions/IPInfo/+/4c51721c2703f189aac2d4a2d0d9ea34deb0865f/modules/ext.ipInfo/widget.js#122