mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 01:39:37 +02:00
Add missing $localize
This commit is contained in:
parent
a1a6515524
commit
0967ee953c
4 changed files with 49 additions and 48 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
<h4 i18n class="title">General information</h4>
|
||||
|
||||
<div class="text-content">You can edit this information later</div>
|
||||
<div i18n class="text-content">You can edit this information later</div>
|
||||
|
||||
<form [formGroup]="form">
|
||||
<div class="form-group">
|
||||
|
|
|
@ -47,59 +47,59 @@ export class CommunityBasedConfigComponent implements OnInit {
|
|||
registrationOptions: SelectOptionsItem<RegistrationType>[] = [
|
||||
{
|
||||
id: 'open',
|
||||
label: 'Open',
|
||||
description: 'Anyone can register and use the platform'
|
||||
label: $localize`Open`,
|
||||
description: $localize`Anyone can register and use the platform`
|
||||
},
|
||||
|
||||
{
|
||||
id: 'approval',
|
||||
label: 'Requires approval',
|
||||
description: 'Anyone can register, but a moderator must approve their account before they can use the platform'
|
||||
label: $localize`Requires approval`,
|
||||
description: $localize`Anyone can register, but a moderator must approve their account before they can use the platform`
|
||||
},
|
||||
{
|
||||
id: 'closed',
|
||||
label: 'Closed',
|
||||
description: 'Only an administrator can create users on the platform'
|
||||
label: $localize`Closed`,
|
||||
description: $localize`Only an administrator can create users on the platform`
|
||||
}
|
||||
]
|
||||
|
||||
importOptions: SelectOptionsItem<EnabledDisabled>[] = [
|
||||
{
|
||||
id: 'enabled',
|
||||
label: 'Enabled',
|
||||
label: $localize`Enabled`,
|
||||
description:
|
||||
'Your community can import videos from remote platforms (YouTube, Vimeo...) and automatically synchronize remote channels'
|
||||
},
|
||||
{
|
||||
id: 'disabled',
|
||||
label: 'Disabled',
|
||||
description: 'Your community cannot import or synchronize content from remote platforms'
|
||||
label: $localize`Disabled`,
|
||||
description: $localize`Your community cannot import or synchronize content from remote platforms`
|
||||
}
|
||||
]
|
||||
|
||||
liveOptions: SelectOptionsItem<EnabledDisabled>[] = [
|
||||
{
|
||||
id: 'enabled',
|
||||
label: 'Yes',
|
||||
description: 'Your community can live stream on the platform (this requires extra moderation work)'
|
||||
label: $localize`Yes`,
|
||||
description: $localize`Your community can live stream on the platform (this requires extra moderation work)`
|
||||
},
|
||||
{
|
||||
id: 'disabled',
|
||||
label: 'No',
|
||||
description: 'Your community is not permitted to run live streams on the platform'
|
||||
label: $localize`No`,
|
||||
description: $localize`Your community is not permitted to run live streams on the platform`
|
||||
}
|
||||
]
|
||||
|
||||
globalSearchOptions: SelectOptionsItem<string>[] = [
|
||||
{
|
||||
id: 'enabled',
|
||||
label: 'Enable global search',
|
||||
description: 'Use https://sepiasearch.org as default search engine to search for content across all known peertube platforms'
|
||||
label: $localize`Enable global search`,
|
||||
description: $localize`Use https://sepiasearch.org as default search engine to search for content across all known peertube platforms`
|
||||
},
|
||||
{
|
||||
id: 'disabled',
|
||||
label: 'Disable global search',
|
||||
description: 'Use your platform search engine which only displays local content'
|
||||
label: $localize`Disable global search`,
|
||||
description: $localize`Use your platform search engine which only displays local content`
|
||||
}
|
||||
]
|
||||
|
||||
|
|
|
@ -45,62 +45,62 @@ export class InstitutionalConfigComponent implements OnInit {
|
|||
p2pOptions: SelectOptionsItem<EnabledDisabled>[] = [
|
||||
{
|
||||
id: 'enabled',
|
||||
label: 'Enabled',
|
||||
description: 'Enable P2P streaming by default for anonymous and new users'
|
||||
label: $localize`Enabled`,
|
||||
description: $localize`Enable P2P streaming by default for anonymous and new users`
|
||||
},
|
||||
{
|
||||
id: 'disabled',
|
||||
label: 'Disabled',
|
||||
description: 'Disable P2P streaming'
|
||||
label: $localize`Disabled`,
|
||||
description: $localize`Disable P2P streaming`
|
||||
}
|
||||
]
|
||||
|
||||
transcriptionOptions: SelectOptionsItem<EnabledDisabled>[] = [
|
||||
{
|
||||
id: 'enabled',
|
||||
label: 'Enabled',
|
||||
description: 'Enable automatic transcription of videos to automatically generate subtitles'
|
||||
label: $localize`Enabled`,
|
||||
description: $localize`Enable automatic transcription of videos to automatically generate subtitles`
|
||||
},
|
||||
{
|
||||
id: 'disabled',
|
||||
label: 'Disabled',
|
||||
description: 'Disable automatic transcription of videos'
|
||||
label: $localize`Disabled`,
|
||||
description: $localize`Disable automatic transcription of videos`
|
||||
}
|
||||
]
|
||||
|
||||
keepOriginalVideoOptions: SelectOptionsItem<EnabledDisabled>[] = [
|
||||
{
|
||||
id: 'enabled',
|
||||
label: 'Yes',
|
||||
description: 'Keep the original video file on the server'
|
||||
label: $localize`Yes`,
|
||||
description: $localize`Keep the original video file on the server`
|
||||
},
|
||||
{
|
||||
id: 'disabled',
|
||||
label: 'No',
|
||||
description: 'Delete the original video file after processing'
|
||||
label: $localize`No`,
|
||||
description: $localize`Delete the original video file after processing`
|
||||
}
|
||||
]
|
||||
|
||||
authenticationOptions: SelectOptionsItem<AuthType>[] = [
|
||||
{
|
||||
id: 'local',
|
||||
label: 'Disabled',
|
||||
description: 'Your platform will manage user registration and login internally'
|
||||
label: $localize`Disabled`,
|
||||
description: $localize`Your platform will manage user registration and login internally`
|
||||
},
|
||||
{
|
||||
id: 'ldap',
|
||||
label: 'LDAP',
|
||||
description: 'Use LDAP for user authentication'
|
||||
label: $localize`LDAP`,
|
||||
description: $localize`Use LDAP for user authentication`
|
||||
},
|
||||
{
|
||||
id: 'oidc',
|
||||
label: 'OIDC',
|
||||
description: 'Use OpenID Connect for user authentication'
|
||||
label: $localize`OIDC`,
|
||||
description: $localize`Use OpenID Connect for user authentication`
|
||||
},
|
||||
{
|
||||
id: 'saml',
|
||||
label: 'SAML',
|
||||
description: 'Use SAML 2.0 for user authentication'
|
||||
label: $localize`SAML`,
|
||||
description: $localize`Use SAML 2.0 for user authentication`
|
||||
}
|
||||
]
|
||||
|
||||
|
|
|
@ -44,37 +44,38 @@ export class PrivateInstanceConfigComponent implements OnInit {
|
|||
importOptions: SelectOptionsItem<EnabledDisabled>[] = [
|
||||
{
|
||||
id: 'enabled',
|
||||
label: 'Enabled',
|
||||
description: 'Users can import videos from remote platforms (YouTube, Vimeo...) and automatically synchronize remote channels'
|
||||
label: $localize`Enabled`,
|
||||
description:
|
||||
$localize`Users can import videos from remote platforms (YouTube, Vimeo...) and automatically synchronize remote channels`
|
||||
},
|
||||
{
|
||||
id: 'disabled',
|
||||
label: 'Disabled',
|
||||
description: 'Disable video import and channel synchronization'
|
||||
label: $localize`Disabled`,
|
||||
description: $localize`Disable video import and channel synchronization`
|
||||
}
|
||||
]
|
||||
|
||||
liveOptions: SelectOptionsItem<EnabledDisabled>[] = [
|
||||
{
|
||||
id: 'enabled',
|
||||
label: 'Yes'
|
||||
label: $localize`Yes`
|
||||
},
|
||||
{
|
||||
id: 'disabled',
|
||||
label: 'No'
|
||||
label: $localize`No`
|
||||
}
|
||||
]
|
||||
|
||||
keepOriginalVideoOptions: SelectOptionsItem<EnabledDisabled>[] = [
|
||||
{
|
||||
id: 'enabled',
|
||||
label: 'Yes',
|
||||
description: 'Keep the original video file on the server'
|
||||
label: $localize`Yes`,
|
||||
description: $localize`Keep the original video file on the server`
|
||||
},
|
||||
{
|
||||
id: 'disabled',
|
||||
label: 'No',
|
||||
description: 'Delete the original video file after processing'
|
||||
label: $localize`No`,
|
||||
description: $localize`Delete the original video file after processing`
|
||||
}
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue