Page MenuHomePhabricator

Add message documentation to SocialProfile
Closed, ResolvedPublic


Currently it's not possible to connect SocialProfile to, and from my understanding it's because of two reasons:

  1. The i18n structure (although I might be wrong on this point) - Currently it's separated by module and then the i18n folder, e.g SocialProfile/UserProfile/i18n. Perhaps it could be:
    1. reversed - e.g instead it'd look like: SocialProfile/i18n/UserProfile
    2. or have all of the module i18n files merged - e.g currently SocialProfile/UserProfile/i18n/en.json and SocialProfile/UserGifts/i18n/en.json (and every other module) could merge into SocialProfile/i18n/en.json. (same goes with what other json files for other language exists, although there isn't much).
  2. qqq.json currently doesn't exist. Is it worth documenting all of these messages for the sake of being able to connect to Please discuss below.

It looks like it used to connect to but I'm guessing it changed for some reason that I'm not aware of.

Revisions and Commits

Event Timeline

The current i18n structure and whatnot exists because of historical reasons; in 2007 or so there was no "SocialProfile", just "UserProfile", "UserStats", "SystemGifts", etc.
Only after this extension/these extensions were open-sourced in February 2008 they were merged into one extension called "SocialProfile". That being said, I'm fond of the current approach, because that way you don't need to wonder, "what module uses this i18n message? Is it used by UserGifts or UserWelcome?" but rather it's pretty obvious -- if you're looking at SocialProfile/UserProfile/i18n/en.json the messages are used by UserProfile.

As for qqq.json, if you want to add that, go ahead. I have been and I will remain opposed to qqq, not to message documentation. qqq is notoriously with a bunch of site-specific templates and whatnot in it; thus I see no point in having qqq exported back to the source code repository from
To my knowledge, staff mandates extensions, skins and other MediaWiki-related things maintained on WMF git having a qqq file, which I disagree with. If and when translators have questions or requests related to some of the things I maintain, I'm more than happy to help them out -- that way "supporting" these extensions won't take any of TWN staff's precious time.
From a technical point of view, supporting a new MediaWiki extension or skin is literally a few lines in TWN config, assuming that hasn't somewhat recently changed. The problems here are mostly social, not technical.

I should note that in my view, a picture is worth a thousand word. Six pictures are worth of 6k words, and are more useful than vague descriptions in qqq.json. Likewise, there's the test wiki on Labs where users, translators and everyone else can play around with many of the social tools and whatnot.

Related links:

Issue number #1 is not an issue.

For issue number #2, I'll just say that this is a requirement we have and we don't budge on it. Everyone else uses it, and we try our best to instruct how to use it. We are not very strict how it is used: you are free to use links or screenshots or whatever you want, making it less or more tailored for The concern is not staff time, but translator's time. It's not efficient for them to spend time reaching out the developers for information that could already be supplied via message documentation.

Change 574758 had a related patch set uploaded (by Jack Phoenix; owner: Jack Phoenix):
[mediawiki/extensions/SocialProfile@master] UserGifts: add i18n message documentation

Change 574758 merged by Jack Phoenix:
[mediawiki/extensions/SocialProfile@master] UserGifts: add i18n message documentation

Change 575233 had a related patch set uploaded (by Jack Phoenix; owner: Jack Phoenix):
[mediawiki/extensions/SocialProfile@master] UserStats: add i18n message documentation

Change 575233 merged by jenkins-bot:
[mediawiki/extensions/SocialProfile@master] UserStats: add i18n message documentation

Change 575238 had a related patch set uploaded (by Jack Phoenix; owner: Jack Phoenix):
[mediawiki/extensions/SocialProfile@master] SystemGifts: add i18n message documentation

Change 575238 merged by jenkins-bot:
[mediawiki/extensions/SocialProfile@master] SystemGifts: add i18n message documentation

ashley claimed this task.

Happy to close this as RESOLVED now that all actively maintained social tools are translatable via TWN. :)