diff options
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/post_view/components/post_header.jsx | 8 | ||||
-rw-r--r-- | webapp/components/rhs_comment.jsx | 7 | ||||
-rw-r--r-- | webapp/components/rhs_root_post.jsx | 7 | ||||
-rw-r--r-- | webapp/components/user_profile.jsx | 2 |
4 files changed, 20 insertions, 4 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} /> diff --git a/webapp/components/rhs_comment.jsx b/webapp/components/rhs_comment.jsx index 0eb7717b3..614ba6005 100644 --- a/webapp/components/rhs_comment.jsx +++ b/webapp/components/rhs_comment.jsx @@ -285,7 +285,12 @@ export default class RhsComment 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} /> diff --git a/webapp/components/rhs_root_post.jsx b/webapp/components/rhs_root_post.jsx index a114c7385..2942a0efc 100644 --- a/webapp/components/rhs_root_post.jsx +++ b/webapp/components/rhs_root_post.jsx @@ -293,7 +293,12 @@ export default class RhsRootPost 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} /> diff --git a/webapp/components/user_profile.jsx b/webapp/components/user_profile.jsx index d9bd5c378..8c365b6da 100644 --- a/webapp/components/user_profile.jsx +++ b/webapp/components/user_profile.jsx @@ -102,7 +102,7 @@ UserProfile.defaultProps = { }; UserProfile.propTypes = { user: React.PropTypes.object, - overwriteName: React.PropTypes.string, + overwriteName: React.PropTypes.node, overwriteImage: React.PropTypes.string, disablePopover: React.PropTypes.bool, displayNameType: React.PropTypes.string, |