fix a few typos (#2141)
* fix a few typos * apply changes to original files instead * additional correction
This commit is contained in:
parent
210709a907
commit
32d7f2b754
|
@ -24,7 +24,7 @@ export class MyAccountDangerZoneComponent {
|
||||||
|
|
||||||
async deleteMe () {
|
async deleteMe () {
|
||||||
const res = await this.confirmService.confirmWithInput(
|
const res = await this.confirmService.confirmWithInput(
|
||||||
this.i18n('Are you sure you want to delete your account? This will delete all you data, including channels, videos etc.'),
|
this.i18n('Are you sure you want to delete your account? This will delete all your data, including channels, videos etc.'),
|
||||||
this.i18n('Type your username to confirm'),
|
this.i18n('Type your username to confirm'),
|
||||||
this.user.username,
|
this.user.username,
|
||||||
this.i18n('Delete your account'),
|
this.i18n('Delete your account'),
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|
||||||
<div *ngIf="isEmailDisabled()" class="alert alert-danger" i18n>
|
<div *ngIf="isEmailDisabled()" class="alert alert-danger" i18n>
|
||||||
We are sorry, you cannot recover you password because your instance administrator did not configure the PeerTube email system.
|
We are sorry, you cannot recover your password because your instance administrator did not configure the PeerTube email system.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group" [hidden]="isEmailDisabled()">
|
<div class="form-group" [hidden]="isEmailDisabled()">
|
||||||
|
|
|
@ -103,7 +103,7 @@ export class UserValidatorsService {
|
||||||
Validators.requiredTrue
|
Validators.requiredTrue
|
||||||
],
|
],
|
||||||
MESSAGES: {
|
MESSAGES: {
|
||||||
'required': this.i18n('You must to agree with the instance terms in order to registering on it.')
|
'required': this.i18n('You must agree with the instance terms in order to register on it.')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
</span>
|
</span>
|
||||||
<span class="btn btn-sm mx-3" role="button" (click)="gotoLogin()" i18n>login to comment</span>
|
<span class="btn btn-sm mx-3" role="button" (click)="gotoLogin()" i18n>login to comment</span>
|
||||||
<span i18n>
|
<span i18n>
|
||||||
Otherwise you can comment using an account on any ActivityPub-compatible instance.
|
Otherwise, you can comment using an account on any ActivityPub-compatible instance.
|
||||||
On most platforms, you can find the video by typing its URL in the search bar and then comment it
|
On most platforms, you can find the video by typing its URL in the search bar and then comment it
|
||||||
from within the software's interface.
|
from within the software's interface.
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -158,7 +158,7 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (commentToDelete.isLocal) {
|
if (commentToDelete.isLocal) {
|
||||||
message += this.i18n(' The deletion will be sent to remote instances so they remove the comment too.')
|
message += this.i18n(' The deletion will be sent to remote instances, so they remove the comment too.')
|
||||||
} else {
|
} else {
|
||||||
message += this.i18n(' It is a remote comment, so the deletion will only be effective on your instance.')
|
message += this.i18n(' It is a remote comment, so the deletion will only be effective on your instance.')
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@ export {
|
||||||
|
|
||||||
async function follow (fromActor: MActor, targetActor: MActorFull, isAutoFollow = false) {
|
async function follow (fromActor: MActor, targetActor: MActorFull, isAutoFollow = false) {
|
||||||
if (fromActor.id === targetActor.id) {
|
if (fromActor.id === targetActor.id) {
|
||||||
throw new Error('Follower is the same than target actor.')
|
throw new Error('Follower is the same as target actor.')
|
||||||
}
|
}
|
||||||
|
|
||||||
// Same server, direct accept
|
// Same server, direct accept
|
||||||
|
|
|
@ -91,7 +91,7 @@ const usersRegisterValidator = [
|
||||||
|
|
||||||
if (body.channel.name === body.username) {
|
if (body.channel.name === body.username) {
|
||||||
return res.status(400)
|
return res.status(400)
|
||||||
.json({ error: 'Channel name cannot be the same than user username.' })
|
.json({ error: 'Channel name cannot be the same as user username.' })
|
||||||
}
|
}
|
||||||
|
|
||||||
const existing = await ActorModel.loadLocalByName(body.channel.name)
|
const existing = await ActorModel.loadLocalByName(body.channel.name)
|
||||||
|
|
|
@ -901,7 +901,7 @@ describe('Test users API validators', function () {
|
||||||
await makePostBodyRequest({ url: server.url, path: registrationPath, token: server.accessToken, fields })
|
await makePostBodyRequest({ url: server.url, path: registrationPath, token: server.accessToken, fields })
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should fail with a channel name that is the same than user username', async function () {
|
it('Should fail with a channel name that is the same as username', async function () {
|
||||||
const source = { username: 'super_user', channel: { name: 'super_user', displayName: 'display name' } }
|
const source = { username: 'super_user', channel: { name: 'super_user', displayName: 'display name' } }
|
||||||
const fields = immutableAssign(baseCorrectParams, source)
|
const fields = immutableAssign(baseCorrectParams, source)
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ COMMANDS
|
||||||
|
|
||||||
Unless otherwise specified, every command can be queried for its own help or manual by passing its name to the `help` command, or by using the `--help` option.
|
Unless otherwise specified, every command can be queried for its own help or manual by passing its name to the `help` command, or by using the `--help` option.
|
||||||
|
|
||||||
`auth [action]`: stores credentials for your accounts on remote instances so that you don't need to pass them at every command
|
`auth [action]`: stores credentials for your accounts on remote instances, so that you don't need to pass them at every command
|
||||||
|
|
||||||
`upload|up`: upload a video to a remote instance
|
`upload|up`: upload a video to a remote instance
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
## Concepts
|
## Concepts
|
||||||
|
|
||||||
Themes are exactly the same than plugins, except that:
|
Themes are exactly the same as plugins, except that:
|
||||||
* Their name starts with `peertube-theme-` instead of `peertube-plugin-`
|
* Their name starts with `peertube-theme-` instead of `peertube-plugin-`
|
||||||
* They cannot declare server code (so they cannot register server hooks or settings)
|
* They cannot declare server code (so they cannot register server hooks or settings)
|
||||||
* CSS files are loaded by client only if the theme is chosen by the administrator or the user
|
* CSS files are loaded by client only if the theme is chosen by the administrator or the user
|
||||||
|
|
Loading…
Reference in New Issue
Block a user