diff --git a/i18n/locales/de/common.json b/i18n/locales/de/common.json index 9e914a08b..17a2f5622 100644 --- a/i18n/locales/de/common.json +++ b/i18n/locales/de/common.json @@ -1,5 +1,7 @@ { " Make sure that you are using the latest version of Lisk Nano.": "Stelle sicher, dass du die neuste Version von Lisk Nano benutzt.", + "Vote_noun": "Abstimmung", + "Vote_verb": "Abstimmen", "About": "Über", "Account saved": "Konto gespeichert", "Account was successfully forgotten.": "Das Konto wurde erfolgreich vergessen.", @@ -182,7 +184,7 @@ "Verify message": "Nachricht verifizieren", "Version": "Version", "View": "Ansicht", - "Vote": "Stimme", + "Vote": "Abstimmen", "Vote for delegates": "Für Delegierte stimmen", "Voting": "Abstimmung", "What's New...": "Neues...", diff --git a/i18n/locales/en/common.json b/i18n/locales/en/common.json index 6cce6e863..1d3e4aa10 100644 --- a/i18n/locales/en/common.json +++ b/i18n/locales/en/common.json @@ -182,8 +182,9 @@ "Verify message": "Verify message", "Version": "Version", "View": "View", - "Vote": "Vote", "Vote for delegates": "Vote for delegates", + "Vote_noun": "Vote", + "Vote_verb": "Vote", "Voting": "Voting", "What's New...": "What's New...", "When you have the signature, you only need the publicKey of the signer in order to verify that the message came from the right private/publicKey pair. Be aware, everybody knowing the signature and the publicKey can verify the message. If ever there is a dispute, everybody can take the publicKey and signature to a judge and prove that the message is coming from the specific private/publicKey pair.": "When you have the signature, you only need the publicKey of the signer in order to verify that the message came from the right private/publicKey pair. Be aware, everybody knowing the signature and the publicKey can verify the message. If ever there is a dispute, everybody can take the publicKey and signature to a judge and prove that the message is coming from the specific private/publicKey pair.", diff --git a/src/components/transactions/transactionType.js b/src/components/transactions/transactionType.js index b3d8804ad..6ead67c51 100644 --- a/src/components/transactions/transactionType.js +++ b/src/components/transactions/transactionType.js @@ -15,7 +15,7 @@ const TransactionType = (props) => { type = t('Delegate Registration'); break; case 3: - type = t('Vote'); + type = t('Vote', { context: 'noun' }); break; case 4: type = t('Multisignature Creation'); diff --git a/src/components/voting/voting.js b/src/components/voting/voting.js index 63426f2a0..d4dde3f78 100644 --- a/src/components/voting/voting.js +++ b/src/components/voting/voting.js @@ -104,7 +104,7 @@ class Voting extends React.Component {
- {this.props.t('Vote')} + {this.props.t('Vote', { context: 'verb' })} {this.props.t('Rank')} {this.props.t('Name')} {this.props.t('Lisk Address')} diff --git a/src/components/voting/votingHeader.js b/src/components/voting/votingHeader.js index c4122be2c..0473ecc98 100644 --- a/src/components/voting/votingHeader.js +++ b/src/components/voting/votingHeader.js @@ -38,7 +38,7 @@ export class VotingHeaderRaw extends React.Component { } confirmVoteText() { - let info = this.props.t('Vote'); + let info = this.props.t('Vote', { context: 'verb' }); const { votes } = this.props; const votesList = Object.keys(votes); const voted = votesList.filter(item => @@ -49,7 +49,7 @@ export class VotingHeaderRaw extends React.Component { const separator = (voted > 0 && unvoted > 0) ? ' / ' : ''; // eslint-disable-line const votedHtml = voted > 0 ? +{voted} : ''; const unvotedHtml = unvoted > 0 ? -{unvoted} : ''; - info = {this.props.t('Vote')} ({votedHtml}{separator}{unvotedHtml}); + info = {this.props.t('Vote', { context: 'verb' })} ({votedHtml}{separator}{unvotedHtml}); } return info; }