From d9c164298b52bd195b089ef56fdc23140ada3947 Mon Sep 17 00:00:00 2001 From: Richard Park Date: Tue, 24 Dec 2019 18:14:16 +0900 Subject: [PATCH] translate is modified --- .../components/left-side.component.ts | 4 ++-- .../chat/create-chat.dialog.component.html | 23 ++++++++++++------- .../src/assets/i18n/en.json | 14 ++++++++--- .../src/assets/i18n/ko.json | 14 ++++++++--- .../components/tenant-search.component.html | 2 +- .../src/lib/ucap-ui-organization.module.ts | 4 +++- 6 files changed, 43 insertions(+), 18 deletions(-) diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.ts index cb78983e..633e848e 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.ts @@ -174,7 +174,7 @@ export class LeftSideComponent implements OnInit, OnDestroy { width: '600px', data: { type: UserSelectDialogType.NewChat, - title: type === 'TIMER' ? 'New Timer Chat' : 'New Chat' + title: type === 'TIMER' ? 'chat.newTimerChat' : 'chat.newChat' } }); @@ -203,7 +203,7 @@ export class LeftSideComponent implements OnInit, OnDestroy { width: '600px', data: { type: UserSelectDialogType.NewGroup, - title: 'New Group' + title: 'group.addNew' } }); diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/create-chat.dialog.component.html b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/create-chat.dialog.component.html index 6bdd98c4..7f87a15d 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/create-chat.dialog.component.html +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/create-chat.dialog.component.html @@ -1,19 +1,21 @@ - {{ data.title }} + {{ data.title | translate }}
{{ input.value?.length || 0 }}/20 @@ -45,7 +47,7 @@ stroke-width="1.5" stroke-linecap="butt" stroke-linejoin="round" - matTooltip="그룹" + matTooltip="{{ 'group.label' | translate }}" matTooltipPosition="after" > @@ -107,7 +109,7 @@
- 검색결과 + {{ 'common.searchResult' | translate }} ({{ searchUserInfos.length }}명) @@ -129,7 +131,9 @@ - device_hub @@ -150,7 +154,9 @@ - chat @@ -187,7 +193,8 @@
{{ selectedUserList.length }}명{{ selectedUserList.length }} + {{ 'common.howPersons' | translate }}
diff --git a/projects/ucap-webmessenger-app/src/assets/i18n/en.json b/projects/ucap-webmessenger-app/src/assets/i18n/en.json index 816a749f..5ed246ae 100644 --- a/projects/ucap-webmessenger-app/src/assets/i18n/en.json +++ b/projects/ucap-webmessenger-app/src/assets/i18n/en.json @@ -2,7 +2,9 @@ "common": { "search": "Search", "searchWord": "Search word", - "useOnlyForSpecialCharacter": "Can only use Special characters: {{0}}", + "searchResult": "Search result", + "useOnlyForSpecialCharacter": "Can only use Special characters: {{v}}", + "howPersons": "person(s)", "timezone": { "Africa/Abidjan": "Africa/Abidjan", "Africa/Accra": "Africa/Accra", @@ -606,7 +608,13 @@ "expandLess": "Collapse all groups", "name": "Group name" }, - "chat": {}, - "organization": {}, + "chat": { + "room": "Chat room", + "newTimerChat": "New Timer Chat", + "newChat": "New Chat" + }, + "organization": { + "chart": "Organization chart" + }, "message": {} } diff --git a/projects/ucap-webmessenger-app/src/assets/i18n/ko.json b/projects/ucap-webmessenger-app/src/assets/i18n/ko.json index d0e6f55c..fd8b1ae2 100644 --- a/projects/ucap-webmessenger-app/src/assets/i18n/ko.json +++ b/projects/ucap-webmessenger-app/src/assets/i18n/ko.json @@ -2,7 +2,9 @@ "common": { "search": "검색", "searchWord": "검색어", - "useOnlyForSpecialCharacter": "특수문자는 {{0}}만 사용할 수 있습니다.", + "searchResult": "검색 결과", + "useOnlyForSpecialCharacter": "특수문자는 {{v}}만 사용할 수 있습니다.", + "howPersons": "명", "timezone": { "Africa/Abidjan": "아프리카/아비 장", "Africa/Accra": "아프리카/아크라", @@ -606,7 +608,13 @@ "expandLess": "그룹 전체 닫기", "name": "그룹 이름" }, - "chat": {}, - "organization": {}, + "chat": { + "room": "대화방", + "newTimerChat": "새로운 타이머 대화", + "newChat": "새로운 대화" + }, + "organization": { + "chart": "조직도" + }, "message": {} } diff --git a/projects/ucap-webmessenger-ui-organization/src/lib/components/tenant-search.component.html b/projects/ucap-webmessenger-ui-organization/src/lib/components/tenant-search.component.html index c73d4782..37a1412e 100644 --- a/projects/ucap-webmessenger-ui-organization/src/lib/components/tenant-search.component.html +++ b/projects/ucap-webmessenger-ui-organization/src/lib/components/tenant-search.component.html @@ -15,7 +15,7 @@