Commit 45e08752 authored by ibuler's avatar ibuler

[Update] 修改翻译

parent 03ec6bd4
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
"rdp resolution": "RDP分辨率", "rdp resolution": "RDP分辨率",
"set rdp solution": "设置分辨率", "set rdp solution": "设置分辨率",
"select a solution": "选择分辨率", "select a solution": "选择分辨率",
"set font size": "设置字体大小", "set font": "设置字体",
"font": "字体",
"font size": "字体大小" "font size": "字体大小"
} }
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
"rdp resolution": "RDP分辨率", "rdp resolution": "RDP分辨率",
"set rdp solution": "设置分辨率", "set rdp solution": "设置分辨率",
"select a solution": "选择分辨率", "select a solution": "选择分辨率",
"set font size": "设置字体大小", "set font": "设置字体",
"font": "字体",
"font size": "字体大小" "font size": "字体大小"
} }
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
"rdp resolution": "RDP分辨率", "rdp resolution": "RDP分辨率",
"set rdp solution": "设置分辨率", "set rdp solution": "设置分辨率",
"select a solution": "选择分辨率", "select a solution": "选择分辨率",
"set font size": "设置字体大小", "set font": "设置字体",
"font": "字体",
"font size": "字体大小" "font size": "字体大小"
} }
...@@ -26,7 +26,7 @@ import {MAT_LABEL_GLOBAL_OPTIONS} from '@angular/material'; ...@@ -26,7 +26,7 @@ import {MAT_LABEL_GLOBAL_OPTIONS} from '@angular/material';
import {Pipes} from './pipes/pipes'; import {Pipes} from './pipes/pipes';
import {PagesComponents} from './pages/pages.component'; import {PagesComponents} from './pages/pages.component';
import {ElementComponents} from './elements/elements.component'; import {ElementComponents} from './elements/elements.component';
import {ChangLanWarningDialogComponent, RDPSolutionDialogComponent, FontSizeDialogComponent} from './elements/nav/nav.component'; import {ChangLanWarningDialogComponent, RDPSolutionDialogComponent, FontDialogComponent} from './elements/nav/nav.component';
import {DialogService, ElementDialogAlertComponent} from './elements/dialog/dialog.service'; import {DialogService, ElementDialogAlertComponent} from './elements/dialog/dialog.service';
import {PluginModules} from './plugins/plugins'; import {PluginModules} from './plugins/plugins';
import {TestPageComponent} from './test-page/test-page.component'; import {TestPageComponent} from './test-page/test-page.component';
...@@ -56,7 +56,7 @@ import {SftpComponent} from './elements/sftp/sftp.component'; ...@@ -56,7 +56,7 @@ import {SftpComponent} from './elements/sftp/sftp.component';
ElementDialogAlertComponent, ElementDialogAlertComponent,
ChangLanWarningDialogComponent, ChangLanWarningDialogComponent,
RDPSolutionDialogComponent, RDPSolutionDialogComponent,
FontSizeDialogComponent FontDialogComponent
], ],
bootstrap: [AppComponent], bootstrap: [AppComponent],
providers: [ providers: [
......
...@@ -14,7 +14,7 @@ import {ElementDialogAlertComponent} from './dialog/dialog.service'; ...@@ -14,7 +14,7 @@ import {ElementDialogAlertComponent} from './dialog/dialog.service';
import {ElementGuacamoleComponent} from './guacamole/guacamole.component'; import {ElementGuacamoleComponent} from './guacamole/guacamole.component';
import {ElementSshTermComponent} from './ssh-term/ssh-term.component'; import {ElementSshTermComponent} from './ssh-term/ssh-term.component';
import {AssetTreeDialogComponent, ElementAssetTreeComponent} from './asset-tree/asset-tree.component'; import {AssetTreeDialogComponent, ElementAssetTreeComponent} from './asset-tree/asset-tree.component';
import {RDPSolutionDialogComponent, FontSizeDialogComponent} from './nav/nav.component'; import {RDPSolutionDialogComponent, FontDialogComponent} from './nav/nav.component';
export const ElementComponents = [ export const ElementComponents = [
ElementLeftbarComponent, ElementLeftbarComponent,
...@@ -34,5 +34,5 @@ export const ElementComponents = [ ...@@ -34,5 +34,5 @@ export const ElementComponents = [
ElementSshTermComponent, ElementSshTermComponent,
AssetTreeDialogComponent, AssetTreeDialogComponent,
RDPSolutionDialogComponent, RDPSolutionDialogComponent,
FontSizeDialogComponent FontDialogComponent
]; ];
<h1 mat-dialog-title>{{"Set font size"|trans}}</h1> <h1 mat-dialog-title>{{"Set font"|trans}}</h1>
<mat-form-field> <mat-form-field>
<input matInput placeholder='{{"Font size"|trans}}' name="fontSize" type="number" min="5" max="60" [(ngModel)]="fontSize"> <input matInput placeholder='{{"Font size"|trans}}' name="fontSize" type="number" min="5" max="60" [(ngModel)]="fontSize">
......
...@@ -110,13 +110,7 @@ export class ElementNavComponent implements OnInit { ...@@ -110,13 +110,7 @@ export class ElementNavComponent implements OnInit {
RDPSolutionDialogComponent, RDPSolutionDialogComponent,
{ {
height: '200px', height: '200px',
width: '300px', width: '300px'
data: {
title: 'Warning',
note: 'The page will be reload, can you acceptable?',
cancel: 'Cancel',
confirm: 'Confirm',
},
}); });
dialog.afterClosed().subscribe(result => { dialog.afterClosed().subscribe(result => {
if (result) { if (result) {
...@@ -125,18 +119,12 @@ export class ElementNavComponent implements OnInit { ...@@ -125,18 +119,12 @@ export class ElementNavComponent implements OnInit {
}); });
break; break;
} }
case 'SetFontSize': { case 'SetFont': {
const dialog = this._dialog.open( const dialog = this._dialog.open(
FontSizeDialogComponent, FontDialogComponent,
{ {
height: '200px', height: '200px',
width: '300px', width: '300px'
data: {
title: 'Warning',
note: 'The page will be reload, can you acceptable?',
cancel: 'Cancel',
confirm: 'Confirm',
},
}); });
dialog.afterClosed().subscribe(result => { dialog.afterClosed().subscribe(result => {
if (result) { if (result) {
...@@ -255,9 +243,9 @@ export class ElementNavComponent implements OnInit { ...@@ -255,9 +243,9 @@ export class ElementNavComponent implements OnInit {
'name': 'RDP Resolution' 'name': 'RDP Resolution'
}, },
{ {
'id': 'FontSize', 'id': 'Font',
'click': 'SetFontSize', 'click': 'SetFont',
'name': 'Font Size' 'name': 'Font'
}, },
{ {
'id': 'SplitVertical', 'id': 'SplitVertical',
...@@ -369,6 +357,7 @@ export class ElementNavComponent implements OnInit { ...@@ -369,6 +357,7 @@ export class ElementNavComponent implements OnInit {
@Component({ @Component({
selector: 'elements-nav-dialog', selector: 'elements-nav-dialog',
templateUrl: 'changeLanWarning.html', templateUrl: 'changeLanWarning.html',
styles: ['.mat-form-field { width: 100%; }']
}) })
export class ChangLanWarningDialogComponent implements OnInit { export class ChangLanWarningDialogComponent implements OnInit {
...@@ -387,6 +376,7 @@ export class ChangLanWarningDialogComponent implements OnInit { ...@@ -387,6 +376,7 @@ export class ChangLanWarningDialogComponent implements OnInit {
@Component({ @Component({
selector: 'elements-rdp-solution-dialog', selector: 'elements-rdp-solution-dialog',
templateUrl: 'rdpSolutionDialog.html', templateUrl: 'rdpSolutionDialog.html',
styles: ['.mat-form-field { width: 100%; }']
}) })
export class RDPSolutionDialogComponent implements OnInit { export class RDPSolutionDialogComponent implements OnInit {
solutions = ['Auto', '1024x768', '1366x768', '1400x900']; solutions = ['Auto', '1024x768', '1366x768', '1400x900'];
...@@ -417,14 +407,15 @@ export class RDPSolutionDialogComponent implements OnInit { ...@@ -417,14 +407,15 @@ export class RDPSolutionDialogComponent implements OnInit {
@Component({ @Component({
selector: 'elements-font-size-dialog', selector: 'elements-font-size-dialog',
templateUrl: 'fontSizeDialog.html', templateUrl: 'fontDialog.html',
styles: ['.mat-form-field { width: 100%; }']
}) })
export class FontSizeDialogComponent implements OnInit { export class FontDialogComponent implements OnInit {
fontSize: string; fontSize: string;
solution: string; solution: string;
cacheKey = 'fontSize'; cacheKey = 'fontSize';
constructor(public dialogRef: MatDialogRef<FontSizeDialogComponent>, constructor(public dialogRef: MatDialogRef<FontDialogComponent>,
@Inject(MAT_DIALOG_DATA) public data: any) { @Inject(MAT_DIALOG_DATA) public data: any) {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment