Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
luna
Commits
45e08752
Commit
45e08752
authored
Feb 15, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改翻译
parent
03ec6bd4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
30 deletions
+24
-30
cn.json
i18n/cn.json
+2
-1
zh-CN.json
i18n/zh-CN.json
+2
-1
zh.json
i18n/zh.json
+2
-1
app.module.ts
src/app/app.module.ts
+2
-2
elements.component.ts
src/app/elements/elements.component.ts
+2
-2
fontDialog.html
src/app/elements/nav/fontDialog.html
+1
-1
nav.component.ts
src/app/elements/nav/nav.component.ts
+13
-22
No files found.
i18n/cn.json
View file @
45e08752
...
...
@@ -57,6 +57,7 @@
"rdp resolution"
:
"RDP分辨率"
,
"set rdp solution"
:
"设置分辨率"
,
"select a solution"
:
"选择分辨率"
,
"set font size"
:
"设置字体大小"
,
"set font"
:
"设置字体"
,
"font"
:
"字体"
,
"font size"
:
"字体大小"
}
i18n/zh-CN.json
View file @
45e08752
...
...
@@ -57,6 +57,7 @@
"rdp resolution"
:
"RDP分辨率"
,
"set rdp solution"
:
"设置分辨率"
,
"select a solution"
:
"选择分辨率"
,
"set font size"
:
"设置字体大小"
,
"set font"
:
"设置字体"
,
"font"
:
"字体"
,
"font size"
:
"字体大小"
}
i18n/zh.json
View file @
45e08752
...
...
@@ -57,6 +57,7 @@
"rdp resolution"
:
"RDP分辨率"
,
"set rdp solution"
:
"设置分辨率"
,
"select a solution"
:
"选择分辨率"
,
"set font size"
:
"设置字体大小"
,
"set font"
:
"设置字体"
,
"font"
:
"字体"
,
"font size"
:
"字体大小"
}
src/app/app.module.ts
View file @
45e08752
...
...
@@ -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
,
Font
Size
DialogComponent
}
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
,
Font
Size
DialogComponent
FontDialogComponent
],
bootstrap
:
[
AppComponent
],
providers
:
[
...
...
src/app/elements/elements.component.ts
View file @
45e08752
...
...
@@ -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
,
Font
Size
DialogComponent
}
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
,
Font
Size
DialogComponent
FontDialogComponent
];
src/app/elements/nav/font
Size
Dialog.html
→
src/app/elements/nav/fontDialog.html
View file @
45e08752
<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
"
>
...
...
src/app/elements/nav/nav.component.ts
View file @
45e08752
...
...
@@ -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
'SetFont
Size
'
:
{
case
'SetFont'
:
{
const
dialog
=
this
.
_dialog
.
open
(
Font
Size
DialogComponent
,
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'
:
'Font
Size
'
,
'click'
:
'SetFont
Size
'
,
'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
Font
Size
DialogComponent
implements
OnInit
{
export
class
FontDialogComponent
implements
OnInit
{
fontSize
:
string
;
solution
:
string
;
cacheKey
=
'fontSize'
;
constructor
(
public
dialogRef
:
MatDialogRef
<
Font
Size
DialogComponent
>
,
constructor
(
public
dialogRef
:
MatDialogRef
<
FontDialogComponent
>
,
@
Inject
(
MAT_DIALOG_DATA
)
public
data
:
any
)
{
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment