1
0
Fork 0

Use localize for page titles

This commit is contained in:
Chocobozzz 2020-08-17 10:30:59 +02:00
parent 1bfc7b7379
commit f29f487ef8
No known key found for this signature in database
GPG key ID: 583A612D890159BE
18 changed files with 57 additions and 59 deletions

View file

@ -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`
}
}
}

View file

@ -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`
}
}
}

View file

@ -23,7 +23,7 @@ export const ConfigRoutes: Routes = [
component: EditCustomConfigComponent,
data: {
meta: {
title: 'Edit custom configuration'
title: $localize`Edit custom configuration`
}
}
}

View file

@ -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`
}
}
},

View file

@ -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`
}
}
}

View file

@ -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`
}
}
}

View file

@ -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`
}
}
}

View file

@ -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`
}
}
}

View file

@ -11,7 +11,7 @@ const loginRoutes: Routes = [
canActivate: [ MetaGuard ],
data: {
meta: {
title: 'Login'
title: $localize`Login`
}
},
resolve: {

View file

@ -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`
}
}
}

View file

@ -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`
}
}
}

View file

@ -10,7 +10,7 @@ const pageNotFoundRoutes: Routes = [
canActivate: [ MetaGuard ],
data: {
meta: {
title: 'Not found'
title: $localize`Not found`
}
}
}

View file

@ -10,7 +10,7 @@ const resetPasswordRoutes: Routes = [
canActivate: [ MetaGuard ],
data: {
meta: {
title: 'Reset password'
title: `Reset password`
}
}
}

View file

@ -12,7 +12,7 @@ const searchRoutes: Routes = [
canActivate: [ MetaGuard ],
data: {
meta: {
title: 'Search'
title: $localize`Search`
}
}
},

View file

@ -11,7 +11,7 @@ const registerRoutes: Routes = [
canActivate: [ MetaGuard, UnloggedGuard ],
data: {
meta: {
title: 'Register'
title: $localize`Register`
}
},
resolve: {

View file

@ -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`
}
}
}

View file

@ -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`
}
}
}

View file

@ -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`
}
}
},