Page MenuHomePhabricator

Form email body and subject from template
Closed, ResolvedPublic

Description

Motivation

At the moment email's caption and body are hardcoded. This makes impossible to change them without changing the code.

Expected result:

The possibility to change the email's body and caption in metadata/settings should be provided.

Addition Info:

You'd need to define both under some key in i18n/en.json and qqq.json, then here use

wfMessage('key')->inLanguage('en')->text();

Since we don't want these messages translated, follow https://www.mediawiki.org/wiki/Localisation#Messages_that_should_not_be_translated

Event Timeline

Peter.ovchyn renamed this task from Form email body and caption from template to Form email body and subject from template.Mar 30 2020, 10:57 AM
Peter.ovchyn added a project: Patch-For-Review.

Change 584568 had a related patch set uploaded (by Peter.ovchyn; owner: Peter.ovchyn):
[mediawiki/extensions/MediaModeration@master] Form email body and subject from template

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

Change 584702 had a related patch set uploaded (by Peter.ovchyn; owner: Peter.ovchyn):
[translatewiki@master] Add MediaModeration ignored keys

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

Change 584702 merged by jenkins-bot:
[translatewiki@master] Add MediaModeration ignored keys

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

Change 584568 merged by jenkins-bot:
[mediawiki/extensions/MediaModeration@master] Form email body and subject from template

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