Skip to content

Commit

Permalink
#2 translated UI from RUS to ENG
Browse files Browse the repository at this point in the history
  • Loading branch information
ryzhak committed Oct 24, 2018
1 parent b9286ae commit ebe757d
Show file tree
Hide file tree
Showing 19 changed files with 170 additions and 173 deletions.
50 changes: 25 additions & 25 deletions src/app/dashboard/dao-param-page/dao-param-page.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<header>
<h1 class="h3 display">Параметры DAO</h1>
<h1 class="h3 display">DAO params</h1>
</header>

<div class="row">
Expand All @@ -9,105 +9,105 @@ <h1 class="h3 display">Параметры DAO</h1>
<div>
<form [formGroup]="formDaoParams">
<div class="form-group row">
<label class="col-sm-12 col-md-3 form-control-label">Кол-во DZT, создаваемых каждую неделю</label>
<label class="col-sm-12 col-md-3 form-control-label">Amount of DZT created each week</label>
<div class="col-sm-12 col-md-9">
<div class="row">
<div class="col-md-4">
<input type="number" formControlName="mintTokensPerWeekAmount" class="form-control" placeholder="Кол-во DZT, создаваемых каждую неделю">
<input type="number" formControlName="mintTokensPerWeekAmount" class="form-control" placeholder="Amount of DZT created each week">
</div>
<div class="col-md-4">
<button [disabled]="!formDaoParams.controls['mintTokensPerWeekAmount'].valid" (click)="runSetParam(devZenDaoService.PARAM_MINT_TOKENS_PER_WEEK_AMOUNT)" type="button" class="btn btn-primary">Обновить</button>
<button [disabled]="!formDaoParams.controls['mintTokensPerWeekAmount'].valid" (click)="runSetParam(devZenDaoService.PARAM_MINT_TOKENS_PER_WEEK_AMOUNT)" type="button" class="btn btn-primary">Update</button>
</div>
</div>
</div>
</div>
<div class="form-group row">
<label class="col-sm-12 col-md-3 form-control-label">Кол-во DZTREP, создаваемых каждую неделю</label>
<label class="col-sm-12 col-md-3 form-control-label">Amount of DZTREP created each week</label>
<div class="col-sm-12 col-md-9">
<div class="row">
<div class="col-md-4">
<input type="number" formControlName="mintReputationTokensPerWeekAmount" class="form-control" placeholder="Кол-во DZTREP, создаваемых каждую неделю">
<input type="number" formControlName="mintReputationTokensPerWeekAmount" class="form-control" placeholder="Amount of DZTREP created each week">
</div>
<div class="col-md-4">
<button [disabled]="!formDaoParams.controls['mintReputationTokensPerWeekAmount'].valid" (click)="runSetParam(devZenDaoService.PARAM_MINT_REPUTATION_TOKENS_PER_WEEK_AMOUNT)" type="button" class="btn btn-primary">Обновить</button>
<button [disabled]="!formDaoParams.controls['mintReputationTokensPerWeekAmount'].valid" (click)="runSetParam(devZenDaoService.PARAM_MINT_REPUTATION_TOKENS_PER_WEEK_AMOUNT)" type="button" class="btn btn-primary">Update</button>
</div>
</div>
</div>
</div>
<div class="form-group row">
<label class="col-sm-12 col-md-3 form-control-label">Цена за 1 DZT в ETH</label>
<label class="col-sm-12 col-md-3 form-control-label">Price for 1 DZT in ETH</label>
<div class="col-sm-12 col-md-9">
<div class="row">
<div class="col-md-4">
<input type="number" formControlName="oneTokenPriceInWei" class="form-control" placeholder="Цена за 1 DZT в ETH">
<input type="number" formControlName="oneTokenPriceInWei" class="form-control" placeholder="Price for 1 DZT in ETH">
</div>
<div class="col-md-4">
<button [disabled]="!formDaoParams.controls['oneTokenPriceInWei'].valid" (click)="runSetParam(devZenDaoService.PARAM_ONE_TOKEN_PRICE_IN_WEI)" type="button" class="btn btn-primary">Обновить</button>
<button [disabled]="!formDaoParams.controls['oneTokenPriceInWei'].valid" (click)="runSetParam(devZenDaoService.PARAM_ONE_TOKEN_PRICE_IN_WEI)" type="button" class="btn btn-primary">Update</button>
</div>
</div>
</div>
</div>
<div class="form-group row">
<label class="col-sm-12 col-md-3 form-control-label">Цена за 1 рекламный слот в DZT</label>
<label class="col-sm-12 col-md-3 form-control-label">Price for 1 ad slot in ETH</label>
<div class="col-sm-12 col-md-9">
<div class="row">
<div class="col-md-4">
<input type="number" formControlName="oneAdSlotPrice" class="form-control" placeholder="Цена за 1 рекламный слот в DZT">
<input type="number" formControlName="oneAdSlotPrice" class="form-control" placeholder="Price for 1 ad slot in ETH">
</div>
<div class="col-md-4">
<button [disabled]="!formDaoParams.controls['oneAdSlotPrice'].valid" (click)="runSetParam(devZenDaoService.PARAM_ONE_AD_SLOT_PRICE)" type="button" class="btn btn-primary">Обновить</button>
<button [disabled]="!formDaoParams.controls['oneAdSlotPrice'].valid" (click)="runSetParam(devZenDaoService.PARAM_ONE_AD_SLOT_PRICE)" type="button" class="btn btn-primary">Update</button>
</div>
</div>
</div>
</div>
<div class="form-group row">
<label class="col-sm-12 col-md-3 form-control-label">Залог гостя в DZT</label>
<label class="col-sm-12 col-md-3 form-control-label">Guest stake in DZT</label>
<div class="col-sm-12 col-md-9">
<div class="row">
<div class="col-md-4">
<input type="number" formControlName="becomeGuestStake" class="form-control" placeholder="Залог гостя в DZT">
<input type="number" formControlName="becomeGuestStake" class="form-control" placeholder="Guest stake in DZT">
</div>
<div class="col-md-4">
<button [disabled]="!formDaoParams.controls['becomeGuestStake'].valid" (click)="runSetParam(devZenDaoService.PARAM_BECOME_GUEST_STAKE)" type="button" class="btn btn-primary">Обновить</button>
<button [disabled]="!formDaoParams.controls['becomeGuestStake'].valid" (click)="runSetParam(devZenDaoService.PARAM_BECOME_GUEST_STAKE)" type="button" class="btn btn-primary">Update</button>
</div>
</div>
</div>
</div>
<div class="form-group row">
<label class="col-sm-12 col-md-3 form-control-label">Награда организатора за эпизод в DZTREP</label>
<label class="col-sm-12 col-md-3 form-control-label">Host reward for episode in DZTREP</label>
<div class="col-sm-12 col-md-9">
<div class="row">
<div class="col-md-4">
<input type="number" formControlName="repTokensRewardHost" class="form-control" placeholder="Награда организатора за эпизод в DZTREP">
<input type="number" formControlName="repTokensRewardHost" class="form-control" placeholder="Host reward for episode in DZTREP">
</div>
<div class="col-md-4">
<button [disabled]="!formDaoParams.controls['repTokensRewardHost'].valid" (click)="runSetParam(devZenDaoService.PARAM_REP_TOKENS_REWARD_HOST)" type="button" class="btn btn-primary">Обновить</button>
<button [disabled]="!formDaoParams.controls['repTokensRewardHost'].valid" (click)="runSetParam(devZenDaoService.PARAM_REP_TOKENS_REWARD_HOST)" type="button" class="btn btn-primary">Update</button>
</div>
</div>
</div>
</div>
<div class="form-group row">
<label class="col-sm-12 col-md-3 form-control-label">Награда гостя за эпизод в DZTREP</label>
<label class="col-sm-12 col-md-3 form-control-label">Guest reward for episode in DZTREP</label>
<div class="col-sm-12 col-md-9">
<div class="row">
<div class="col-md-4">
<input type="number" formControlName="repTokensRewardGuest" class="form-control" placeholder="Награда гостя за эпизод в DZTREP">
<input type="number" formControlName="repTokensRewardGuest" class="form-control" placeholder="Guest reward for episode in DZTREP">
</div>
<div class="col-md-4">
<button [disabled]="!formDaoParams.controls['repTokensRewardGuest'].valid" (click)="runSetParam(devZenDaoService.PARAM_REP_TOKENS_REWARD_GUEST)" type="button" class="btn btn-primary">Обновить</button>
<button [disabled]="!formDaoParams.controls['repTokensRewardGuest'].valid" (click)="runSetParam(devZenDaoService.PARAM_REP_TOKENS_REWARD_GUEST)" type="button" class="btn btn-primary">Update</button>
</div>
</div>
</div>
</div>
<div class="form-group row">
<label class="col-sm-12 col-md-3 form-control-label">Награда всех членов команды за эпизод в DZTREP</label>
<label class="col-sm-12 col-md-3 form-control-label">Reward of all team members for episode in DZTREP</label>
<div class="col-sm-12 col-md-9">
<div class="row">
<div class="col-md-4">
<input type="number" formControlName="repTokensRewardTeamMembers" class="form-control" placeholder="Награда всех членов команды за эпизод в DZTREP">
<input type="number" formControlName="repTokensRewardTeamMembers" class="form-control" placeholder="Reward of all team members for episode in DZTREP">
</div>
<div class="col-md-4">
<button [disabled]="!formDaoParams.controls['repTokensRewardTeamMembers'].valid" (click)="runSetParam(devZenDaoService.PARAM_REP_TOKENS_REWARD_TEAM_MEMBERS)" type="button" class="btn btn-primary">Обновить</button>
<button [disabled]="!formDaoParams.controls['repTokensRewardTeamMembers'].valid" (click)="runSetParam(devZenDaoService.PARAM_REP_TOKENS_REWARD_TEAM_MEMBERS)" type="button" class="btn btn-primary">Update</button>
</div>
</div>
</div>
Expand Down
14 changes: 7 additions & 7 deletions src/app/dashboard/dashboard.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ <h2 class="h5">DevZenDao</h2>
<!-- sidebar menu-->
<div class="main-menu">
<ul id="side-main-menu" class="side-menu list-unstyled">
<li><a routerLink="home"><i class="icon-home"></i>Главная</a></li>
<li><a routerLink="dao-param-page"><i class="icon-list"></i>Параметры DAO</a></li>
<li><a routerLink="team-page"><i class="icon-grid"></i>Команда</a></li>
<li><a routerLink="patron-page"><i class="icon-padnote"></i>Для рекламодателя</a></li>
<li><a routerLink="outsider-page"><i class="icon-user"></i>Для слушателя</a></li>
<li><a routerLink="group-member"><i class="icon-list-1"></i>Группа</a></li>
<li><a routerLink="proposal"><i class="icon-pencil-case"></i>Предложения</a></li>
<li><a routerLink="home"><i class="icon-home"></i>Home</a></li>
<li><a routerLink="dao-param-page"><i class="icon-list"></i>DAO params</a></li>
<li><a routerLink="team-page"><i class="icon-grid"></i>Team</a></li>
<li><a routerLink="patron-page"><i class="icon-padnote"></i>For advertiser</a></li>
<li><a routerLink="outsider-page"><i class="icon-user"></i>For listener</a></li>
<li><a routerLink="group-member"><i class="icon-list-1"></i>Group</a></li>
<li><a routerLink="proposal"><i class="icon-pencil-case"></i>Proposals</a></li>
</ul>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/app/dashboard/dashboard.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class DashboardComponent implements OnInit {
}
},
(err) => {
this.messageService.add({severity:'error', summary:'Ошибка', detail:'Ошибка соединения с Metamask'});
this.messageService.add({severity:'error', summary:'Error', detail:'Error on connecting to Metamask'});
console.error(err);
}
);
Expand All @@ -76,7 +76,7 @@ export class DashboardComponent implements OnInit {
this.isToolbarLoading = false;
},
(err) => {
this.messageService.add({severity:'error', summary:'Ошибка', detail:'Ошибка обновления балансов'});
this.messageService.add({severity:'error', summary:'Error', detail:'Error on updating balances'});
this.isToolbarLoading = false;
console.error(err);
}
Expand Down
18 changes: 9 additions & 9 deletions src/app/dashboard/group-member/group-member.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<header>
<h1 class="h3 display">Участники группы DevZenTeam</h1>
<h1 class="h3 display">Members of group DevZenTeam</h1>
</header>

<div *ngIf="loading" class="row">
Expand All @@ -10,7 +10,7 @@ <h1 class="h3 display">Участники группы DevZenTeam</h1>

<div *ngIf="!loading" class="row pb-2">
<div class="col-lg-12 text-right">
<button (click)="displayAddGroupMemberDialog = true" class="btn btn-primary">Добавить</button>
<button (click)="displayAddGroupMemberDialog = true" class="btn btn-primary">Add</button>
</div>
</div>

Expand All @@ -22,7 +22,7 @@ <h1 class="h3 display">Участники группы DevZenTeam</h1>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Адрес</th>
<th>Address</th>
<th>DZT</th>
<th>DZTREP</th>
<th></th>
Expand All @@ -34,7 +34,7 @@ <h1 class="h3 display">Участники группы DevZenTeam</h1>
<td>{{ web3Service.fromWei(member.dztBalance,"ether") }}</td>
<td>{{ web3Service.fromWei(member.dztRepBalance,"ether") }}</td>
<td>
<button (click)="deleteGroupMember(member)" class="btn btn-danger">Удалить</button>
<button (click)="deleteGroupMember(member)" class="btn btn-danger">Delete</button>
</td>
</tr>
</tbody>
Expand All @@ -46,23 +46,23 @@ <h1 class="h3 display">Участники группы DevZenTeam</h1>
</div>

<!-- add group member dialog -->
<p-dialog header="Добавление нового участника группы" [visible]="displayAddGroupMemberDialog" [modal]="true" [closable]="false">
<p-dialog header="Adding a new team member" [visible]="displayAddGroupMemberDialog" [modal]="true" [closable]="false">
<div>
<form [formGroup]="formGroupMember">
<div class="form-group row">
<label class="col-md-12 form-control-label">Адрес</label>
<label class="col-md-12 form-control-label">Address</label>
<div class="col-md-12">
<div class="row">
<div class="col-md-12">
<input type="text" formControlName="address" class="form-control" placeholder="Адрес нового участника">
<input type="text" formControlName="address" class="form-control" placeholder="New member address">
</div>
</div>
</div>
</div>
</form>
</div>
<p-footer>
<button type="button" (click)="addGroupMember()" class="btn btn-primary">Добавить</button>
<button type="button" (click)="displayAddGroupMemberDialog = false" class="btn">Отмена</button>
<button type="button" (click)="addGroupMember()" class="btn btn-primary">Add</button>
<button type="button" (click)="displayAddGroupMemberDialog = false" class="btn">Cancel</button>
</p-footer>
</p-dialog>
2 changes: 1 addition & 1 deletion src/app/dashboard/group-member/group-member.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class GroupMemberComponent implements OnInit {
this.loading = false;
},
err => {
this.messageService.add({severity:'error', summary:'Ошибка', detail:'Ошибка при получении участников группы'});
this.messageService.add({severity:'error', summary:'Error', detail:'Error on getting team members'});
this.loading = false;
console.error(err);
}
Expand Down
34 changes: 17 additions & 17 deletions src/app/dashboard/home/home.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<header>
<h1 class="h3 display">Главная</h1>
<h1 class="h3 display">Home</h1>
</header>

<div *ngIf="loading" class="row">
Expand All @@ -12,34 +12,34 @@ <h1 class="h3 display">Главная</h1>
<div class="col-lg-12">
<div class="card">
<div class="card-header">
<h4>Следующий эпизод</h4>
<h4>Next episode</h4>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-striped table-hover">
<tbody>
<tr>
<th scope="row">Следующий организатор</th>
<th scope="row">Next host address</th>
<td>{{ nextEpisode.nextShowHost }}</td>
</tr>
<tr>
<th scope="row">Следующий гость</th>
<th scope="row">Next guest address</th>
<td>{{ nextEpisode.nextShowGuest }}</td>
</tr>
<tr>
<th scope="row">Предыдущий организатор</th>
<th scope="row">Previous host address</th>
<td>{{ nextEpisode.prevShowHost }}</td>
</tr>
<tr>
<th scope="row">Предыдущий гость</th>
<th scope="row">Previous guest address</th>
<td>{{ nextEpisode.prevShowGuest }}</td>
</tr>
<tr>
<th scope="row">Занятые рекламные слоты</th>
<th scope="row">Used ad slots</th>
<td>{{ nextEpisode.usedSlots }}</td>
</tr>
<tr>
<th scope="row">Экстренный гость</th>
<th scope="row">Emergency guest</th>
<td>{{ nextEpisode.isEmergencyGuest }}</td>
</tr>
</tbody>
Expand All @@ -54,42 +54,42 @@ <h4>Следующий эпизод</h4>
<div class="col-lg-12">
<div class="card">
<div class="card-header">
<h4>Параметры DAO</h4>
<h4>DAO params</h4>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-striped table-hover">
<tbody>
<tr>
<th scope="row">Кол-во DZT, создаваемых каждую неделю</th>
<th scope="row">Amount of DZT created each week</th>
<td>{{ params.mintTokensPerWeekAmount }} DZT</td>
</tr>
<tr>
<th scope="row">Кол-во DZTREP, создаваемых каждую неделю</th>
<th scope="row">Amount of DZTREP created each week</th>
<td>{{ params.mintReputationTokensPerWeekAmount }} DZTREP</td>
</tr>
<tr>
<th scope="row">Цена за 1 DZT в ETH</th>
<th scope="row">Price for 1 DZT in ETH</th>
<td>{{ params.oneTokenPriceInWei }} ETH</td>
</tr>
<tr>
<th scope="row">Цена за 1 рекламный слот в DZT</th>
<th scope="row">Price for 1 ad slot in ETH</th>
<td>{{ params.oneAdSlotPrice }} DZT</td>
</tr>
<tr>
<th scope="row">Залог гостя в DZT</th>
<th scope="row">Guest stake in DZT</th>
<td>{{ params.becomeGuestStake }} DZT</td>
</tr>
<tr>
<th scope="row">Награда организатора за эпизод в DZTREP</th>
<th scope="row">Host reward for episode in DZTREP</th>
<td>{{ params.repTokensRewardHost }} DZTREP</td>
</tr>
<tr>
<th scope="row">Награда гостя за эпизод в DZTREP</th>
<th scope="row">Guest reward for episode in DZTREP</th>
<td>{{ params.repTokensRewardGuest }} DZTREP</td>
</tr>
<tr>
<th scope="row">Награда всех членов команды за эпизод в DZTREP</th>
<th scope="row">Reward of all team members for episode in DZTREP</th>
<td>{{ params.repTokensRewardTeamMembers }} DZTREP</td>
</tr>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion src/app/dashboard/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class HomeComponent implements OnInit {
},
(err) => {
this.loading = false;
this.messageService.add({severity:'error', summary:'Ошибка', detail:'Ошибка при получении параметров DAO'});
this.messageService.add({severity:'error', summary:'Error', detail:'Error on getting DAO params'});
console.error(err);
}
);
Expand Down
Loading

0 comments on commit ebe757d

Please sign in to comment.