Page MenuHomePhabricator

Include appropriate suffixes and honorifics after usernames when pinging people
Closed, ResolvedPublic

Description

In Japanese, it is appropriate, when replying to a person, to include an honorific suffix.

@Atmark-chan suggested in https://www.mediawiki.org/wiki/Topic:Vvzrgsaz3p0y1pcg (← read that thread) that the Reply tool's pinging/mentioning feature should automagically insert this honorific.

"Ideally, It'll be nicer to insert the honorific (e.g., "さん" ("-san") in Japanese) and ":" after the username defaultly, just like "Atmark-chanさん:". I think It'll be good to make a message (e.g., $1さん:) and replace $1 with the username."

The message string for localizing the @ symbol could be used if a prefix were wanted. Could we have a localizable suffix as well? It might need to be gender-sensitive, and it should be possible to remove or edit it.

References

Event Timeline

ppelberg moved this task from Untriaged to Next Quarter on the Editing-team board.
ppelberg moved this task from Backlog to Triaged on the DiscussionTools board.

We do already have discussiontools-replywidget-mention-prefix (which is what gives us the @) -- adding an equivalent suffix would be pretty easy. Might need to jump through some hoops to make sure it can't interfere with the actual function of the mention, but...

Change 755438 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/DiscussionTools@master] Add an optional suffix message to mentions

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

Patch creates an equivalent to the prefix message. Wikis would be able to edit MediaWiki:Discussiontools-replywidget-mention-suffix to be whatever they think is appropriate.

Test wiki created on Patch demo by DLynch (WMF) using patch(es) linked to this task:

https://patchdemo.wmflabs.org/wikis/f358039262/w/

I've set up that patchdemo with the さん suffix. If you use the mention tool, it should appear: https://patchdemo.wmflabs.org/wikis/f358039262/wiki/Talk:Main_Page

The suffix can be customized by editing this message: https://patchdemo.wmflabs.org/wikis/f358039262/wiki/MediaWiki:Discussiontools-replywidget-mention-suffix

Change 755438 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] Add an optional suffix message to mentions

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

Patch creates an equivalent to the prefix message. Wikis would be able to edit MediaWiki:Discussiontools-replywidget-mention-suffix to be whatever they think is appropriate.

@DLynch: would it be accurate for me to think that while this patch creates the potential for wikis to add a suffix to all mentions made within the Reply and New Discussion Tools, this patch does NOT go so far as to specify that さん be appended to mentions made within DiscussionTools at ja.wiki?

@ppelberg yes! Someone with the appropriate permissions on that wiki will need to actually set the message.

Next steps

  • @Whatamidoing-WMF to inform volunteers at ja.wiki that this suffix customization now exists

We can monitor who's using this with global-search: https://global-search.toolforge.org/?q=.&regex=1&namespaces=8&title=Discussiontools-replywidget-mention-suffix (this will catch on-wiki usage, not anything done via updating the bundled translations)

You can find all of the customizations in one of the two places:

Currently there are none, hopefully we'll soon see one for the Japanese language, or for the Japanese Wikipedia (not sure if this is also desired for other projects).

not sure if this is also desired for other projects

I figure the main case where this might be used outside of Japanese-style honorifics is wiki-communities who have an opinion about whether the mention should be followed by a :.

Test wiki on Patch demo by DLynch (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/f358039262/w/

I've noticed that the Japanese override hasn't actually been created, so I added it: https://translatewiki.net/wiki/MediaWiki:Discussiontools-replywidget-mention-suffix/ja

This seems to be the correct thing based on the comments we've seen, so I'm not sure why it wasn't done. I'm guessing that maybe the folks who proposed it have been busy, or don't have translator access, or couldn't find this message on Translatewiki (it's optional so it won't show up in the usual lists of messages to translate).