Lucas_Werkmeister_WMDE added a comment.

  With regard to T235154#5640545 
<https://phabricator.wikimedia.org/T235154#5640545>, we decided:
  
  - We will parse messages PHP-side, before replacing parameters, and add the 
result (HTML potentially containing `$1`, etc.) to the parser output – most 
likely in `mw.config` under a name like `dataBridgeMessages` (analogous to 
`dataBridgeConfig`, but not a part of that). The JS-side code will then 
substitute the parameters without any further processing (but HTML-escaping 
them where necessary, of course).
  - The init module will load those messages and add them to `mw.messages` 
(using `mw.messages.set()`), so that they are available to the standard 
`mw.message()`/`mw.msg()` function and no modification to our `MessagesPlugin` 
or `MwMessagesRepository` is necessary.

TASK DETAIL
  https://phabricator.wikimedia.org/T235154

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Addshore, Michael, Pablo-WMDE, WMDE-leszek, Lucas_Werkmeister_WMDE, 
Charlie_WMDE, Aklapper, Lydia_Pintscher, darthmon_wmde, DannyS712, Nandana, 
Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, 
Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to