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
b90bf886
Unverified
Commit
b90bf886
authored
Mar 01, 2018
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: some trans
parent
656b4a93
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
cn.json
i18n/cn.json
+7
-1
dialog.html
src/app/ControlPage/cleftbar/dialog.html
+5
-5
No files found.
i18n/cn.json
View file @
b90bf886
...
...
@@ -40,5 +40,11 @@
"user"
:
"用户"
,
"user group"
:
"用户组"
,
"login logs"
:
"登陆日志"
,
"language"
:
"语言选择"
"language"
:
"语言选择"
,
"found"
:
"发现"
,
"users "
:
"用户"
,
"choose a user"
:
"选择一个用户"
,
"please choose a user"
:
"请选择一个用户"
,
"cancel"
:
"取消"
,
"confirm"
:
"确认"
}
src/app/ControlPage/cleftbar/dialog.html
View file @
b90bf886
<h1
mat-dialog-title
>
Found {{data.users.length}} Users
</h1>
<h1
mat-dialog-title
>
{{"Found"|trans}} {{data.users.length}} {{"Users "|trans}}
</h1>
<mat-form-field>
<mat-select
[(
value
)]="
selected
"
[
compareWith
]="
compareFn
"
[
formControl
]="
UserSelectControl
"
placeholder=
"
Choose a User
"
required
>
placeholder=
"
{{'Choose a User'|trans}}
"
required
>
<mat-option
*
ngFor=
"let u of data.users"
value=
"{{u.id}}"
>
{{u.username}}
</mat-option>
</mat-select>
<mat-error
*
ngIf=
"UserSelectControl.hasError('required')"
>
Please choose a User
</mat-error>
<mat-error
*
ngIf=
"UserSelectControl.hasError('required')"
>
{{"Please choose a User"|trans}}
</mat-error>
</mat-form-field>
<div
style=
"float: right"
>
<button
mat-raised-button
(
click
)="
onNoClick
()"
>
Cancel
</button>
<button
mat-raised-button
color=
"primary"
[
mat-dialog-close
]="
selected
"
cdkFocusInitial
>
Confirm
</button>
<button
mat-raised-button
(
click
)="
onNoClick
()"
>
{{"Cancel"|trans}}
</button>
<button
mat-raised-button
color=
"primary"
[
mat-dialog-close
]="
selected
"
cdkFocusInitial
>
{{"Confirm"|trans}}
</button>
</div>
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