Page MenuHomePhabricator

86.1: Create qqq documentation for messages
Closed, ResolvedPublic

Event Timeline

DannyS712 triaged this task as Medium priority.Nov 30 2019, 2:19 AM
DannyS712 created this task.
DannyS712 moved this task from Backlog to Ongoing on the DannyS712-Global_watchlist.js board.

@Masumrezarock100 care to take a look at / copyedit the message definitions?

qqq
	qqq: {
		'gw-msg-asOf': 'When the feed was last refreshed; $1 = timestamp',
		'gw-msg-changes': 'Label for link to combined diffs when there was more than one edit; $1 = number of edits',
		'gw-msg-changesFeed': 'Label for list of sites with changes to show',
		'gw-msg-emptyFeed': 'Label for list of sites with no changes to show',
		'gw-msg-filter-anon': 'Label for the anonymous edits filter',
		'gw-msg-filter-bot': 'Label for the bot edits filter',
		'gw-msg-filter-either': 'Option to not filter based on anonymous/bot/minor edits',
		'gw-msg-filter-not-anon': 'Option to only show edits not made by anonymous users',
		'gw-msg-filter-not-bot': 'Option to only show edits not made by bots',
		'gw-msg-filter-not-minor': 'Option to only show edits not marked as minor',
		'gw-msg-filter-only-anon': 'Option to only show edits made by anonymous users',
		'gw-msg-filter-only-bot': 'Option to only show edits made by bots',
		'gw-msg-filter-only-minor': 'Option to only show edits marked as minor',
		'gw-msg-globalWatchlistBackLink': 'Label for the link to the global watchlist from the settings page',
		'gw-msg-globalWatchlistHeader': '"Global watchlist" header',
		'gw-msg-globalWatchlistLink': 'Label for the link to the global watchlist from the normal watchlist page',
		'gw-msg-globalWatchlistSettingsHeader': 'Settings page header',
		'gw-msg-globalWatchlistSettingsLink': 'Label for the link to the settings page from the global watchlist',
		'gw-msg-globalWatchlistSettingsTitle': 'Settings page title',
		'gw-msg-globalWatchlistTitle': '"Global watchlist" page titletitle',
		'gw-msg-markAllAsSeen': 'Button to mark all sites as seen',
		'gw-msg-markAllAsSeenConfirm': 'Confirmation message for marking all sites as seen',
		'gw-msg-markAsSeen': 'Button to mark a specific site as seen',
		'gw-msg-notify-savingFailed': 'Notification that settings were not saved successfully',
		'gw-msg-notify-settingsSaved': 'Notification that settings were saved successfully',
		'gw-msg-option-confirmAllSites': 'Label for toggle option to opt-out of confirming before marking all sites as seen',
		'gw-msg-option-fastMode': 'Label for toggle option to activate fast mode',
		'gw-msg-option-live': 'Label for toggle button to activate live updates',
		'gw-msg-refresh': 'Label for the refresh button',
		'gw-msg-resetChanges': 'Label for the settings button to reset changes',
		'gw-msg-rewatch': 'Label for button to rewatch a page',
		'gw-msg-show-edits': 'Label for the option to show edits',
		'gw-msg-show-logEntries': 'Label for the option to show log entries',
		'gw-msg-show-newPages': 'Label for the option to show new pages',
		'gw-msg-siteList': 'Label for user defined site list',
		'gw-msg-switchToDev': 'Label for switching to the development version of the script',
		'gw-msg-switchToStable': 'Label for switching to the stable version of the script',
		'gw-msg-unwatch': 'Label for button to unwatch a page',
	},
Masumrezarock100 added a comment.EditedNov 30 2019, 3:25 AM

@DannyS712 Just to clarify: do you mean copy-paste those existing messages from meta-wiki and then make amendments to them?

@DannyS712 Just to clarify: do you mean copy-paste those existing messages from meta-wiki and then make amendments to them?

I mean like "gw-msg-foo" is unclear, please clarify

Ok. I copyedited some of the messages and omitted others that I couldn't do/think of any better messages. I listed some messages id that could use global mediawiki messages.

qqq
	qqq: {
		'gw-msg-asOf': 'Changes as of $1',
		'gw-msg-changes': '$1 unseen changes',
		'gw-msg-changesFeed': 'Sites with new changes',
		'gw-msg-emptyFeed': 'Sites with no new changes/Sites without any new changes',
		'gw-msg-filter-anon': 'Only anonymous user edits',
		'gw-msg-notify-settingsSaved': 'mediawikiGlobalMessages + "Redirecting to Global watchlist"',
		'gw-msg-resetChanges': 'Reset changes made to settings',
	},

Messages that could use mediawiki global messages

  • gw-msg-unwatch
  • gw-msg-option-live
  • gw-msg-notify-settingsSaved (like in Special:Preferences)

What global messages could be used? If you can find one in https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/refs/heads/master/languages/i18n/en.json that works, I'll use those. But, at least for "unwatch", I want it to be lowercase, and the core message is uppercase.

Live: rcfilters-liveupdates-button - "Live updates"
Saved: savedprefs - "Your preferences have been saved."

Masumrezarock100 added a comment.EditedDec 1 2019, 12:57 AM

What global messages could be used? If you can find one in https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/refs/heads/master/languages/i18n/en.json that works, I'll use those. But, at least for "unwatch", I want it to be lowercase, and the core message is uppercase.

Hmm, that could be easily solved using a Javascript method. Let me find that.

Found it. toLowerCase() should work.

Also, changes can just be nchanges - "{{PLURAL:$1|change|changes}}"

Also, changes can just be nchanges - "{{PLURAL:$1|change|changes}}"

Yes.

There could be other global messages out there that you can use.

Found it. toLowerCase() should work.

Maybe, but I don't want to be applying lego transformations to translations (can't find it now, but basically lego translation = FooBar -> translate Foo, and translate Bar, and then concatenate the result, instead of translating in context the who message)

You have a point. Also global equivalents of Save, Group results by page, and Settings can be used.

Ok. I copyedited some of the messages and omitted others that I couldn't do/think of any better messages. I listed some messages id that could use global mediawiki messages.

qqq
	qqq: {
		'gw-msg-asOf': 'Changes as of $1',
		'gw-msg-changes': '$1 unseen changes',
		'gw-msg-changesFeed': 'Sites with new changes',
		'gw-msg-emptyFeed': 'Sites with no new changes/Sites without any new changes',
		'gw-msg-filter-anon': 'Only anonymous user edits',
		'gw-msg-notify-settingsSaved': 'mediawikiGlobalMessages + "Redirecting to Global watchlist"',
		'gw-msg-resetChanges': 'Reset changes made to settings',
	},

Messages that could use mediawiki global messages

  • gw-msg-unwatch
  • gw-msg-option-live
  • gw-msg-notify-settingsSaved (like in Special:Preferences)

The QQQ is the documentation for the message translation, not the english message itself

DannyS712 closed this task as Resolved.Dec 1 2019, 2:45 AM

Done in 6.6.0