Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1006 from LiskHQ/1005-german-vote-button
Browse files Browse the repository at this point in the history
Change German translation for vote button - Closes #1005
  • Loading branch information
gina contrino committed Nov 22, 2017
2 parents ce61079 + f657368 commit 0974464
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
4 changes: 3 additions & 1 deletion i18n/locales/de/common.json
Original file line number Diff line number Diff line change
@@ -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.",
Expand Down Expand Up @@ -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...",
Expand Down
3 changes: 2 additions & 1 deletion i18n/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
2 changes: 1 addition & 1 deletion src/components/transactions/transactionType.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/components/voting/voting.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class Voting extends React.Component {
<div className='verticalScroll'>
<Table selectable={false} >
<TableHead displaySelect={false}>
<TableCell>{this.props.t('Vote')}</TableCell>
<TableCell>{this.props.t('Vote', { context: 'verb' })}</TableCell>
<TableCell>{this.props.t('Rank')}</TableCell>
<TableCell>{this.props.t('Name')}</TableCell>
<TableCell>{this.props.t('Lisk Address')}</TableCell>
Expand Down
4 changes: 2 additions & 2 deletions src/components/voting/votingHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand All @@ -49,7 +49,7 @@ export class VotingHeaderRaw extends React.Component {
const separator = (voted > 0 && unvoted > 0) ? ' / ' : ''; // eslint-disable-line
const votedHtml = voted > 0 ? <span className={styles.voted}>+{voted}</span> : '';
const unvotedHtml = unvoted > 0 ? <span className={styles.unvoted}>-{unvoted}</span> : '';
info = <span className='vote-button-info'>{this.props.t('Vote')} ({votedHtml}{separator}{unvotedHtml})</span>;
info = <span className='vote-button-info'>{this.props.t('Vote', { context: 'verb' })} ({votedHtml}{separator}{unvotedHtml})</span>;
}
return info;
}
Expand Down

0 comments on commit 0974464

Please sign in to comment.