Skip to content

Commit

Permalink
Replace "PeerTube platform" with "platform"
Browse files Browse the repository at this point in the history
  • Loading branch information
Booteille committed Feb 18, 2025
1 parent e0b77ca commit aec372e
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const aboutInstanceRoutes: Routes = [
component: AboutInstanceComponent,
data: {
meta: {
title: $localize`About this PeerTube platform`
title: $localize`About this platform`
}
},
resolve: {
Expand Down
2 changes: 1 addition & 1 deletion client/src/app/+about/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down
4 changes: 2 additions & 2 deletions client/src/app/+search/search.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {
message = $localize`Do you really want to delete this comment?`
): Promise<boolean> {
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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: <a href="${originUrl}">${originUrl}</a>?`,
$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`Redirection`
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.`
}
}

Expand Down Expand Up @@ -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.`
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
},

Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
Expand Down Expand Up @@ -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)
}
Expand All @@ -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)
}
Expand All @@ -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' })
Expand All @@ -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 ]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit aec372e

Please sign in to comment.