Merge pull request #1462 from pafcu/translation-fixes

Use standard subsitution syntax in _tJsx
This commit is contained in:
Matthew Hodgson 2017-10-14 23:43:12 +01:00 committed by GitHub
commit f32ba0b54c
18 changed files with 20 additions and 19 deletions

View file

@ -70,9 +70,9 @@ module.exports = React.createClass({
// it sucks that _tJsx doesn't support normal _t substitutions :((
return (
<div className="mx_RoomAvatarEvent">
{ _tJsx('$senderDisplayName changed the room avatar to <img/>',
{ _tJsx('%(senderDisplayName)s changed the room avatar to <img/>',
[
/\$senderDisplayName/,
/%\(senderDisplayName\)s/,
/<img\/>/,
],
[