-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable translation in seasonal calender
- Loading branch information
1 parent
4cd93ea
commit 3911abc
Showing
20 changed files
with
53 additions
and
3,994 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...-tool/src/app/components/activities-editor-dialog/activities-editor-dialog.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
<div class="table-container"> | ||
<h2 class="dialog-title">Add Activity</h2> | ||
<h2 class="dialog-title">{{'Add Activity' | translate}}</h2> | ||
<div class="dialog-body"> | ||
<mat-form-field> | ||
<mat-label>Select Activity</mat-label> | ||
<mat-label>{{'Select Activity' | translate}}</mat-label> | ||
<mat-select class="selectField" [(ngModel)]="selectedActivity"> | ||
<mat-option *ngFor="let activity of activities" [value]="activity"> | ||
{{ activity }} | ||
</mat-option> | ||
</mat-select> | ||
</mat-form-field> | ||
<div *ngIf="selectedActivity === 'Other'"> | ||
<h4>Type other activity</h4> | ||
<h4>{{'Type other activity' | translate}}</h4> | ||
<input matInput class="inputField" placeholder="Custom Activity" [(ngModel)]="customActivity"> | ||
</div> | ||
</div> | ||
<div class="buttons"> | ||
<button mat-button class="add-button" (click)="onSave()" [mat-dialog-close]="selectedActivity || customActivity" [disabled]="!(selectedActivity || customActivity)">Add</button> | ||
<button mat-button class="cancel-button" (click)="onClose()">Cancel</button> | ||
<button mat-button class="add-button" (click)="onSave()" [mat-dialog-close]="selectedActivity || customActivity" [disabled]="!(selectedActivity || customActivity)">{{'Add' | translate}}</button> | ||
<button mat-button class="cancel-button" (click)="onClose()">{{'Cancel' | translate}}</button> | ||
</div> | ||
</div> | ||
|
6 changes: 3 additions & 3 deletions
6
...lendar-tool/src/app/components/crop-dialog-component/crop-dialog-component.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<div class="dialog-container"> | ||
<h2 class="dialog-container" >{{ data.name }} Extra information</h2> | ||
<h2 class="dialog-container" >{{ data.name }} {{'Extra information' | translate}}</h2> | ||
<p>{{"Please include any information required about farming this crop."}}</p> | ||
<input class="inputField" [(ngModel)]="editedExtraInformation" placeholder="Edit extra information" /> | ||
<div mat-dialog-actions> | ||
<button mat-button (click)="onSave()">Save</button> | ||
<button mat-button (click)="onClose()">Close</button> | ||
<button mat-button (click)="onSave()">{{'Save'|translate}}</button> | ||
<button mat-button (click)="onClose()">{{'Close'|translate}}</button> | ||
</div> | ||
</div> |
2 changes: 1 addition & 1 deletion
2
...l-calendar-tool/src/app/components/field-error-display/field-error-display.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div *ngIf="displayError" > | ||
<span class="form-control-feedback fix-error-icon"></span> | ||
<div class="error-msg"> | ||
{{ errorMsg }} | ||
{{ errorMsg | translate }} | ||
</div> | ||
</div> |
6 changes: 3 additions & 3 deletions
6
...calendar-tool/src/app/components/month-editor-dialog/crop-dialog-component.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<div class="dialog-container"> | ||
<h2 class="dialog-container" >Edit {{ data.month }} weather condition</h2> | ||
<h2 class="dialog-container" >{{ 'Edit' | translate }} {{ data.month }} {{'weather condition' | translate}}</h2> | ||
<p>{{"Enter the weather condition for this month"}}</p> | ||
<input class="inputField" [(ngModel)]="weather" placeholder="Edit extra information" /> | ||
<div mat-dialog-actions> | ||
<button mat-button (click)="onSave()">Save</button> | ||
<button mat-button (click)="onClose()">Close</button> | ||
<button mat-button (click)="onSave()">{{'Save' | translate}}</button> | ||
<button mat-button (click)="onClose()">{{'Close' | translate}}</button> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
apps/picsa-tools/seasonal-calendar-tool/src/app/pages/home/home.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import { CommonModule } from '@angular/common'; | ||
import { NgModule } from '@angular/core'; | ||
import { FormsModule } from '@angular/forms'; | ||
import { PicsaTranslateModule } from '@picsa/shared/modules/translate'; | ||
|
||
import { SeasonalCalendarToolComponentsModule } from '../../components/components.module'; | ||
import { HomeComponent } from './home.component'; | ||
import { HomeRoutingModule } from './home.routing.module'; | ||
|
||
@NgModule({ | ||
declarations: [HomeComponent], | ||
imports: [CommonModule, HomeRoutingModule, SeasonalCalendarToolComponentsModule,FormsModule ], | ||
imports: [CommonModule, HomeRoutingModule, SeasonalCalendarToolComponentsModule,FormsModule,PicsaTranslateModule ], | ||
}) | ||
export class HomeModule {} |
Oops, something went wrong.