Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Improve platform sentences

Chocobozzzde44e2ccccb5
diff --git a/client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.ts b/client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.ts
index 38987545a7..cb15780f13 100644
--- a/client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.ts
+++ b/client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.ts
@@ -31,26 +31,6 @@ export class MyAccountNotificationPreferencesComponent implements OnInit {
private serverService: ServerService,
private notifier: Notifier
) {
- this.labelNotifications = {
- newVideoFromSubscription: $localize`New video or live from your subscriptions`,
- newCommentOnMyVideo: $localize`New comment on your video`,
- abuseAsModerator: $localize`New abuse`,
- videoAutoBlacklistAsModerator: $localize`An automatically blocked video is awaiting review`,
- blacklistOnMyVideo: $localize`One of your video is blocked/unblocked`,
- myVideoPublished: $localize`Video published (after transcoding/scheduled update)`,
- myVideoImportFinished: $localize`Video import finished`,
- newUserRegistration: $localize`A new user registered on your platform`,
- newFollow: $localize`You or one of your channels has a new follower`,
- commentMention: $localize`Someone mentioned you in video comments`,
- newInstanceFollower: $localize`Your platform has a new follower`,
- autoInstanceFollowing: $localize`Your platform automatically followed another platform`,
- abuseNewMessage: $localize`An abuse report received a new message`,
- abuseStateChange: $localize`One of your abuse reports has been accepted or rejected by moderators`,
- newPeerTubeVersion: $localize`A new PeerTube version is available`,
- newPluginVersion: $localize`One of your plugin/theme has a new available version`,
- myVideoStudioEditionFinished: $localize`Processing of edits has finished`,
- myVideoTranscriptionGenerated: $localize`The transcription of your video has been generated`
- }
this.notificationSettingGroups = [
{
label: $localize`Social`,
@@ -107,8 +87,29 @@ export class MyAccountNotificationPreferencesComponent implements OnInit {
}
ngOnInit () {
- const serverConfig = this.serverService.getHTMLConfig()
- this.emailEnabled = serverConfig.email.enabled
+ const config = this.serverService.getHTMLConfig()
+ this.emailEnabled = config.email.enabled
+
+ this.labelNotifications = {
+ newVideoFromSubscription: $localize`New video or live from your subscriptions`,
+ newCommentOnMyVideo: $localize`New comment on your video`,
+ abuseAsModerator: $localize`New abuse`,
+ videoAutoBlacklistAsModerator: $localize`An automatically blocked video is awaiting review`,
+ blacklistOnMyVideo: $localize`One of your video is blocked/unblocked`,
+ myVideoPublished: $localize`Video published (after transcoding/scheduled update)`,
+ myVideoImportFinished: $localize`Video import finished`,
+ newUserRegistration: $localize`A new user registered on ${config.instance.name}`,
+ newFollow: $localize`You or one of your channels has a new follower`,
+ commentMention: $localize`Someone mentioned you in video comments`,
+ newInstanceFollower: $localize`${config.instance.name} has a new follower`,
+ autoInstanceFollowing: $localize`${config.instance.name} automatically followed another platform`,
+ abuseNewMessage: $localize`An abuse report received a new message`,
+ abuseStateChange: $localize`One of your abuse reports has been accepted or rejected by moderators`,
+ newPeerTubeVersion: $localize`A new PeerTube version is available`,
+ newPluginVersion: $localize`One of your plugin/theme has a new available version`,
+ myVideoStudioEditionFinished: $localize`Processing of edits has finished`,
+ myVideoTranscriptionGenerated: $localize`The transcription of your video has been generated`
+ }
this.loadNotificationSettings()
}
diff --git a/client/src/app/+search/search.component.ts b/client/src/app/+search/search.component.ts
index d1ca9cad7c..46bfe2eb2a 100644
--- a/client/src/app/+search/search.component.ts
+++ b/client/src/app/+search/search.component.ts
@@ -190,7 +190,7 @@ export class SearchComponent implements OnInit, OnDestroy {
}
this.notifier.error(
- $localize`Search index is unavailable. Retrying with platform results instead.`,
+ $localize`Search index is unavailable. Retrying with local platform results instead.`,
$localize`Search error`
)
this.advancedSearch.searchTarget = 'local'
@@ -367,7 +367,7 @@ export class SearchComponent implements OnInit, OnDestroy {
private checkFieldsAndGetError () {
if (this.advancedSearch.host && !validateHost(this.advancedSearch.host)) {
- return $localize`platform host filter is invalid`
+ return $localize`Host filter is invalid`
}
return undefined
diff --git a/client/src/app/+videos/+video-watch/video-watch.component.ts b/client/src/app/+videos/+video-watch/video-watch.component.ts
index 89f0667194..6a08d9145d 100644
--- a/client/src/app/+videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/+videos/+video-watch/video-watch.component.ts
@@ -434,7 +434,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
const res = await this.confirmService.confirm(
// eslint-disable-next-line max-len
- $localize`This video is not available on this platform. Do you want to be redirected on the origin platform: <a href="${originUrl}">${originUrl}</a>?`,
+ $localize`This video is not available on ${this.serverConfig.instance.name}. Do you want to be redirected on the origin platform: <a href="${originUrl}">${originUrl}</a>?`,
$localize`Redirection`
)
diff --git a/client/src/app/shared/form-validators/custom-config-validators.ts b/client/src/app/shared/form-validators/custom-config-validators.ts
index 7cd4132538..3ba8e74060 100644
--- a/client/src/app/shared/form-validators/custom-config-validators.ts
+++ b/client/src/app/shared/form-validators/custom-config-validators.ts
@@ -84,8 +84,8 @@ export const MAX_LIVE_DURATION_VALIDATOR: BuildFormValidator = {
export const MAX_INSTANCE_LIVES_VALIDATOR: BuildFormValidator = {
VALIDATORS: [ Validators.required, Validators.min(-1) ],
MESSAGES: {
- required: $localize`Max platform lives is required.`,
- min: $localize`Max platform lives must be greater or equal to -1.`
+ required: $localize`Max lives is required.`,
+ min: $localize`Max lives must be greater or equal to -1.`
}
}
diff --git a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts
index e4db30e4f0..ef97654cd6 100644
--- a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts
+++ b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts
@@ -494,7 +494,7 @@ export class AbuseListTableComponent extends RestTable implements OnInit, OnDest
this.blocklistService.blockAccountByInstance(account)
.subscribe({
next: () => {
- this.notifier.success($localize`Account ${account.nameWithHost} muted by the platform.`)
+ this.notifier.success($localize`Account ${account.nameWithHost} muted by your platform.`)
account.mutedByInstance = true
},
@@ -506,7 +506,7 @@ export class AbuseListTableComponent extends RestTable implements OnInit, OnDest
this.blocklistService.blockServerByInstance(host)
.subscribe({
next: () => {
- this.notifier.success($localize`Server ${host} muted by the platform.`)
+ this.notifier.success($localize`${host} muted by your platform.`)
},
error: err => this.notifier.error(err.message)
diff --git a/client/src/app/shared/shared-moderation/server-blocklist.component.ts b/client/src/app/shared/shared-moderation/server-blocklist.component.ts
index 87411ca082..75fa955d3c 100644
--- a/client/src/app/shared/shared-moderation/server-blocklist.component.ts
+++ b/client/src/app/shared/shared-moderation/server-blocklist.component.ts
@@ -42,8 +42,8 @@ export class GenericServerBlocklistComponent extends RestTable implements OnInit
() => {
this.notifier.success(
this.mode === BlocklistComponentType.Account
- ? $localize`Platform ${host} unmuted.`
- : $localize`Platform ${host} unmuted by your platform.`
+ ? $localize`${host} unmuted.`
+ : $localize`${host} unmuted by your platform.`
)
this.reloadData()
diff --git a/client/src/app/shared/shared-moderation/user-moderation-dropdown.component.ts b/client/src/app/shared/shared-moderation/user-moderation-dropdown.component.ts
index daddca3fa2..d7806e9104 100644
--- a/client/src/app/shared/shared-moderation/user-moderation-dropdown.component.ts
+++ b/client/src/app/shared/shared-moderation/user-moderation-dropdown.component.ts
@@ -165,7 +165,7 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges {
this.blocklistService.blockServerByUser(host)
.subscribe({
next: () => {
- this.notifier.success($localize`Instance ${host} muted.`)
+ this.notifier.success($localize`${host} muted.`)
this.account.mutedServerByUser = true
this.userChanged.emit()
@@ -179,7 +179,7 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges {
this.blocklistService.unblockServerByUser(host)
.subscribe({
next: () => {
- this.notifier.success($localize`Instance ${host} unmuted.`)
+ this.notifier.success($localize`${host} unmuted.`)
this.account.mutedServerByUser = false
this.userChanged.emit()
@@ -193,7 +193,7 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges {
this.blocklistService.blockAccountByInstance(account)
.subscribe({
next: () => {
- this.notifier.success($localize`Account ${account.nameWithHost} muted by the instance.`)
+ this.notifier.success($localize`Account ${account.nameWithHost} muted by your platform.`)
this.account.mutedByInstance = true
this.userChanged.emit()
@@ -207,7 +207,7 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges {
this.blocklistService.unblockAccountByInstance(account)
.subscribe({
next: () => {
- this.notifier.success($localize`Account ${account.nameWithHost} unmuted by the instance.`)
+ this.notifier.success($localize`Account ${account.nameWithHost} unmuted by your platform.`)
this.account.mutedByInstance = false
this.userChanged.emit()