diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-17 10:30:59 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-08-17 10:30:59 +0200 |
commit | f29f487ef8892453a481628a6a3cff802dc89213 (patch) | |
tree | ba334a3a3ee5bfb9961683debb7f144e204c9872 /client/src/app/+admin | |
parent | 1bfc7b737975201645f43e58b485e864b3589bb3 (diff) | |
download | PeerTube-f29f487ef8892453a481628a6a3cff802dc89213.tar.gz PeerTube-f29f487ef8892453a481628a6a3cff802dc89213.tar.zst PeerTube-f29f487ef8892453a481628a6a3cff802dc89213.zip |
Use localize for page titles
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r-- | client/src/app/+admin/config/config.routes.ts | 2 | ||||
-rw-r--r-- | client/src/app/+admin/follows/follows.routes.ts | 4 | ||||
-rw-r--r-- | client/src/app/+admin/moderation/moderation.routes.ts | 8 | ||||
-rw-r--r-- | client/src/app/+admin/plugins/plugins.routes.ts | 6 | ||||
-rw-r--r-- | client/src/app/+admin/system/system.routes.ts | 8 | ||||
-rw-r--r-- | client/src/app/+admin/users/users.routes.ts | 6 |
6 files changed, 16 insertions, 18 deletions
diff --git a/client/src/app/+admin/config/config.routes.ts b/client/src/app/+admin/config/config.routes.ts index 7c1a1a166..1b76b29cc 100644 --- a/client/src/app/+admin/config/config.routes.ts +++ b/client/src/app/+admin/config/config.routes.ts | |||
@@ -23,7 +23,7 @@ export const ConfigRoutes: Routes = [ | |||
23 | component: EditCustomConfigComponent, | 23 | component: EditCustomConfigComponent, |
24 | data: { | 24 | data: { |
25 | meta: { | 25 | meta: { |
26 | title: 'Edit custom configuration' | 26 | title: $localize`Edit custom configuration` |
27 | } | 27 | } |
28 | } | 28 | } |
29 | } | 29 | } |
diff --git a/client/src/app/+admin/follows/follows.routes.ts b/client/src/app/+admin/follows/follows.routes.ts index 817074536..cd70daf77 100644 --- a/client/src/app/+admin/follows/follows.routes.ts +++ b/client/src/app/+admin/follows/follows.routes.ts | |||
@@ -25,7 +25,7 @@ export const FollowsRoutes: Routes = [ | |||
25 | component: FollowingListComponent, | 25 | component: FollowingListComponent, |
26 | data: { | 26 | data: { |
27 | meta: { | 27 | meta: { |
28 | title: 'Following list' | 28 | title: $localize`Following list` |
29 | } | 29 | } |
30 | } | 30 | } |
31 | }, | 31 | }, |
@@ -34,7 +34,7 @@ export const FollowsRoutes: Routes = [ | |||
34 | component: FollowersListComponent, | 34 | component: FollowersListComponent, |
35 | data: { | 35 | data: { |
36 | meta: { | 36 | meta: { |
37 | title: 'Followers list' | 37 | title: $localize`Followers list` |
38 | } | 38 | } |
39 | } | 39 | } |
40 | }, | 40 | }, |
diff --git a/client/src/app/+admin/moderation/moderation.routes.ts b/client/src/app/+admin/moderation/moderation.routes.ts index 8a31a54dc..b60dd5334 100644 --- a/client/src/app/+admin/moderation/moderation.routes.ts +++ b/client/src/app/+admin/moderation/moderation.routes.ts | |||
@@ -33,7 +33,7 @@ export const ModerationRoutes: Routes = [ | |||
33 | data: { | 33 | data: { |
34 | userRight: UserRight.MANAGE_ABUSES, | 34 | userRight: UserRight.MANAGE_ABUSES, |
35 | meta: { | 35 | meta: { |
36 | title: 'Reports' | 36 | title: $localize`Reports` |
37 | } | 37 | } |
38 | } | 38 | } |
39 | }, | 39 | }, |
@@ -64,7 +64,7 @@ export const ModerationRoutes: Routes = [ | |||
64 | data: { | 64 | data: { |
65 | userRight: UserRight.MANAGE_VIDEO_BLACKLIST, | 65 | userRight: UserRight.MANAGE_VIDEO_BLACKLIST, |
66 | meta: { | 66 | meta: { |
67 | title: 'Videos blocked' | 67 | title: $localize`Videos blocked` |
68 | } | 68 | } |
69 | } | 69 | } |
70 | }, | 70 | }, |
@@ -75,7 +75,7 @@ export const ModerationRoutes: Routes = [ | |||
75 | data: { | 75 | data: { |
76 | userRight: UserRight.MANAGE_ACCOUNTS_BLOCKLIST, | 76 | userRight: UserRight.MANAGE_ACCOUNTS_BLOCKLIST, |
77 | meta: { | 77 | meta: { |
78 | title: 'Muted accounts' | 78 | title: $localize`Muted accounts` |
79 | } | 79 | } |
80 | } | 80 | } |
81 | }, | 81 | }, |
@@ -86,7 +86,7 @@ export const ModerationRoutes: Routes = [ | |||
86 | data: { | 86 | data: { |
87 | userRight: UserRight.MANAGE_SERVERS_BLOCKLIST, | 87 | userRight: UserRight.MANAGE_SERVERS_BLOCKLIST, |
88 | meta: { | 88 | meta: { |
89 | title: 'Muted instances' | 89 | title: $localize`Muted instances` |
90 | } | 90 | } |
91 | } | 91 | } |
92 | } | 92 | } |
diff --git a/client/src/app/+admin/plugins/plugins.routes.ts b/client/src/app/+admin/plugins/plugins.routes.ts index 4bef27be3..4cf55dda2 100644 --- a/client/src/app/+admin/plugins/plugins.routes.ts +++ b/client/src/app/+admin/plugins/plugins.routes.ts | |||
@@ -25,7 +25,7 @@ export const PluginsRoutes: Routes = [ | |||
25 | component: PluginListInstalledComponent, | 25 | component: PluginListInstalledComponent, |
26 | data: { | 26 | data: { |
27 | meta: { | 27 | meta: { |
28 | title: 'List installed plugins' | 28 | title: $localize`List installed plugins` |
29 | } | 29 | } |
30 | } | 30 | } |
31 | }, | 31 | }, |
@@ -34,7 +34,7 @@ export const PluginsRoutes: Routes = [ | |||
34 | component: PluginSearchComponent, | 34 | component: PluginSearchComponent, |
35 | data: { | 35 | data: { |
36 | meta: { | 36 | meta: { |
37 | title: 'Search plugins' | 37 | title: $localize`Search plugins` |
38 | } | 38 | } |
39 | } | 39 | } |
40 | }, | 40 | }, |
@@ -43,7 +43,7 @@ export const PluginsRoutes: Routes = [ | |||
43 | component: PluginShowInstalledComponent, | 43 | component: PluginShowInstalledComponent, |
44 | data: { | 44 | data: { |
45 | meta: { | 45 | meta: { |
46 | title: 'Show plugin' | 46 | title: $localize`Show plugin` |
47 | } | 47 | } |
48 | } | 48 | } |
49 | } | 49 | } |
diff --git a/client/src/app/+admin/system/system.routes.ts b/client/src/app/+admin/system/system.routes.ts index 0e8d98519..72ab6705a 100644 --- a/client/src/app/+admin/system/system.routes.ts +++ b/client/src/app/+admin/system/system.routes.ts | |||
@@ -10,8 +10,6 @@ export const SystemRoutes: Routes = [ | |||
10 | { | 10 | { |
11 | path: 'system', | 11 | path: 'system', |
12 | component: SystemComponent, | 12 | component: SystemComponent, |
13 | data: { | ||
14 | }, | ||
15 | children: [ | 13 | children: [ |
16 | { | 14 | { |
17 | path: '', | 15 | path: '', |
@@ -25,7 +23,7 @@ export const SystemRoutes: Routes = [ | |||
25 | data: { | 23 | data: { |
26 | meta: { | 24 | meta: { |
27 | userRight: UserRight.MANAGE_JOBS, | 25 | userRight: UserRight.MANAGE_JOBS, |
28 | title: 'Jobs' | 26 | title: $localize`Jobs` |
29 | } | 27 | } |
30 | } | 28 | } |
31 | }, | 29 | }, |
@@ -36,7 +34,7 @@ export const SystemRoutes: Routes = [ | |||
36 | data: { | 34 | data: { |
37 | meta: { | 35 | meta: { |
38 | userRight: UserRight.MANAGE_LOGS, | 36 | userRight: UserRight.MANAGE_LOGS, |
39 | title: 'Logs' | 37 | title: $localize`Logs` |
40 | } | 38 | } |
41 | } | 39 | } |
42 | }, | 40 | }, |
@@ -47,7 +45,7 @@ export const SystemRoutes: Routes = [ | |||
47 | data: { | 45 | data: { |
48 | meta: { | 46 | meta: { |
49 | userRight: UserRight.MANAGE_DEBUG, | 47 | userRight: UserRight.MANAGE_DEBUG, |
50 | title: 'Debug' | 48 | title: $localize`Debug` |
51 | } | 49 | } |
52 | } | 50 | } |
53 | } | 51 | } |
diff --git a/client/src/app/+admin/users/users.routes.ts b/client/src/app/+admin/users/users.routes.ts index 6560f0260..5183498d6 100644 --- a/client/src/app/+admin/users/users.routes.ts +++ b/client/src/app/+admin/users/users.routes.ts | |||
@@ -24,7 +24,7 @@ export const UsersRoutes: Routes = [ | |||
24 | component: UserListComponent, | 24 | component: UserListComponent, |
25 | data: { | 25 | data: { |
26 | meta: { | 26 | meta: { |
27 | title: 'Users list' | 27 | title: $localize`Users list` |
28 | } | 28 | } |
29 | } | 29 | } |
30 | }, | 30 | }, |
@@ -33,7 +33,7 @@ export const UsersRoutes: Routes = [ | |||
33 | component: UserCreateComponent, | 33 | component: UserCreateComponent, |
34 | data: { | 34 | data: { |
35 | meta: { | 35 | meta: { |
36 | title: 'Create a user' | 36 | title: $localize`Create a user` |
37 | } | 37 | } |
38 | }, | 38 | }, |
39 | resolve: { | 39 | resolve: { |
@@ -45,7 +45,7 @@ export const UsersRoutes: Routes = [ | |||
45 | component: UserUpdateComponent, | 45 | component: UserUpdateComponent, |
46 | data: { | 46 | data: { |
47 | meta: { | 47 | meta: { |
48 | title: 'Update a user' | 48 | title: $localize`Update a user` |
49 | } | 49 | } |
50 | } | 50 | } |
51 | } | 51 | } |