Sync a locale files for JavaScript (#2513)
There are multiple messages missing in en.jsx. It is very troublesome when translating other languages.
This commit is contained in:
		
							parent
							
								
									1f805a6377
								
							
						
					
					
						commit
						be0a01145b
					
				
					 8 changed files with 55 additions and 24 deletions
				
			
		|  | @ -4,7 +4,7 @@ import { changeComposeSpoilerness } from '../../../actions/compose'; | |||
| import { injectIntl, defineMessages } from 'react-intl'; | ||||
| 
 | ||||
| const messages = defineMessages({ | ||||
|   title: { id: 'compose_form.spoiler', defaultMessage: 'Hide text behind content warning' } | ||||
|   title: { id: 'compose_form.spoiler', defaultMessage: 'Hide text behind warning' } | ||||
| }); | ||||
| 
 | ||||
| const mapStateToProps = (state, { intl }) => ({ | ||||
|  |  | |||
|  | @ -29,7 +29,7 @@ const WarningWrapper = ({ needsLeakWarning, needsLockWarning, mentionedDomains } | |||
|       <Warning | ||||
|         message={<FormattedMessage | ||||
|           id='compose_form.privacy_disclaimer' | ||||
|           defaultMessage='Your private status will be delivered to mentioned users on {domains}. Do you trust {domainsCount, plural, one {that server} other {those servers}} to not leak your status?' | ||||
|           defaultMessage='Your private status will be delivered to mentioned users on {domains}. Do you trust {domainsCount, plural, one {that server} other {those servers}}? Post privacy only works on Mastodon instances. If {domains} {domainsCount, plural, one {is not a Mastodon instance} other {are not Mastodon instances}}, there will be no indication that your post is private, and it may be boosted or otherwise made visible to unintended recipients.' | ||||
|           values={{ domains: <strong>{mentionedDomains.join(', ')}</strong>, domainsCount: mentionedDomains.length }} | ||||
|         />} | ||||
|       /> | ||||
|  |  | |||
|  | @ -8,8 +8,8 @@ const messages = defineMessages({ | |||
|   delete: { id: 'status.delete', defaultMessage: 'Delete' }, | ||||
|   mention: { id: 'status.mention', defaultMessage: 'Mention @{name}' }, | ||||
|   reply: { id: 'status.reply', defaultMessage: 'Reply' }, | ||||
|   reblog: { id: 'status.reblog', defaultMessage: 'Reblog' }, | ||||
|   cannot_reblog: { id: 'status.cannot_reblog', defaultMessage: 'This post cannot be reblogged' }, | ||||
|   reblog: { id: 'status.reblog', defaultMessage: 'Boost' }, | ||||
|   cannot_reblog: { id: 'status.cannot_reblog', defaultMessage: 'This post cannot be boosted' }, | ||||
|   favourite: { id: 'status.favourite', defaultMessage: 'Favourite' }, | ||||
|   report: { id: 'status.report', defaultMessage: 'Report @{name}' } | ||||
| }); | ||||
|  |  | |||
|  | @ -213,7 +213,7 @@ class OnboardingModal extends React.PureComponent { | |||
|     if(hasMore) { | ||||
|       nextOrDoneBtn = <a href='#' onClick={this.handleNext.bind(null, pages.length)} className='onboarding-modal__nav onboarding-modal__next'><FormattedMessage id='onboarding.next' defaultMessage='Next' /></a>; | ||||
|     } else { | ||||
|       nextOrDoneBtn = <a href='#' onClick={this.handleNext.bind(null, pages.length)} className='onboarding-modal__nav onboarding-modal__done'><FormattedMessage id='onboarding.next' defaultMessage='Done' /></a>; | ||||
|       nextOrDoneBtn = <a href='#' onClick={this.handleNext.bind(null, pages.length)} className='onboarding-modal__nav onboarding-modal__done'><FormattedMessage id='onboarding.done' defaultMessage='Done' /></a>; | ||||
|     } | ||||
| 
 | ||||
|     const styles = pages.map((page, i) => ({ | ||||
|  |  | |||
		Reference in a new issue