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

View File

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

View File

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

View File

@@ -2,29 +2,29 @@
<form [formGroup]="form" novalidate>
<mat-card appearance="outlined">
<mat-toolbar color="secondary">
Szczegóły warstwy danych
Layer details
<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-card-content>
<mat-grid-list cols="2" rowHeight="90px">
<mat-grid-tile>
<mat-form-field class="detail-input">
<mat-label>Nazwa</mat-label>
<mat-label>Name</mat-label>
<input matInput formControlName="name">
</mat-form-field>
</mat-grid-tile>
<mat-grid-tile>
<mat-form-field class="detail-input">
<mat-label>Źródło</mat-label>
<mat-label>Source</mat-label>
<input matInput formControlName="source">
</mat-form-field>
</mat-grid-tile>
<mat-grid-tile *ngIf="document">
<mat-form-field class="detail-input">
<mat-label>Utworzono</mat-label>
<mat-label>Created</mat-label>
<input matInput disabled [value]="document.created">
</mat-form-field>
</mat-grid-tile>
@@ -33,17 +33,17 @@
<mat-table #table [dataSource]="dataSource" [trackBy]="trackByUid" matSort class="animate">
<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>
</ng-container>
<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>
</ng-container>
<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>
</ng-container>

View File

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

View File

@@ -2,30 +2,30 @@
<form [formGroup]="form" (ngSubmit)="save()" novalidate>
<mat-card appearance="outlined">
<mat-toolbar color="secondary">
Edycja warstwy danych
New layer
<span class="fill-to-right"></span>
<button mat-button type="submit" [disabled]="form.invalid">Zapisz</button>
<button mat-button type="button" routerLink="../..">Anuluj</button>
<button mat-button type="submit" [disabled]="form.invalid">Save</button>
<button mat-button type="button" routerLink="../..">Cancel</button>
</mat-toolbar>
<mat-card-content>
<mat-grid-list cols="2" rowHeight="90px">
<mat-grid-tile>
<mat-form-field class="detail-input">
<mat-label>Nazwa</mat-label>
<mat-label>Name</mat-label>
<input matInput formControlName="name">
<mat-error *ngIf="form.controls['name'].touched && form.controls['name'].invalid">
Pole obowiązkowe
Required
</mat-error>
</mat-form-field>
</mat-grid-tile>
<mat-grid-tile>
<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-select>
<mat-error *ngIf="form.controls['source'].touched && form.controls['source'].invalid">
Pole obowiązkowe
Required
</mat-error>
</mat-form-field>
</mat-grid-tile>
@@ -54,17 +54,17 @@
<mat-table #table [dataSource]="dataSource" [trackBy]="trackByUid" matSort class="animate">
<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>
</ng-container>
<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>
</ng-container>
<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>
</ng-container>

View File

@@ -3,12 +3,12 @@
<mat-grid-list cols="10" rowHeight="60">
<mat-grid-tile>
<button mat-button routerLink="Edit/new">
Dodaj
Add
</button>
</mat-grid-tile>
<mat-grid-tile [colspan]="8">
<mat-form-field class="searchListInput">
<mat-label>Filtruj</mat-label>
<mat-label>Filter</mat-label>
<input matInput (keyup)="applyFilter($event)">
</mat-form-field>
</mat-grid-tile>
@@ -18,17 +18,17 @@
<mat-table #table [dataSource]="dataSource" [trackBy]="trackByUid" matSort class="animate">
<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>
</ng-container>
<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>
</ng-container>
<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>
</ng-container>

View File

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