From 5d23aa9e6904b1c7e4fa3e58460ae3e8c5b390f6 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Thu, 10 Nov 2022 00:36:39 +0100 Subject: [PATCH] translate some comments to english --- .../backend/src/models/entities/instance.ts | 24 +++++++++---------- .../backend/src/queue/processors/deliver.ts | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/backend/src/models/entities/instance.ts b/packages/backend/src/models/entities/instance.ts index 7ea923438..62c541950 100644 --- a/packages/backend/src/models/entities/instance.ts +++ b/packages/backend/src/models/entities/instance.ts @@ -7,7 +7,7 @@ export class Instance { public id: string; /** - * このインスタンスを捕捉した日時 + * Date and time this instance was first seen. */ @Index() @Column('timestamp with time zone', { @@ -16,7 +16,7 @@ export class Instance { public caughtAt: Date; /** - * ホスト + * Hostname */ @Index({ unique: true }) @Column('varchar', { @@ -26,7 +26,7 @@ export class Instance { public host: string; /** - * インスタンスのユーザー数 + * Number of users on this instance. */ @Column('integer', { default: 0, @@ -35,7 +35,7 @@ export class Instance { public usersCount: number; /** - * インスタンスの投稿数 + * Number of notes on this instance. */ @Column('integer', { default: 0, @@ -44,7 +44,7 @@ export class Instance { public notesCount: number; /** - * このインスタンスのユーザーからフォローされている、自インスタンスのユーザーの数 + * Number of local users who are followed by users from this instance. */ @Column('integer', { default: 0, @@ -52,7 +52,7 @@ export class Instance { public followingCount: number; /** - * このインスタンスのユーザーをフォローしている、自インスタンスのユーザーの数 + * Number of users from this instance who are followed by local users. */ @Column('integer', { default: 0, @@ -60,7 +60,7 @@ export class Instance { public followersCount: number; /** - * 直近のリクエスト送信日時 + * Timestamp of the latest outgoing HTTP request. */ @Column('timestamp with time zone', { nullable: true, @@ -68,7 +68,7 @@ export class Instance { public latestRequestSentAt: Date | null; /** - * 直近のリクエスト送信時のHTTPステータスコード + * HTTP status code that was received for the last outgoing HTTP request. */ @Column('integer', { nullable: true, @@ -76,7 +76,7 @@ export class Instance { public latestStatus: number | null; /** - * 直近のリクエスト受信日時 + * Timestamp of the latest incoming HTTP request. */ @Column('timestamp with time zone', { nullable: true, @@ -84,13 +84,13 @@ export class Instance { public latestRequestReceivedAt: Date | null; /** - * このインスタンスと最後にやり取りした日時 + * Timestamp of last communication with this instance (incoming or outgoing). */ @Column('timestamp with time zone') public lastCommunicatedAt: Date; /** - * このインスタンスと不通かどうか + * Whether this instance seems unresponsive. */ @Column('boolean', { default: false, @@ -98,7 +98,7 @@ export class Instance { public isNotResponding: boolean; /** - * このインスタンスへの配信を停止するか + * Whether sending activities to this instance has been suspended. */ @Index() @Column('boolean', { diff --git a/packages/backend/src/queue/processors/deliver.ts b/packages/backend/src/queue/processors/deliver.ts index 3de0783e9..638de71dd 100644 --- a/packages/backend/src/queue/processors/deliver.ts +++ b/packages/backend/src/queue/processors/deliver.ts @@ -62,8 +62,8 @@ export default async (job: Bull.Job) => { if (res instanceof StatusError) { // 4xx if (res.isClientError) { - // HTTPステータスコード4xxはクライアントエラーであり、それはつまり - // 何回再送しても成功することはないということなのでエラーにはしないでおく + // A client error means that something is wrong with the request we are making, + // which means that retrying it makes no sense. return `${res.statusCode} ${res.statusMessage}`; }