]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Use localize for page titles
authorChocobozzz <me@florianbigard.com>
Mon, 17 Aug 2020 08:30:59 +0000 (10:30 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 17 Aug 2020 08:30:59 +0000 (10:30 +0200)
18 files changed:
client/src/app/+about/about-routing.module.ts
client/src/app/+accounts/accounts-routing.module.ts
client/src/app/+admin/config/config.routes.ts
client/src/app/+admin/follows/follows.routes.ts
client/src/app/+admin/moderation/moderation.routes.ts
client/src/app/+admin/plugins/plugins.routes.ts
client/src/app/+admin/system/system.routes.ts
client/src/app/+admin/users/users.routes.ts
client/src/app/+login/login-routing.module.ts
client/src/app/+my-account/+my-account-video-channels/my-account-video-channels-routing.module.ts
client/src/app/+my-account/my-account-routing.module.ts
client/src/app/+page-not-found/page-not-found-routing.module.ts
client/src/app/+reset-password/reset-password-routing.module.ts
client/src/app/+search/search-routing.module.ts
client/src/app/+signup/+register/register-routing.module.ts
client/src/app/+signup/+verify-account/verify-account-routing.module.ts
client/src/app/+video-channels/video-channels-routing.module.ts
client/src/app/+videos/videos-routing.module.ts

index 91ccb846f0d87f4416972db5c9675604b1d5fa85..828b2884cddfa687b73341326e6a75e5d3ca198a 100644 (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`
           }
         }
       }
index 45b24eb55e49ee43da1bc3740253476c670d7d2c..d2ca784b0378df441d0bbbadb4e753c3f34744d8 100644 (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`
           }
         }
       }
index 7c1a1a16633704c2cb090eeb7524856553230a82..1b76b29cc14acc086225640ea28c95f7de7138f2 100644 (file)
@@ -23,7 +23,7 @@ export const ConfigRoutes: Routes = [
         component: EditCustomConfigComponent,
         data: {
           meta: {
-            title: 'Edit custom configuration'
+            title: $localize`Edit custom configuration`
           }
         }
       }
index 81707453615e70937b7517c8d5b45e55d5273101..cd70daf77dc439dfa740c45dd8561c3b9df6d124 100644 (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`
           }
         }
       },
index 8a31a54dc7cac216dc28d3df485bcab60f5e3508..b60dd5334ef3f018ed9665c0a939e309a7b5a782 100644 (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`
           }
         }
       }
index 4bef27be332c412afab45e52deb9fbdc70afeb27..4cf55dda2bc703a01f6bb70eab85bf6a06779f70 100644 (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`
           }
         }
       }
index 0e8d985193552aeb9273d48cea19592dd12e1c80..72ab6705ad0703af827432d73dc7e9fd013b405b 100644 (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`
           }
         }
       }
index 6560f0260a3fc91a07268a73f900d9aed0374a39..5183498d6d8cb75bd65a6dc55c9b17adad41aaa4 100644 (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`
           }
         }
       }
index aad55eac80c716e6d905ceda16ae47b4d0fa6d38..258ddc5c1711df6a868e47ca3262245297441bac 100644 (file)
@@ -11,7 +11,7 @@ const loginRoutes: Routes = [
     canActivate: [ MetaGuard ],
     data: {
       meta: {
-        title: 'Login'
+        title: $localize`Login`
       }
     },
     resolve: {
index 94037e18f99ce0c55c6deb02be7336b62c9b9ce9..3aa3e360f7895f24c09afb3c12c5ad9a19e0e0bf 100644 (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`
       }
     }
   }
index 48237e1336d2b4fff234ec19c090a6c8b898d1d5..0bcb38ef56dc2321a73161e210b91ee5b0695e58 100644 (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`
           }
         }
       }
index e3407099da25c5ed4eed753915f3febffd0ccd70..11399fbfd4d7145024135bff504edef2ebbd7e04 100644 (file)
@@ -10,7 +10,7 @@ const pageNotFoundRoutes: Routes = [
     canActivate: [ MetaGuard ],
     data: {
       meta: {
-        title: 'Not found'
+        title: $localize`Not found`
       }
     }
   }
index 31bc08709b4b20195a8fef9f5c053cef50234939..7f1ba2f68668fb670efe08d1fb460680b933d453 100644 (file)
@@ -10,7 +10,7 @@ const resetPasswordRoutes: Routes = [
     canActivate: [ MetaGuard ],
     data: {
       meta: {
-        title: 'Reset password'
+        title: `Reset password`
       }
     }
   }
index 14a0d0a13d6e828038a75a1ee2354ef00694b8d6..e5d7d1ede978e8f6001be57755267897dcfd4ee0 100644 (file)
@@ -12,7 +12,7 @@ const searchRoutes: Routes = [
     canActivate: [ MetaGuard ],
     data: {
       meta: {
-        title: 'Search'
+        title: $localize`Search`
       }
     }
   },
index 0deed8a9b67ff268f3aadd0c109dfd4a7c0df20d..61a2fa42d80564e330d74ed5eef8a78ccf4f67a7 100644 (file)
@@ -11,7 +11,7 @@ const registerRoutes: Routes = [
     canActivate: [ MetaGuard, UnloggedGuard ],
     data: {
       meta: {
-        title: 'Register'
+        title: $localize`Register`
       }
     },
     resolve: {
index 16d5fe0d0a1a33db2139a39f79da0c5ddd300fd3..c9ac67e4c5c7e18a8264661cf64c4d424df16141 100644 (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`
           }
         }
       }
index e79e6a6804cfa6300f2c7b9e12d9fc3e3d2af64b..f8c32f14ee8206e6fdd09adc3b9bef29eb0c8bbf 100644 (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`
           }
         }
       }
index e0e877fc673eba0c3781ccfa6f7ba9e01af5d5f7..cf5f0b2e80d0f538d5cfe8258f97fe28a5a062b2 100644 (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`
           }
         }
       },