diff options
author | Anthony Bellew <anthonyreflected@gmail.com> | 2017-01-26 00:24:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-26 00:24:52 -0700 |
commit | d944946c52db56db640cf14b630851092c7ef30c (patch) | |
tree | 9e7b38ba7107f7d25fa79e30073a47bfc8b37740 | |
parent | baa52984e9efc6264470ca18ff33816a49d79527 (diff) |
Moved brackets outside of localized strings at Gargron's suggestion
-rw-r--r-- | app/assets/javascripts/components/components/status_content.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/components/components/status_content.jsx b/app/assets/javascripts/components/components/status_content.jsx index 06c0e24ee..476d4520d 100644 --- a/app/assets/javascripts/components/components/status_content.jsx +++ b/app/assets/javascripts/components/components/status_content.jsx @@ -88,12 +88,12 @@ const StatusContent = React.createClass({ const spoilerContent = { __html: emojify(status.get('spoiler_text', '')) }; if (status.get('spoiler_text').length > 0) { - const toggleText = hidden ? <FormattedMessage id='status.show_more' defaultMessage='[Show more]' /> : <FormattedMessage id='status.show_less' defaultMessage='[Show less]' />; + const toggleText = hidden ? <FormattedMessage id='status.show_more' defaultMessage='Show more' /> : <FormattedMessage id='status.show_less' defaultMessage='Show less' />; return ( <div className='status__content' style={{ cursor: 'pointer' }} onMouseDown={this.handleMouseDown} onMouseUp={this.handleMouseUp}> <p style={{ marginBottom: hidden ? '0px' : '' }} > - <span dangerouslySetInnerHTML={spoilerContent} /> <a onClick={this.handleSpoilerClick}>{toggleText}</a> + <span dangerouslySetInnerHTML={spoilerContent} /> <a onClick={this.handleSpoilerClick}>[{toggleText}]</a> </p> <div style={{ display: hidden ? 'none' : 'block' }} dangerouslySetInnerHTML={content} /> |