[go: up one dir, main page]

Page MenuHomePhabricator

Add Gender to Discussiontools-autotopicsubpopup-title
Closed, ResolvedPublic

Description

MediaWiki:Discussiontools-autotopicsubpopup-title has "You have been subscribed" as a source.

The right translation in French for "subscribed", in this context, is "abonné", which has a feminine form, "abonnée".

Event Timeline

You can use {{GENDER:|m|f|n}} markup, with empty first parameter (which refers to the user viewing the page), in this message. We haven't added the markup in every possible message in English, since it wasn't clear that it would be more helpful than confusing.

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

We're going to add the {{Gender|}} markup to all instances within DiscussionTools that already use it in translations.

Change 902509 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/DiscussionTools@master] Add `{{GENDER:|}}` to some localisation messages

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

Previously discussed in T292636, T329584, change 627390. Although it's not necessary to use {{GENDER:|}} in the English message to enable its use in translations, this question keeps coming up, so I'm increasingly convinced that we should add it to make it obvious to translators. It is also recommended by https://www.mediawiki.org/wiki/Manual:Messages_API#…on_user_names_via_GENDER: "If it is likely that GENDER will be used in translations for languages with gender inflections, add it explicitly in the English language source message."

I wasn't sure where the markup should be placed in English. I had a look at existing uses: https://codesearch.wmcloud.org/search/?q=%5C%7B%5C%7BGENDER%3A%5C%7C&files=en.json. In most cases the markup is placed on the pronoun "you" (if it's used in the sentence) or on the verb, and only once per message, so I followed this convention. (Even though in translations, it can affect other parts of speech and entire phrases, but I think this is intended to make it less distracting for translators working in languages without gender distinctions.)

A quick search reveals that currently, translations of 41 messages use {{GENDER:|}} markup. I have added it to their English versions.

"discussiontools-error-comment-conflict"
"discussiontools-error-comment-disappeared"
"discussiontools-error-comment-disappeared-reload"
"discussiontools-error-comment-is-transcluded"
"discussiontools-error-comment-is-transcluded-title"
"discussiontools-error-comment-not-saved"
"discussiontools-error-noswitchtove"
"discussiontools-newtopic-legacy-hint-return"
"discussiontools-newtopic-missing-title"
"discussiontools-replylink"
"discussiontools-replywidget-abandon"
"discussiontools-replywidget-abandontopic"
"discussiontools-replywidget-feedback"
"discussiontools-replywidget-newtopic"
"discussiontools-replywidget-placeholder-reply"
"discussiontools-replywidget-reply"
"discussiontools-replywidget-signature-body"
"discussiontools-replywidget-terms-click"
"discussiontools-topicsubscription-button-subscribe-tooltip"
"discussiontools-topicsubscription-button-unsubscribe-tooltip"
"echo-pref-tooltip-dt-subscription"
"echo-pref-tooltip-dt-subscription-archiving"
"discussiontools-emptystate-title-self"
"discussiontools-emptystate-title-self-anon"
"discussiontools-emptystate-title-user-anon"
"discussiontools-newtopicssubscription-notify-subscribed-title"
"discussiontools-newtopicssubscription-notify-unsubscribed-title"
"discussiontools-preference-description"
"discussiontools-autotopicsubpopup-body"
"discussiontools-emptystate-desc"
"discussiontools-emptystate-desc-self"
"discussiontools-emptystate-desc-user"
"discussiontools-emptystate-desc-user-anon"
"discussiontools-findcomment-gotocomment"
"discussiontools-notification-removed-topic-body"
"discussiontools-notification-removed-topic-disabled-title"
"discussiontools-preference-autotopicsub-help"
"discussiontools-topicsubscription-notify-subscribed-body"
"discussiontools-topicsubscription-notify-unsubscribed-body"
"discussiontools-topicsubscription-special-intro"
"discussiontools-topicsubscription-pager-created"

There are a few messages that currently do not use {{GENDER:|}} in any translation, but which are phrased in a very similar way to one of the above, so it seems likely to me that it could be used. I have added it to their English versions as well.

"discussiontools-autotopicsubpopup-title"
"discussiontools-emptystate-desc-self-anon"
"discussiontools-error-lint"
"discussiontools-newtopic-legacy-hint"
"discussiontools-newtopicssubscription-notify-subscribed-body"
"discussiontools-newtopicssubscription-notify-unsubscribed-body"
"discussiontools-topicsubscription-notify-subscribed-title"
"discussiontools-topicsubscription-notify-unsubscribed-title"
"discussiontools-replybutton"

Change 902509 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] Add `{{GENDER:|}}` to some localisation messages

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