diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-01-31 13:02:48 -0500 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-01-31 13:02:48 -0500 |
commit | 9369cab56c82629d505d44d572f273df1d396972 (patch) | |
tree | d5e7959639ff66f15c34351ea02c6ec19177442b /webapp/components/post_view | |
parent | 6054dee806f45b7813438bfd4758af0407099865 (diff) | |
download | chat-9369cab56c82629d505d44d572f273df1d396972.tar.gz chat-9369cab56c82629d505d44d572f273df1d396972.tar.bz2 chat-9369cab56c82629d505d44d572f273df1d396972.zip |
Added ability for system message username to be localized (#5239)
Diffstat (limited to 'webapp/components/post_view')
-rw-r--r-- | webapp/components/post_view/components/post_header.jsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/webapp/components/post_view/components/post_header.jsx b/webapp/components/post_view/components/post_header.jsx index 4043460a3..5e0a8a5a4 100644 --- a/webapp/components/post_view/components/post_header.jsx +++ b/webapp/components/post_view/components/post_header.jsx @@ -3,6 +3,7 @@ import UserProfile from 'components/user_profile.jsx'; import PostInfo from './post_info.jsx'; +import {FormattedMessage} from 'react-intl'; import * as PostUtils from 'utils/post_utils.jsx'; @@ -55,7 +56,12 @@ export default class PostHeader extends React.Component { userProfile = ( <UserProfile user={{}} - overwriteName={Constants.SYSTEM_MESSAGE_PROFILE_NAME} + overwriteName={ + <FormattedMessage + id='post_info.system' + defaultMessage='System' + /> + } overwriteImage={Constants.SYSTEM_MESSAGE_PROFILE_IMAGE} disablePopover={true} /> |