Page MenuHomePhabricator

Allow localized SITENAME in MediaWiki:Createacct-benefit-heading
Open, Needs TriagePublicFeature

Description

Feature summary: Splitting message MediaWiki:Createacct-benefit-heading to the translatable and untranslatable parts; for more flexible configuagation by specific site condition.

Use case(s):

1. Current state

In the Special:Createaccount we look bolded localized header string, contains untranslated sitename (example from Wikimedia Commons; Russian interface):

image.png (415×1 px, 83 KB)

Currently this MediaWiki:Createacct-benefit-heading with code: {{SITENAME}} is made by people like you.

Therefore, {{SITENAME}} always untranslated, kept in the site language only.

2. Proposals

Code of MediaWiki:Createacct-benefit-heading may be splitted to the two other messages, and convered into next constructor: $1 $2

where

  • $1 - new message MediaWiki:Createacct-benefit-heading-sitename (untranslatable)
    • with default code: {{SITENAME}}
    • and optional code, applicable in the Wikimedia sites (example for Wikimedia Commons) may be:
      • {{int:Interlanguage-link-commons}}
      • or {{int:Project-localized-name-commonswiki}}
  • $2 - new message MediaWiki:Createacct-benefit-heading-label (translatable)
    • with code: is made by people like you.

All exists translations for MediaWiki:Createacct-benefit-heading may be migrated into MediaWiki:Createacct-benefit-heading-label with cutting {{SITENAME}} part.

Benefits:
Realisation of this proposal should be give more flexibility in customizing the site; the site admin can

  • keep the old behavior (if the site name is its domain name, like translatewiki.net),
  • or call the localized name from another message or even from the translation unit of some page of the site.

Event Timeline

Aklapper renamed this task from MediaWiki:Createacct-benefit-heading improvement to Allow localized SITENAME in MediaWiki:Createacct-benefit-heading.Feb 16 2022, 3:27 PM