Commit 45e08752 authored by ibuler's avatar ibuler

[Update] 修改翻译

parent 03ec6bd4
......@@ -57,6 +57,7 @@
"rdp resolution": "RDP分辨率",
"set rdp solution": "设置分辨率",
"select a solution": "选择分辨率",
"set font size": "设置字体大小",
"set font": "设置字体",
"font": "字体",
"font size": "字体大小"
}
......@@ -57,6 +57,7 @@
"rdp resolution": "RDP分辨率",
"set rdp solution": "设置分辨率",
"select a solution": "选择分辨率",
"set font size": "设置字体大小",
"set font": "设置字体",
"font": "字体",
"font size": "字体大小"
}
......@@ -57,6 +57,7 @@
"rdp resolution": "RDP分辨率",
"set rdp solution": "设置分辨率",
"select a solution": "选择分辨率",
"set font size": "设置字体大小",
"set font": "设置字体",
"font": "字体",
"font size": "字体大小"
}
......@@ -26,7 +26,7 @@ import {MAT_LABEL_GLOBAL_OPTIONS} from '@angular/material';
import {Pipes} from './pipes/pipes';
import {PagesComponents} from './pages/pages.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 {PluginModules} from './plugins/plugins';
import {TestPageComponent} from './test-page/test-page.component';
......@@ -56,7 +56,7 @@ import {SftpComponent} from './elements/sftp/sftp.component';
ElementDialogAlertComponent,
ChangLanWarningDialogComponent,
RDPSolutionDialogComponent,
FontSizeDialogComponent
FontDialogComponent
],
bootstrap: [AppComponent],
providers: [
......
......@@ -14,7 +14,7 @@ import {ElementDialogAlertComponent} from './dialog/dialog.service';
import {ElementGuacamoleComponent} from './guacamole/guacamole.component';
import {ElementSshTermComponent} from './ssh-term/ssh-term.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 = [
ElementLeftbarComponent,
......@@ -34,5 +34,5 @@ export const ElementComponents = [
ElementSshTermComponent,
AssetTreeDialogComponent,
RDPSolutionDialogComponent,
FontSizeDialogComponent
FontDialogComponent
];
<h1 mat-dialog-title>{{"Set font size"|trans}}</h1>
<h1 mat-dialog-title>{{"Set font"|trans}}</h1>
<mat-form-field>
<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 {
RDPSolutionDialogComponent,
{
height: '200px',
width: '300px',
data: {
title: 'Warning',
note: 'The page will be reload, can you acceptable?',
cancel: 'Cancel',
confirm: 'Confirm',
},
width: '300px'
});
dialog.afterClosed().subscribe(result => {
if (result) {
......@@ -125,18 +119,12 @@ export class ElementNavComponent implements OnInit {
});
break;
}
case 'SetFontSize': {
case 'SetFont': {
const dialog = this._dialog.open(
FontSizeDialogComponent,
FontDialogComponent,
{
height: '200px',
width: '300px',
data: {
title: 'Warning',
note: 'The page will be reload, can you acceptable?',
cancel: 'Cancel',
confirm: 'Confirm',
},
width: '300px'
});
dialog.afterClosed().subscribe(result => {
if (result) {
......@@ -255,9 +243,9 @@ export class ElementNavComponent implements OnInit {
'name': 'RDP Resolution'
},
{
'id': 'FontSize',
'click': 'SetFontSize',
'name': 'Font Size'
'id': 'Font',
'click': 'SetFont',
'name': 'Font'
},
{
'id': 'SplitVertical',
......@@ -369,6 +357,7 @@ export class ElementNavComponent implements OnInit {
@Component({
selector: 'elements-nav-dialog',
templateUrl: 'changeLanWarning.html',
styles: ['.mat-form-field { width: 100%; }']
})
export class ChangLanWarningDialogComponent implements OnInit {
......@@ -387,6 +376,7 @@ export class ChangLanWarningDialogComponent implements OnInit {
@Component({
selector: 'elements-rdp-solution-dialog',
templateUrl: 'rdpSolutionDialog.html',
styles: ['.mat-form-field { width: 100%; }']
})
export class RDPSolutionDialogComponent implements OnInit {
solutions = ['Auto', '1024x768', '1366x768', '1400x900'];
......@@ -417,14 +407,15 @@ export class RDPSolutionDialogComponent implements OnInit {
@Component({
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;
solution: string;
cacheKey = 'fontSize';
constructor(public dialogRef: MatDialogRef<FontSizeDialogComponent>,
constructor(public dialogRef: MatDialogRef<FontDialogComponent>,
@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