aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-05 09:13:26 +0200
committerChocobozzz <me@florianbigard.com>2018-06-05 09:13:26 +0200
commit25acef90a85c1584880dec96aa402f896af8364a (patch)
tree5e62e68c2e32a94a289ebd77f0610ed5a085a142 /client/src/app/+admin
parent632f9815c6ab87fce3f3f7399cef9f7679fde908 (diff)
downloadPeerTube-25acef90a85c1584880dec96aa402f896af8364a.tar.gz
PeerTube-25acef90a85c1584880dec96aa402f896af8364a.tar.zst
PeerTube-25acef90a85c1584880dec96aa402f896af8364a.zip
Fix i18n in components
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts6
-rw-r--r--client/src/app/+admin/follows/following-add/following-add.component.ts2
-rw-r--r--client/src/app/+admin/follows/following-list/following-list.component.ts4
-rw-r--r--client/src/app/+admin/users/user-edit/user-create.component.ts2
-rw-r--r--client/src/app/+admin/users/user-edit/user-update.component.ts2
-rw-r--r--client/src/app/+admin/users/user-list/user-list.component.ts2
-rw-r--r--client/src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts2
7 files changed, 10 insertions, 10 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts
index 3ffcc6c31..73ff4b7bb 100644
--- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts
+++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts
@@ -161,14 +161,14 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit {
161 const customizationsText = customizations.join('/') 161 const customizationsText = customizations.join('/')
162 162
163 // FIXME: i18n service does not support string concatenation 163 // FIXME: i18n service does not support string concatenation
164 const message = this.i18n('You set custom {{ customizationsText }}. ', { customizationsText }) + 164 const message = this.i18n('You set custom {{customizationsText}}. ', { customizationsText }) +
165 this.i18n('This could lead to security issues or bugs if you do not understand it. ') + 165 this.i18n('This could lead to security issues or bugs if you do not understand it. ') +
166 this.i18n('Are you sure you want to update the configuration?') 166 this.i18n('Are you sure you want to update the configuration?')
167 const label = this.i18n( 167 const label = this.i18n(
168 'Please type "I understand the {{ customizationsText }} I set" to confirm.', 168 'Please type "I understand the {{customizationsText}} I set" to confirm.',
169 { customizationsText } 169 { customizationsText }
170 ) 170 )
171 const expectedInputValue = this.i18n('I understand the {{ customizationsText }} I set', { customizationsText }) 171 const expectedInputValue = this.i18n('I understand the {{customizationsText}} I set', { customizationsText })
172 172
173 const confirmRes = await this.confirmService.confirmWithInput(message, label, expectedInputValue) 173 const confirmRes = await this.confirmService.confirmWithInput(message, label, expectedInputValue)
174 if (confirmRes === false) return 174 if (confirmRes === false) return
diff --git a/client/src/app/+admin/follows/following-add/following-add.component.ts b/client/src/app/+admin/follows/following-add/following-add.component.ts
index f197c1fe9..bd9cc022b 100644
--- a/client/src/app/+admin/follows/following-add/following-add.component.ts
+++ b/client/src/app/+admin/follows/following-add/following-add.component.ts
@@ -36,7 +36,7 @@ export class FollowingAddComponent {
36 36
37 for (const host of hosts) { 37 for (const host of hosts) {
38 if (validateHost(host) === false) { 38 if (validateHost(host) === false) {
39 newHostsErrors.push(this.i18n('{{ host }} is not valid', { host })) 39 newHostsErrors.push(this.i18n('{{host}} is not valid', { host }))
40 } 40 }
41 } 41 }
42 42
diff --git a/client/src/app/+admin/follows/following-list/following-list.component.ts b/client/src/app/+admin/follows/following-list/following-list.component.ts
index 2fb818c90..06e341e68 100644
--- a/client/src/app/+admin/follows/following-list/following-list.component.ts
+++ b/client/src/app/+admin/follows/following-list/following-list.component.ts
@@ -33,7 +33,7 @@ export class FollowingListComponent extends RestTable implements OnInit {
33 33
34 async removeFollowing (follow: AccountFollow) { 34 async removeFollowing (follow: AccountFollow) {
35 const res = await this.confirmService.confirm( 35 const res = await this.confirmService.confirm(
36 this.i18n('Do you really want to unfollow {{ host }}?', { host: follow.following.host }), 36 this.i18n('Do you really want to unfollow {{host}}?', { host: follow.following.host }),
37 this.i18n('Unfollow') 37 this.i18n('Unfollow')
38 ) 38 )
39 if (res === false) return 39 if (res === false) return
@@ -42,7 +42,7 @@ export class FollowingListComponent extends RestTable implements OnInit {
42 () => { 42 () => {
43 this.notificationsService.success( 43 this.notificationsService.success(
44 this.i18n('Success'), 44 this.i18n('Success'),
45 this.i18n('You are not following {{ host }} anymore.', { host: follow.following.host }) 45 this.i18n('You are not following {{host}} anymore.', { host: follow.following.host })
46 ) 46 )
47 this.loadData() 47 this.loadData()
48 }, 48 },
diff --git a/client/src/app/+admin/users/user-edit/user-create.component.ts b/client/src/app/+admin/users/user-edit/user-create.component.ts
index b91ffa115..8478a7692 100644
--- a/client/src/app/+admin/users/user-edit/user-create.component.ts
+++ b/client/src/app/+admin/users/user-edit/user-create.component.ts
@@ -72,7 +72,7 @@ export class UserCreateComponent extends UserEdit implements OnInit {
72 () => { 72 () => {
73 this.notificationsService.success( 73 this.notificationsService.success(
74 this.i18n('Success'), 74 this.i18n('Success'),
75 this.i18n('User {{ username }} created.', { username: userCreate.username }) 75 this.i18n('User {{username}} created.', { username: userCreate.username })
76 ) 76 )
77 this.router.navigate([ '/admin/users/list' ]) 77 this.router.navigate([ '/admin/users/list' ])
78 }, 78 },
diff --git a/client/src/app/+admin/users/user-edit/user-update.component.ts b/client/src/app/+admin/users/user-edit/user-update.component.ts
index dca555706..5689aab2f 100644
--- a/client/src/app/+admin/users/user-edit/user-update.component.ts
+++ b/client/src/app/+admin/users/user-edit/user-update.component.ts
@@ -85,7 +85,7 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy {
85 () => { 85 () => {
86 this.notificationsService.success( 86 this.notificationsService.success(
87 this.i18n('Success'), 87 this.i18n('Success'),
88 this.i18n('User {{ username }} updated.', { username: this.username }) 88 this.i18n('User {{username}} updated.', { username: this.username })
89 ) 89 )
90 this.router.navigate([ '/admin/users/list' ]) 90 this.router.navigate([ '/admin/users/list' ])
91 }, 91 },
diff --git a/client/src/app/+admin/users/user-list/user-list.component.ts b/client/src/app/+admin/users/user-list/user-list.component.ts
index b644fcf71..ab25608c1 100644
--- a/client/src/app/+admin/users/user-list/user-list.component.ts
+++ b/client/src/app/+admin/users/user-list/user-list.component.ts
@@ -44,7 +44,7 @@ export class UserListComponent extends RestTable implements OnInit {
44 () => { 44 () => {
45 this.notificationsService.success( 45 this.notificationsService.success(
46 this.i18n('Success'), 46 this.i18n('Success'),
47 this.i18n('User {{ username }} deleted.', { username: user.username }) 47 this.i18n('User {{username}} deleted.', { username: user.username })
48 ) 48 )
49 this.loadData() 49 this.loadData()
50 }, 50 },
diff --git a/client/src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts b/client/src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts
index 1864e5f65..143ec8406 100644
--- a/client/src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts
+++ b/client/src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts
@@ -43,7 +43,7 @@ export class VideoBlacklistListComponent extends RestTable implements OnInit {
43 () => { 43 () => {
44 this.notificationsService.success( 44 this.notificationsService.success(
45 this.i18n('Success'), 45 this.i18n('Success'),
46 this.i18n('Video {{ name }} removed from the blacklist.', { name: entry.name }) 46 this.i18n('Video {{name}} removed from the blacklist.', { name: entry.name })
47 ) 47 )
48 this.loadData() 48 this.loadData()
49 }, 49 },