Page MenuHomePhabricator

{{SITENAME}} not parsed: "Publish to {{SITENAME}}" as message box title when $wgDefaultUserOptions['wikieditor-publish'] = 1
Closed, DeclinedPublic


I am referring to latest core and latest E:WikiEditor version from git.

When you have set

  • # Displays the Publish and Cancel buttons on the top right side
  • $wgDefaultUserOptions['wikieditor-publish'] = 1;

and when you click on "publish" (these button are _only_ shown, when the option $wgDefaultUserOptions['wikieditor-publish'] is set to 1 as shown above -

then the TitleMsg of the Javascript-generated box is

"Publish to {{SITENAME}}"

because {{SITENAME}} is not rendered!

The message key in is

'wikieditor-publish-dialog-title' => 'Publish to {{SITENAME}}',

and the modules does not render this correctly, the message text being therefore wrong for all translated languages.


Fix the module

Version: master
Severity: normal

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:01 AM
bzimport added a project: WikiEditor.
bzimport set Reference to bz60695.
bzimport added a subscriber: Unknown Object (MLST).

Change 255083 had a related patch set uploaded (by 2nd-player):
Substitute {{SITENAME}} in the title of dialogs

{{SITENAME}} should parsed on server side.

Change 255083 merged by jenkins-bot:
Substitute {{SITENAME}} in the title of dialogs

Fixing this, currently conflicts with Bug: 42107 and

That change actually introduced this bug because it changed it from mw.msg() to mw.message().plain() – where mw.msg() is a shortcut for mw.message().text(). Text is plain + transformations (but not wikitext parsing or html escaping).

Jdforrester-WMF added a subscriber: Jdforrester-WMF.

Declining this task, as we have just now dropped the never-finished "Labs" publish and preview features from WikiEditor (and they will be removed from REL1_31 onwards).