From aec372ebb7b54292614998385f217e3a0e2e103f Mon Sep 17 00:00:00 2001 From: Booteille Date: Tue, 18 Feb 2025 10:20:42 +0100 Subject: [PATCH] Replace "PeerTube platform" with "platform" --- .../about-instance/about-instance.routes.ts | 2 +- client/src/app/+about/routes.ts | 2 +- .../plugin-search/plugin-search.component.ts | 2 +- ...ount-notification-preferences.component.ts | 2 +- client/src/app/+search/search.component.ts | 4 ++-- .../comment/video-comments.component.ts | 4 ++-- .../+video-watch/video-watch.component.ts | 2 +- .../custom-config-validators.ts | 6 ++--- .../abuse-list-table.component.ts | 4 ++-- .../account-blocklist.component.ts | 2 +- .../server-blocklist.component.ts | 4 ++-- .../user-moderation-dropdown.component.ts | 24 +++++++++---------- .../video-actions-dropdown.component.ts | 2 +- .../video-channel-create.component.ts | 2 +- 14 files changed, 31 insertions(+), 31 deletions(-) diff --git a/client/src/app/+about/about-instance/about-instance.routes.ts b/client/src/app/+about/about-instance/about-instance.routes.ts index aac79f114ed..6688867f6ad 100644 --- a/client/src/app/+about/about-instance/about-instance.routes.ts +++ b/client/src/app/+about/about-instance/about-instance.routes.ts @@ -13,7 +13,7 @@ export const aboutInstanceRoutes: Routes = [ component: AboutInstanceComponent, data: { meta: { - title: $localize`About this PeerTube platform` + title: $localize`About this platform` } }, resolve: { diff --git a/client/src/app/+about/routes.ts b/client/src/app/+about/routes.ts index aed49e6c201..94cd8351152 100644 --- a/client/src/app/+about/routes.ts +++ b/client/src/app/+about/routes.ts @@ -41,7 +41,7 @@ export default [ component: AboutFollowsComponent, data: { meta: { - title: $localize`About this PeerTube platform's network` + title: $localize`About this platform's network` } } }, diff --git a/client/src/app/+admin/plugins/plugin-search/plugin-search.component.ts b/client/src/app/+admin/plugins/plugin-search/plugin-search.component.ts index 07cd21d9cb0..adf0743e51f 100644 --- a/client/src/app/+admin/plugins/plugin-search/plugin-search.component.ts +++ b/client/src/app/+admin/plugins/plugin-search/plugin-search.component.ts @@ -146,7 +146,7 @@ export class PluginSearchComponent implements OnInit { if (this.installing[plugin.npmName]) return const res = await this.confirmService.confirm( - $localize`Please only install plugins or themes you trust, since they can execute any code on your PeerTube platform.`, + $localize`Please only install plugins or themes you trust, since they can execute any code on your platform.`, $localize`Install ${plugin.name}?` ) if (res === false) return 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 94578eed643..38987545a75 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 @@ -43,7 +43,7 @@ export class MyAccountNotificationPreferencesComponent implements OnInit { 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 PeerTube platform`, + 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`, diff --git a/client/src/app/+search/search.component.ts b/client/src/app/+search/search.component.ts index 8933b792e52..d1ca9cad7ce 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 PeerTube platform results instead.`, + $localize`Search index is unavailable. Retrying with 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`PeerTube platform host filter is invalid` + return $localize`platform host filter is invalid` } return undefined diff --git a/client/src/app/+videos/+video-watch/shared/comment/video-comments.component.ts b/client/src/app/+videos/+video-watch/shared/comment/video-comments.component.ts index a52ca026ef2..83ba530d1d7 100644 --- a/client/src/app/+videos/+video-watch/shared/comment/video-comments.component.ts +++ b/client/src/app/+videos/+video-watch/shared/comment/video-comments.component.ts @@ -220,9 +220,9 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy { message = $localize`Do you really want to delete this comment?` ): Promise { if (commentToDelete.isLocal || this.video.isLocal) { - message += $localize` The deletion will be sent to remote PeerTube platforms so they can reflect the change.` + message += $localize` The deletion will be sent to remote platforms so they can reflect the change.` } else { - message += $localize` It is a remote comment, so the deletion will only be effective on your PeerTube platform.` + message += $localize` It is a remote comment, so the deletion will only be effective on your platform.` } const res = await this.confirmService.confirm(message, title) 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 674335d73aa..89f0667194e 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 PeerTube platform. Do you want to be redirected on the origin platform: ${originUrl}?`, + $localize`This video is not available on this platform. Do you want to be redirected on the origin platform: ${originUrl}?`, $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 420ed4346f3..7cd41325381 100644 --- a/client/src/app/shared/form-validators/custom-config-validators.ts +++ b/client/src/app/shared/form-validators/custom-config-validators.ts @@ -4,7 +4,7 @@ import { BuildFormValidator } from './form-validator.model' export const INSTANCE_NAME_VALIDATOR: BuildFormValidator = { VALIDATORS: [ Validators.required ], MESSAGES: { - required: $localize`PeerTube platform name is required.` + required: $localize`Platform name is required.` } } @@ -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 PeerTube platform lives is required.`, - min: $localize`Max PeerTube platform lives must be greater or equal to -1.` + required: $localize`Max platform lives is required.`, + min: $localize`Max platform 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 08ee6246174..e4db30e4f00 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 PeerTube platform.`) + this.notifier.success($localize`Account ${account.nameWithHost} muted by the 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 PeerTube platform.`) + this.notifier.success($localize`Server ${host} muted by the platform.`) }, error: err => this.notifier.error(err.message) diff --git a/client/src/app/shared/shared-moderation/account-blocklist.component.ts b/client/src/app/shared/shared-moderation/account-blocklist.component.ts index dd9dc22b578..8fb1806e753 100644 --- a/client/src/app/shared/shared-moderation/account-blocklist.component.ts +++ b/client/src/app/shared/shared-moderation/account-blocklist.component.ts @@ -40,7 +40,7 @@ export class GenericAccountBlocklistComponent extends RestTable implements OnIni this.notifier.success( this.mode === BlocklistComponentType.Account ? $localize`Account ${blockedAccount.nameWithHost} unmuted.` - : $localize`Account ${blockedAccount.nameWithHost} unmuted by your PeerTube platform.` + : $localize`Account ${blockedAccount.nameWithHost} unmuted by your platform.` ) this.reloadData() 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 0e7b5a3da70..87411ca082c 100644 --- a/client/src/app/shared/shared-moderation/server-blocklist.component.ts +++ b/client/src/app/shared/shared-moderation/server-blocklist.component.ts @@ -43,7 +43,7 @@ export class GenericServerBlocklistComponent extends RestTable implements OnInit this.notifier.success( this.mode === BlocklistComponentType.Account ? $localize`Platform ${host} unmuted.` - : $localize`Platform ${host} unmuted by your PeerTube platform.` + : $localize`Platform ${host} unmuted by your platform.` ) this.reloadData() @@ -66,7 +66,7 @@ export class GenericServerBlocklistComponent extends RestTable implements OnInit this.notifier.success( this.mode === BlocklistComponentType.Account ? $localize`Platform ${domain} muted.` - : $localize`Platform ${domain} muted by your PeerTube platform.` + : $localize`Platform ${domain} muted 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 65f68a733e0..daddca3fa2f 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 @@ -310,14 +310,14 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges { handler: ({ account }) => this.unblockAccountByUser(account) }, { - label: $localize`Mute the PeerTube platform`, - description: $localize`Hide any content from that PeerTube platform for you.`, + label: $localize`Mute the platform`, + description: $localize`Hide any content from that platform for you.`, isDisplayed: ({ account }) => !account.userId && account.mutedServerByUser === false, handler: ({ account }) => this.blockServerByUser(account.host) }, { - label: $localize`Unmute the PeerTube platform`, - description: $localize`Show back content from that PeerTube platform for you.`, + label: $localize`Unmute the platform`, + description: $localize`Show back content from that platform for you.`, isDisplayed: ({ account }) => !account.userId && account.mutedServerByUser === true, handler: ({ account }) => this.unblockServerByUser(account.host) }, @@ -377,13 +377,13 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges { instanceActions = instanceActions.concat([ { label: $localize`Mute this account`, - description: $localize`Hide any content from that user from you, your PeerTube platform and its users.`, + description: $localize`Hide any content from that user from you, your platform and its users.`, isDisplayed: ({ account }) => !this.isMyAccount(account) && account.mutedByInstance === false, handler: ({ account }) => this.blockAccountByInstance(account) }, { label: $localize`Unmute this account`, - description: $localize`Show this user's content to the users of this PeerTube platform again.`, + description: $localize`Show this user's content to the users of this platform again.`, isDisplayed: ({ account }) => !this.isMyAccount(account) && account.mutedByInstance === true, handler: ({ account }) => this.unblockAccountByInstance(account) } @@ -394,14 +394,14 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges { if (this.account && this.displayOptions.instanceAccount && authUser.hasRight(UserRight.MANAGE_SERVERS_BLOCKLIST)) { instanceActions = instanceActions.concat([ { - label: $localize`Mute the PeerTube platform`, - description: $localize`Hide any content from that PeerTube platform from you, your platform and its users.`, + label: $localize`Mute the platform`, + description: $localize`Hide any content from that platform from you, your platform and its users.`, isDisplayed: ({ account }) => !account.userId && account.mutedServerByInstance === false, handler: ({ account }) => this.blockServerByInstance(account.host) }, { - label: $localize`Unmute the PeerTube platform by your platform`, - description: $localize`Show back content from that PeerTube platform for you, your platform and its users.`, + label: $localize`Unmute the platform by your platform`, + description: $localize`Show back content from that platform for you, your platform and its users.`, isDisplayed: ({ account }) => !account.userId && account.mutedServerByInstance === true, handler: ({ account }) => this.unblockServerByInstance(account.host) } @@ -411,7 +411,7 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges { if (this.account && this.displayOptions.instanceAccount && authUser.hasRight(UserRight.MANAGE_ANY_VIDEO_COMMENT)) { instanceActions = instanceActions.concat([ { - label: $localize`Remove comments from your PeerTube platform`, + label: $localize`Remove comments from your platform`, description: $localize`Remove comments made by this account from your platform.`, isDisplayed: ({ account }) => !this.isMyAccount(account), handler: ({ account }) => this.bulkRemoveCommentsOf({ accountName: account.nameWithHost, scope: 'instance' }) @@ -421,6 +421,6 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges { if (instanceActions.length === 0) return [] - return [ { label: $localize`PeerTube platform moderation`, isHeader: true }, ...instanceActions ] + return [ { label: $localize`Platform moderation`, isHeader: true }, ...instanceActions ] } } diff --git a/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts b/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts index e6fdda90590..f29ff552e01 100644 --- a/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts +++ b/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts @@ -328,7 +328,7 @@ export class VideoActionsDropdownComponent implements OnChanges { this.redundancyService.addVideoRedundancy(this.video) .subscribe({ next: () => { - const message = $localize`${this.video.name} will be duplicated by your PeerTube platform.` + const message = $localize`${this.video.name} will be duplicated by your platform.` this.notifier.success(message) }, diff --git a/client/src/app/shared/standalone-channels/video-channel-create.component.ts b/client/src/app/shared/standalone-channels/video-channel-create.component.ts index 836b1f23f39..25e7268e1de 100644 --- a/client/src/app/shared/standalone-channels/video-channel-create.component.ts +++ b/client/src/app/shared/standalone-channels/video-channel-create.component.ts @@ -95,7 +95,7 @@ export class VideoChannelCreateComponent extends VideoChannelEdit implements OnI error: err => { if (err.status === HttpStatusCode.CONFLICT_409) { - this.error = $localize`This name already exists on this PeerTube platform.` + this.error = $localize`This name already exists on this platform.` return }