Translate app to English

This commit is contained in:
2023-01-12 14:47:38 +01:00
parent 44ca2401e0
commit 2bd858501d
8 changed files with 32 additions and 37 deletions

View File

@@ -76,7 +76,7 @@ export class LoginPageComponent implements OnInit {
if (e.status === 401) { if (e.status === 401) {
this.ngZone$.run(() => { this.ngZone$.run(() => {
this.notifications$.add({ this.notifications$.add({
text: "Użytkownik nie istnieje w bazie danych aplikacji DiunaBI.", text: "User not exists in DiunaBI database.",
btn: "OK", btn: "OK",
duration: 15000 duration: 15000
}); });
@@ -84,7 +84,7 @@ export class LoginPageComponent implements OnInit {
} else { } else {
this.ngZone$.run(() => { this.ngZone$.run(() => {
this.notifications$.add({ this.notifications$.add({
text: "Błąd połączenia z serwerem. Skontaktuj się z administratorem.", text: "DiunaBI server not responsed.",
btn: "OK", btn: "OK",
duration: 15000 duration: 15000
}); });

View File

@@ -3,7 +3,7 @@
</div> </div>
<div class="flip-container" *ngIf="device$.flipPhone"> <div class="flip-container" *ngIf="device$.flipPhone">
<div class="flip-msg"> <div class="flip-msg">
Obróć telefon.<br> Flip the device.<br>
<mat-icon>screen_rotation</mat-icon> <mat-icon>screen_rotation</mat-icon>
</div> </div>
</div> </div>
@@ -31,11 +31,7 @@
</a> </a>
<a mat-list-item routerLink="./layers"> <a mat-list-item routerLink="./layers">
<mat-icon class="menu-icon">table</mat-icon> <mat-icon class="menu-icon">table</mat-icon>
Zbiory danych Layers
</a>
<a mat-list-item routerLink=".">
<mat-icon class="menu-icon">insights</mat-icon>
Analiza MPK
</a> </a>
<mat-divider></mat-divider> <mat-divider></mat-divider>
<a mat-list-item (click)="reloadApp()"> <a mat-list-item (click)="reloadApp()">
@@ -48,7 +44,7 @@
<mat-sidenav-content> <mat-sidenav-content>
<router-outlet></router-outlet> <router-outlet></router-outlet>
<div class="footer"> <div class="footer">
<span>&copy;&nbsp;Bim-IT Michał Zieliński {{currentDate | date: 'yyyy'}}</span> <span>&copy;&nbsp;DiunaBI {{currentDate | date: 'yyyy'}}</span>
</div> </div>
</mat-sidenav-content> </mat-sidenav-content>
</mat-sidenav-container> </mat-sidenav-container>

View File

@@ -1 +0,0 @@
{{ _device.toString()}}

View File

@@ -2,29 +2,29 @@
<form [formGroup]="form" novalidate> <form [formGroup]="form" novalidate>
<mat-card appearance="outlined"> <mat-card appearance="outlined">
<mat-toolbar color="secondary"> <mat-toolbar color="secondary">
Szczegóły warstwy danych Layer details
<span class="fill-to-right"></span> <span class="fill-to-right"></span>
<button mat-button (click)="export()">Eksportuj do Google</button> <button mat-button (click)="export()">Export to Google</button>
</mat-toolbar> </mat-toolbar>
<mat-card-content> <mat-card-content>
<mat-grid-list cols="2" rowHeight="90px"> <mat-grid-list cols="2" rowHeight="90px">
<mat-grid-tile> <mat-grid-tile>
<mat-form-field class="detail-input"> <mat-form-field class="detail-input">
<mat-label>Nazwa</mat-label> <mat-label>Name</mat-label>
<input matInput formControlName="name"> <input matInput formControlName="name">
</mat-form-field> </mat-form-field>
</mat-grid-tile> </mat-grid-tile>
<mat-grid-tile> <mat-grid-tile>
<mat-form-field class="detail-input"> <mat-form-field class="detail-input">
<mat-label>Źródło</mat-label> <mat-label>Source</mat-label>
<input matInput formControlName="source"> <input matInput formControlName="source">
</mat-form-field> </mat-form-field>
</mat-grid-tile> </mat-grid-tile>
<mat-grid-tile *ngIf="document"> <mat-grid-tile *ngIf="document">
<mat-form-field class="detail-input"> <mat-form-field class="detail-input">
<mat-label>Utworzono</mat-label> <mat-label>Created</mat-label>
<input matInput disabled [value]="document.created"> <input matInput disabled [value]="document.created">
</mat-form-field> </mat-form-field>
</mat-grid-tile> </mat-grid-tile>
@@ -33,17 +33,17 @@
<mat-table #table [dataSource]="dataSource" [trackBy]="trackByUid" matSort class="animate"> <mat-table #table [dataSource]="dataSource" [trackBy]="trackByUid" matSort class="animate">
<ng-container matColumnDef="code"> <ng-container matColumnDef="code">
<mat-header-cell *matHeaderCellDef mat-sort-header>MPK</mat-header-cell> <mat-header-cell *matHeaderCellDef mat-sort-header>Code</mat-header-cell>
<mat-cell *matCellDef="let item">{{item.code}}</mat-cell> <mat-cell *matCellDef="let item">{{item.code}}</mat-cell>
</ng-container> </ng-container>
<ng-container matColumnDef="value"> <ng-container matColumnDef="value">
<mat-header-cell *matHeaderCellDef mat-sort-header>Wartość</mat-header-cell> <mat-header-cell *matHeaderCellDef mat-sort-header>Value</mat-header-cell>
<mat-cell *matCellDef="let item">{{item.value | number:'1.2-2'}}</mat-cell> <mat-cell *matCellDef="let item">{{item.value | number:'1.2-2'}}</mat-cell>
</ng-container> </ng-container>
<ng-container matColumnDef="desc1"> <ng-container matColumnDef="desc1">
<mat-header-cell *matHeaderCellDef mat-sort-header>Konto</mat-header-cell> <mat-header-cell *matHeaderCellDef mat-sort-header>Account</mat-header-cell>
<mat-cell *matCellDef="let item">{{item.desc1}}</mat-cell> <mat-cell *matCellDef="let item">{{item.desc1}}</mat-cell>
</ng-container> </ng-container>

View File

@@ -54,11 +54,11 @@ export class LayerDetailComponent implements OnInit {
async export() { async export() {
if (await Layer.exportToGoogleSheet(this.document.id || "", this.http$)) { if (await Layer.exportToGoogleSheet(this.document.id || "", this.http$)) {
this.notifications$.add({ this.notifications$.add({
text: "Plik został zapisany na dysku Google.", text: "The file was saved on Google Drive",
}); });
} else { } else {
this.notifications$.add({ this.notifications$.add({
text: "Zapis się nie udał.", text: "Save failed!",
}); });
} }
} }

View File

@@ -2,30 +2,30 @@
<form [formGroup]="form" (ngSubmit)="save()" novalidate> <form [formGroup]="form" (ngSubmit)="save()" novalidate>
<mat-card appearance="outlined"> <mat-card appearance="outlined">
<mat-toolbar color="secondary"> <mat-toolbar color="secondary">
Edycja warstwy danych New layer
<span class="fill-to-right"></span> <span class="fill-to-right"></span>
<button mat-button type="submit" [disabled]="form.invalid">Zapisz</button> <button mat-button type="submit" [disabled]="form.invalid">Save</button>
<button mat-button type="button" routerLink="../..">Anuluj</button> <button mat-button type="button" routerLink="../..">Cancel</button>
</mat-toolbar> </mat-toolbar>
<mat-card-content> <mat-card-content>
<mat-grid-list cols="2" rowHeight="90px"> <mat-grid-list cols="2" rowHeight="90px">
<mat-grid-tile> <mat-grid-tile>
<mat-form-field class="detail-input"> <mat-form-field class="detail-input">
<mat-label>Nazwa</mat-label> <mat-label>Name</mat-label>
<input matInput formControlName="name"> <input matInput formControlName="name">
<mat-error *ngIf="form.controls['name'].touched && form.controls['name'].invalid"> <mat-error *ngIf="form.controls['name'].touched && form.controls['name'].invalid">
Pole obowiązkowe Required
</mat-error> </mat-error>
</mat-form-field> </mat-form-field>
</mat-grid-tile> </mat-grid-tile>
<mat-grid-tile> <mat-grid-tile>
<mat-form-field class="detail-input"> <mat-form-field class="detail-input">
<mat-select placeholder="Źródło" formControlName="source"> <mat-select placeholder="Source" formControlName="source">
<mat-option value="GoogleSheet">GoogleSheet</mat-option> <mat-option value="GoogleSheet">GoogleSheet</mat-option>
</mat-select> </mat-select>
<mat-error *ngIf="form.controls['source'].touched && form.controls['source'].invalid"> <mat-error *ngIf="form.controls['source'].touched && form.controls['source'].invalid">
Pole obowiązkowe Required
</mat-error> </mat-error>
</mat-form-field> </mat-form-field>
</mat-grid-tile> </mat-grid-tile>
@@ -54,17 +54,17 @@
<mat-table #table [dataSource]="dataSource" [trackBy]="trackByUid" matSort class="animate"> <mat-table #table [dataSource]="dataSource" [trackBy]="trackByUid" matSort class="animate">
<ng-container matColumnDef="code"> <ng-container matColumnDef="code">
<mat-header-cell *matHeaderCellDef mat-sort-header>MPK</mat-header-cell> <mat-header-cell *matHeaderCellDef mat-sort-header>Code</mat-header-cell>
<mat-cell *matCellDef="let item">{{item.code}}</mat-cell> <mat-cell *matCellDef="let item">{{item.code}}</mat-cell>
</ng-container> </ng-container>
<ng-container matColumnDef="desc1"> <ng-container matColumnDef="desc1">
<mat-header-cell *matHeaderCellDef mat-sort-header>Konto</mat-header-cell> <mat-header-cell *matHeaderCellDef mat-sort-header>Account</mat-header-cell>
<mat-cell *matCellDef="let item">{{item.desc1}}</mat-cell> <mat-cell *matCellDef="let item">{{item.desc1}}</mat-cell>
</ng-container> </ng-container>
<ng-container matColumnDef="value"> <ng-container matColumnDef="value">
<mat-header-cell *matHeaderCellDef mat-sort-header>Wartość</mat-header-cell> <mat-header-cell *matHeaderCellDef mat-sort-header>Value</mat-header-cell>
<mat-cell *matCellDef="let item">{{item.value | number:'1.2-2'}}</mat-cell> <mat-cell *matCellDef="let item">{{item.value | number:'1.2-2'}}</mat-cell>
</ng-container> </ng-container>

View File

@@ -3,12 +3,12 @@
<mat-grid-list cols="10" rowHeight="60"> <mat-grid-list cols="10" rowHeight="60">
<mat-grid-tile> <mat-grid-tile>
<button mat-button routerLink="Edit/new"> <button mat-button routerLink="Edit/new">
Dodaj Add
</button> </button>
</mat-grid-tile> </mat-grid-tile>
<mat-grid-tile [colspan]="8"> <mat-grid-tile [colspan]="8">
<mat-form-field class="searchListInput"> <mat-form-field class="searchListInput">
<mat-label>Filtruj</mat-label> <mat-label>Filter</mat-label>
<input matInput (keyup)="applyFilter($event)"> <input matInput (keyup)="applyFilter($event)">
</mat-form-field> </mat-form-field>
</mat-grid-tile> </mat-grid-tile>
@@ -18,17 +18,17 @@
<mat-table #table [dataSource]="dataSource" [trackBy]="trackByUid" matSort class="animate"> <mat-table #table [dataSource]="dataSource" [trackBy]="trackByUid" matSort class="animate">
<ng-container matColumnDef="number"> <ng-container matColumnDef="number">
<mat-header-cell *matHeaderCellDef mat-sort-header>Numer</mat-header-cell> <mat-header-cell *matHeaderCellDef mat-sort-header>Number</mat-header-cell>
<mat-cell *matCellDef="let item">{{item.number}}</mat-cell> <mat-cell *matCellDef="let item">{{item.number}}</mat-cell>
</ng-container> </ng-container>
<ng-container matColumnDef="name"> <ng-container matColumnDef="name">
<mat-header-cell *matHeaderCellDef mat-sort-header>Nazwa</mat-header-cell> <mat-header-cell *matHeaderCellDef mat-sort-header>Name</mat-header-cell>
<mat-cell *matCellDef="let item">{{item.name}}</mat-cell> <mat-cell *matCellDef="let item">{{item.name}}</mat-cell>
</ng-container> </ng-container>
<ng-container matColumnDef="source"> <ng-container matColumnDef="source">
<mat-header-cell *matHeaderCellDef mat-sort-header>Źródło</mat-header-cell> <mat-header-cell *matHeaderCellDef mat-sort-header>Source</mat-header-cell>
<mat-cell *matCellDef="let item">{{item.source}}</mat-cell> <mat-cell *matCellDef="let item">{{item.source}}</mat-cell>
</ng-container> </ng-container>

View File

@@ -6,8 +6,8 @@ export const environment = {
appEnvironment: "local", appEnvironment: "local",
production: false, production: false,
api: { api: {
url: "http://localhost:5400/api" //url: "http://localhost:5400/api"
//url: "https://diunabi.bim-it.pl/api" url: "https://diunabi.bim-it.pl/api"
}, },
google: { google: {
clientId: "107631825312-bkfe438ehr9k9ecb2h76g802tj6advma.apps.googleusercontent.com" clientId: "107631825312-bkfe438ehr9k9ecb2h76g802tj6advma.apps.googleusercontent.com"