From f29f487ef8892453a481628a6a3cff802dc89213 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 17 Aug 2020 10:30:59 +0200 Subject: Use localize for page titles --- client/src/app/+about/about-routing.module.ts | 6 ++--- .../src/app/+accounts/accounts-routing.module.ts | 6 ++--- client/src/app/+admin/config/config.routes.ts | 2 +- client/src/app/+admin/follows/follows.routes.ts | 4 ++-- .../src/app/+admin/moderation/moderation.routes.ts | 8 +++---- client/src/app/+admin/plugins/plugins.routes.ts | 6 ++--- client/src/app/+admin/system/system.routes.ts | 8 +++---- client/src/app/+admin/users/users.routes.ts | 6 ++--- client/src/app/+login/login-routing.module.ts | 2 +- .../my-account-video-channels-routing.module.ts | 6 ++--- .../app/+my-account/my-account-routing.module.ts | 28 +++++++++++----------- .../page-not-found-routing.module.ts | 2 +- .../reset-password-routing.module.ts | 2 +- client/src/app/+search/search-routing.module.ts | 2 +- .../+signup/+register/register-routing.module.ts | 2 +- .../verify-account-routing.module.ts | 4 ++-- .../video-channels-routing.module.ts | 6 ++--- client/src/app/+videos/videos-routing.module.ts | 16 ++++++------- 18 files changed, 57 insertions(+), 59 deletions(-) (limited to 'client/src/app') diff --git a/client/src/app/+about/about-routing.module.ts b/client/src/app/+about/about-routing.module.ts index 91ccb846f..828b2884c 100644 --- a/client/src/app/+about/about-routing.module.ts +++ b/client/src/app/+about/about-routing.module.ts @@ -23,7 +23,7 @@ const aboutRoutes: Routes = [ component: AboutInstanceComponent, data: { meta: { - title: 'About this instance' + title: $localize`About this instance` } }, resolve: { @@ -35,7 +35,7 @@ const aboutRoutes: Routes = [ component: AboutPeertubeComponent, data: { meta: { - title: 'About PeerTube' + title: $localize`About PeerTube` } } }, @@ -44,7 +44,7 @@ const aboutRoutes: Routes = [ component: AboutFollowsComponent, data: { meta: { - title: 'About follows' + title: $localize`About follows` } } } diff --git a/client/src/app/+accounts/accounts-routing.module.ts b/client/src/app/+accounts/accounts-routing.module.ts index 45b24eb55..d2ca784b0 100644 --- a/client/src/app/+accounts/accounts-routing.module.ts +++ b/client/src/app/+accounts/accounts-routing.module.ts @@ -26,7 +26,7 @@ const accountsRoutes: Routes = [ component: AccountVideosComponent, data: { meta: { - title: 'Account videos' + title: $localize`Account videos` }, reuse: { enabled: true, @@ -39,7 +39,7 @@ const accountsRoutes: Routes = [ component: AccountVideoChannelsComponent, data: { meta: { - title: 'Account video channels' + title: $localize`Account video channels` } } }, @@ -48,7 +48,7 @@ const accountsRoutes: Routes = [ component: AccountAboutComponent, data: { meta: { - title: 'About account' + title: $localize`About account` } } } 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 = [ component: EditCustomConfigComponent, data: { meta: { - title: 'Edit custom configuration' + title: $localize`Edit custom configuration` } } } 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 = [ component: FollowingListComponent, data: { meta: { - title: 'Following list' + title: $localize`Following list` } } }, @@ -34,7 +34,7 @@ export const FollowsRoutes: Routes = [ component: FollowersListComponent, data: { meta: { - title: 'Followers list' + title: $localize`Followers list` } } }, 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 = [ data: { userRight: UserRight.MANAGE_ABUSES, meta: { - title: 'Reports' + title: $localize`Reports` } } }, @@ -64,7 +64,7 @@ export const ModerationRoutes: Routes = [ data: { userRight: UserRight.MANAGE_VIDEO_BLACKLIST, meta: { - title: 'Videos blocked' + title: $localize`Videos blocked` } } }, @@ -75,7 +75,7 @@ export const ModerationRoutes: Routes = [ data: { userRight: UserRight.MANAGE_ACCOUNTS_BLOCKLIST, meta: { - title: 'Muted accounts' + title: $localize`Muted accounts` } } }, @@ -86,7 +86,7 @@ export const ModerationRoutes: Routes = [ data: { userRight: UserRight.MANAGE_SERVERS_BLOCKLIST, meta: { - title: 'Muted instances' + title: $localize`Muted instances` } } } 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 = [ component: PluginListInstalledComponent, data: { meta: { - title: 'List installed plugins' + title: $localize`List installed plugins` } } }, @@ -34,7 +34,7 @@ export const PluginsRoutes: Routes = [ component: PluginSearchComponent, data: { meta: { - title: 'Search plugins' + title: $localize`Search plugins` } } }, @@ -43,7 +43,7 @@ export const PluginsRoutes: Routes = [ component: PluginShowInstalledComponent, data: { meta: { - title: 'Show plugin' + title: $localize`Show plugin` } } } 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 = [ { path: 'system', component: SystemComponent, - data: { - }, children: [ { path: '', @@ -25,7 +23,7 @@ export const SystemRoutes: Routes = [ data: { meta: { userRight: UserRight.MANAGE_JOBS, - title: 'Jobs' + title: $localize`Jobs` } } }, @@ -36,7 +34,7 @@ export const SystemRoutes: Routes = [ data: { meta: { userRight: UserRight.MANAGE_LOGS, - title: 'Logs' + title: $localize`Logs` } } }, @@ -47,7 +45,7 @@ export const SystemRoutes: Routes = [ data: { meta: { userRight: UserRight.MANAGE_DEBUG, - title: 'Debug' + title: $localize`Debug` } } } 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 = [ component: UserListComponent, data: { meta: { - title: 'Users list' + title: $localize`Users list` } } }, @@ -33,7 +33,7 @@ export const UsersRoutes: Routes = [ component: UserCreateComponent, data: { meta: { - title: 'Create a user' + title: $localize`Create a user` } }, resolve: { @@ -45,7 +45,7 @@ export const UsersRoutes: Routes = [ component: UserUpdateComponent, data: { meta: { - title: 'Update a user' + title: $localize`Update a user` } } } diff --git a/client/src/app/+login/login-routing.module.ts b/client/src/app/+login/login-routing.module.ts index aad55eac8..258ddc5c1 100644 --- a/client/src/app/+login/login-routing.module.ts +++ b/client/src/app/+login/login-routing.module.ts @@ -11,7 +11,7 @@ const loginRoutes: Routes = [ canActivate: [ MetaGuard ], data: { meta: { - title: 'Login' + title: $localize`Login` } }, resolve: { diff --git a/client/src/app/+my-account/+my-account-video-channels/my-account-video-channels-routing.module.ts b/client/src/app/+my-account/+my-account-video-channels/my-account-video-channels-routing.module.ts index 94037e18f..3aa3e360f 100644 --- a/client/src/app/+my-account/+my-account-video-channels/my-account-video-channels-routing.module.ts +++ b/client/src/app/+my-account/+my-account-video-channels/my-account-video-channels-routing.module.ts @@ -10,7 +10,7 @@ const myAccountVideoChannelsRoutes: Routes = [ component: MyAccountVideoChannelsComponent, data: { meta: { - title: 'Account video channels' + title: $localize`Account video channels` } } }, @@ -19,7 +19,7 @@ const myAccountVideoChannelsRoutes: Routes = [ component: MyAccountVideoChannelCreateComponent, data: { meta: { - title: 'Create new video channel' + title: $localize`Create new video channel` } } }, @@ -28,7 +28,7 @@ const myAccountVideoChannelsRoutes: Routes = [ component: MyAccountVideoChannelUpdateComponent, data: { meta: { - title: 'Update video channel' + title: $localize`Update video channel` } } } diff --git a/client/src/app/+my-account/my-account-routing.module.ts b/client/src/app/+my-account/my-account-routing.module.ts index 48237e133..0bcb38ef5 100644 --- a/client/src/app/+my-account/my-account-routing.module.ts +++ b/client/src/app/+my-account/my-account-routing.module.ts @@ -34,7 +34,7 @@ const myAccountRoutes: Routes = [ component: MyAccountSettingsComponent, data: { meta: { - title: 'Account settings' + title: $localize`Account settings` } } }, @@ -52,7 +52,7 @@ const myAccountRoutes: Routes = [ component: MyAccountVideoPlaylistsComponent, data: { meta: { - title: 'Account playlists' + title: $localize`Account playlists` } } }, @@ -61,7 +61,7 @@ const myAccountRoutes: Routes = [ component: MyAccountVideoPlaylistCreateComponent, data: { meta: { - title: 'Create new playlist' + title: $localize`Create new playlist` } } }, @@ -70,7 +70,7 @@ const myAccountRoutes: Routes = [ component: MyAccountVideoPlaylistElementsComponent, data: { meta: { - title: 'Playlist elements' + title: $localize`Playlist elements` } } }, @@ -79,7 +79,7 @@ const myAccountRoutes: Routes = [ component: MyAccountVideoPlaylistUpdateComponent, data: { meta: { - title: 'Update playlist' + title: $localize`Update playlist` } } }, @@ -89,7 +89,7 @@ const myAccountRoutes: Routes = [ component: MyAccountVideosComponent, data: { meta: { - title: 'Account videos' + title: $localize`Account videos` }, reuse: { enabled: true, @@ -102,7 +102,7 @@ const myAccountRoutes: Routes = [ component: MyAccountVideoImportsComponent, data: { meta: { - title: 'Account video imports' + title: $localize`Account video imports` } } }, @@ -111,7 +111,7 @@ const myAccountRoutes: Routes = [ component: MyAccountSubscriptionsComponent, data: { meta: { - title: 'Account subscriptions' + title: $localize`Account subscriptions` } } }, @@ -120,7 +120,7 @@ const myAccountRoutes: Routes = [ component: MyAccountOwnershipComponent, data: { meta: { - title: 'Ownership changes' + title: $localize`Ownership changes` } } }, @@ -129,7 +129,7 @@ const myAccountRoutes: Routes = [ component: MyAccountBlocklistComponent, data: { meta: { - title: 'Muted accounts' + title: $localize`Muted accounts` } } }, @@ -138,7 +138,7 @@ const myAccountRoutes: Routes = [ component: MyAccountServerBlocklistComponent, data: { meta: { - title: 'Muted servers' + title: $localize`Muted servers` } } }, @@ -147,7 +147,7 @@ const myAccountRoutes: Routes = [ component: MyAccountHistoryComponent, data: { meta: { - title: 'Videos history' + title: $localize`Videos history` }, reuse: { enabled: true, @@ -160,7 +160,7 @@ const myAccountRoutes: Routes = [ component: MyAccountNotificationsComponent, data: { meta: { - title: 'Notifications' + title: $localize`Notifications` } } }, @@ -169,7 +169,7 @@ const myAccountRoutes: Routes = [ component: MyAccountAbusesListComponent, data: { meta: { - title: 'My abuse reports' + title: $localize`My abuse reports` } } } diff --git a/client/src/app/+page-not-found/page-not-found-routing.module.ts b/client/src/app/+page-not-found/page-not-found-routing.module.ts index e3407099d..11399fbfd 100644 --- a/client/src/app/+page-not-found/page-not-found-routing.module.ts +++ b/client/src/app/+page-not-found/page-not-found-routing.module.ts @@ -10,7 +10,7 @@ const pageNotFoundRoutes: Routes = [ canActivate: [ MetaGuard ], data: { meta: { - title: 'Not found' + title: $localize`Not found` } } } diff --git a/client/src/app/+reset-password/reset-password-routing.module.ts b/client/src/app/+reset-password/reset-password-routing.module.ts index 31bc08709..7f1ba2f68 100644 --- a/client/src/app/+reset-password/reset-password-routing.module.ts +++ b/client/src/app/+reset-password/reset-password-routing.module.ts @@ -10,7 +10,7 @@ const resetPasswordRoutes: Routes = [ canActivate: [ MetaGuard ], data: { meta: { - title: 'Reset password' + title: `Reset password` } } } diff --git a/client/src/app/+search/search-routing.module.ts b/client/src/app/+search/search-routing.module.ts index 14a0d0a13..e5d7d1ede 100644 --- a/client/src/app/+search/search-routing.module.ts +++ b/client/src/app/+search/search-routing.module.ts @@ -12,7 +12,7 @@ const searchRoutes: Routes = [ canActivate: [ MetaGuard ], data: { meta: { - title: 'Search' + title: $localize`Search` } } }, diff --git a/client/src/app/+signup/+register/register-routing.module.ts b/client/src/app/+signup/+register/register-routing.module.ts index 0deed8a9b..61a2fa42d 100644 --- a/client/src/app/+signup/+register/register-routing.module.ts +++ b/client/src/app/+signup/+register/register-routing.module.ts @@ -11,7 +11,7 @@ const registerRoutes: Routes = [ canActivate: [ MetaGuard, UnloggedGuard ], data: { meta: { - title: 'Register' + title: $localize`Register` } }, resolve: { diff --git a/client/src/app/+signup/+verify-account/verify-account-routing.module.ts b/client/src/app/+signup/+verify-account/verify-account-routing.module.ts index 16d5fe0d0..c9ac67e4c 100644 --- a/client/src/app/+signup/+verify-account/verify-account-routing.module.ts +++ b/client/src/app/+signup/+verify-account/verify-account-routing.module.ts @@ -14,7 +14,7 @@ const verifyAccountRoutes: Routes = [ component: VerifyAccountEmailComponent, data: { meta: { - title: 'Verify account email' + title: $localize`Verify account email` } } }, @@ -23,7 +23,7 @@ const verifyAccountRoutes: Routes = [ component: VerifyAccountAskSendEmailComponent, data: { meta: { - title: 'Verify account ask send email' + title: $localize`Verify account ask send email` } } } diff --git a/client/src/app/+video-channels/video-channels-routing.module.ts b/client/src/app/+video-channels/video-channels-routing.module.ts index e79e6a680..f8c32f14e 100644 --- a/client/src/app/+video-channels/video-channels-routing.module.ts +++ b/client/src/app/+video-channels/video-channels-routing.module.ts @@ -22,7 +22,7 @@ const videoChannelsRoutes: Routes = [ component: VideoChannelVideosComponent, data: { meta: { - title: 'Video channel videos' + title: $localize`Video channel videos` }, reuse: { enabled: true, @@ -35,7 +35,7 @@ const videoChannelsRoutes: Routes = [ component: VideoChannelPlaylistsComponent, data: { meta: { - title: 'Video channel playlists' + title: $localize`Video channel playlists` } } }, @@ -44,7 +44,7 @@ const videoChannelsRoutes: Routes = [ component: VideoChannelAboutComponent, data: { meta: { - title: 'About video channel' + title: $localize`About video channel` } } } diff --git a/client/src/app/+videos/videos-routing.module.ts b/client/src/app/+videos/videos-routing.module.ts index e0e877fc6..cf5f0b2e8 100644 --- a/client/src/app/+videos/videos-routing.module.ts +++ b/client/src/app/+videos/videos-routing.module.ts @@ -20,7 +20,7 @@ const videosRoutes: Routes = [ component: VideoOverviewComponent, data: { meta: { - title: 'Discover videos' + title: $localize`Discover videos` } } }, @@ -29,7 +29,7 @@ const videosRoutes: Routes = [ component: VideoTrendingComponent, data: { meta: { - title: 'Trending videos' + title: $localize`Trending videos` }, reuse: { enabled: true, @@ -42,7 +42,7 @@ const videosRoutes: Routes = [ component: VideoMostLikedComponent, data: { meta: { - title: 'Most liked videos' + title: $localize`Most liked videos` }, reuse: { enabled: true, @@ -55,7 +55,7 @@ const videosRoutes: Routes = [ component: VideoRecentlyAddedComponent, data: { meta: { - title: 'Recently added videos' + title: $localize`Recently added videos` }, reuse: { enabled: true, @@ -68,7 +68,7 @@ const videosRoutes: Routes = [ component: VideoUserSubscriptionsComponent, data: { meta: { - title: 'Subscriptions' + title: $localize`Subscriptions` }, reuse: { enabled: true, @@ -81,7 +81,7 @@ const videosRoutes: Routes = [ component: VideoLocalComponent, data: { meta: { - title: 'Local videos' + title: $localize`Local videos` }, reuse: { enabled: true, @@ -94,7 +94,7 @@ const videosRoutes: Routes = [ loadChildren: () => import('@app/+videos/+video-edit/video-add.module').then(m => m.VideoAddModule), data: { meta: { - title: 'Upload a video' + title: $localize`Upload a video` } } }, @@ -103,7 +103,7 @@ const videosRoutes: Routes = [ loadChildren: () => import('@app/+videos/+video-edit/video-update.module').then(m => m.VideoUpdateModule), data: { meta: { - title: 'Edit a video' + title: $localize`Edit a video` } } }, -- cgit v1.2.3