forked from FoundKeyGang/FoundKey
translate some comments to english
This commit is contained in:
parent
5b61941e4c
commit
5d23aa9e69
2 changed files with 14 additions and 14 deletions
|
@ -7,7 +7,7 @@ export class Instance {
|
||||||
public id: string;
|
public id: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* このインスタンスを捕捉した日時
|
* Date and time this instance was first seen.
|
||||||
*/
|
*/
|
||||||
@Index()
|
@Index()
|
||||||
@Column('timestamp with time zone', {
|
@Column('timestamp with time zone', {
|
||||||
|
@ -16,7 +16,7 @@ export class Instance {
|
||||||
public caughtAt: Date;
|
public caughtAt: Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ホスト
|
* Hostname
|
||||||
*/
|
*/
|
||||||
@Index({ unique: true })
|
@Index({ unique: true })
|
||||||
@Column('varchar', {
|
@Column('varchar', {
|
||||||
|
@ -26,7 +26,7 @@ export class Instance {
|
||||||
public host: string;
|
public host: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* インスタンスのユーザー数
|
* Number of users on this instance.
|
||||||
*/
|
*/
|
||||||
@Column('integer', {
|
@Column('integer', {
|
||||||
default: 0,
|
default: 0,
|
||||||
|
@ -35,7 +35,7 @@ export class Instance {
|
||||||
public usersCount: number;
|
public usersCount: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* インスタンスの投稿数
|
* Number of notes on this instance.
|
||||||
*/
|
*/
|
||||||
@Column('integer', {
|
@Column('integer', {
|
||||||
default: 0,
|
default: 0,
|
||||||
|
@ -44,7 +44,7 @@ export class Instance {
|
||||||
public notesCount: number;
|
public notesCount: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* このインスタンスのユーザーからフォローされている、自インスタンスのユーザーの数
|
* Number of local users who are followed by users from this instance.
|
||||||
*/
|
*/
|
||||||
@Column('integer', {
|
@Column('integer', {
|
||||||
default: 0,
|
default: 0,
|
||||||
|
@ -52,7 +52,7 @@ export class Instance {
|
||||||
public followingCount: number;
|
public followingCount: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* このインスタンスのユーザーをフォローしている、自インスタンスのユーザーの数
|
* Number of users from this instance who are followed by local users.
|
||||||
*/
|
*/
|
||||||
@Column('integer', {
|
@Column('integer', {
|
||||||
default: 0,
|
default: 0,
|
||||||
|
@ -60,7 +60,7 @@ export class Instance {
|
||||||
public followersCount: number;
|
public followersCount: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 直近のリクエスト送信日時
|
* Timestamp of the latest outgoing HTTP request.
|
||||||
*/
|
*/
|
||||||
@Column('timestamp with time zone', {
|
@Column('timestamp with time zone', {
|
||||||
nullable: true,
|
nullable: true,
|
||||||
|
@ -68,7 +68,7 @@ export class Instance {
|
||||||
public latestRequestSentAt: Date | null;
|
public latestRequestSentAt: Date | null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 直近のリクエスト送信時のHTTPステータスコード
|
* HTTP status code that was received for the last outgoing HTTP request.
|
||||||
*/
|
*/
|
||||||
@Column('integer', {
|
@Column('integer', {
|
||||||
nullable: true,
|
nullable: true,
|
||||||
|
@ -76,7 +76,7 @@ export class Instance {
|
||||||
public latestStatus: number | null;
|
public latestStatus: number | null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 直近のリクエスト受信日時
|
* Timestamp of the latest incoming HTTP request.
|
||||||
*/
|
*/
|
||||||
@Column('timestamp with time zone', {
|
@Column('timestamp with time zone', {
|
||||||
nullable: true,
|
nullable: true,
|
||||||
|
@ -84,13 +84,13 @@ export class Instance {
|
||||||
public latestRequestReceivedAt: Date | null;
|
public latestRequestReceivedAt: Date | null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* このインスタンスと最後にやり取りした日時
|
* Timestamp of last communication with this instance (incoming or outgoing).
|
||||||
*/
|
*/
|
||||||
@Column('timestamp with time zone')
|
@Column('timestamp with time zone')
|
||||||
public lastCommunicatedAt: Date;
|
public lastCommunicatedAt: Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* このインスタンスと不通かどうか
|
* Whether this instance seems unresponsive.
|
||||||
*/
|
*/
|
||||||
@Column('boolean', {
|
@Column('boolean', {
|
||||||
default: false,
|
default: false,
|
||||||
|
@ -98,7 +98,7 @@ export class Instance {
|
||||||
public isNotResponding: boolean;
|
public isNotResponding: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* このインスタンスへの配信を停止するか
|
* Whether sending activities to this instance has been suspended.
|
||||||
*/
|
*/
|
||||||
@Index()
|
@Index()
|
||||||
@Column('boolean', {
|
@Column('boolean', {
|
||||||
|
|
|
@ -62,8 +62,8 @@ export default async (job: Bull.Job<DeliverJobData>) => {
|
||||||
if (res instanceof StatusError) {
|
if (res instanceof StatusError) {
|
||||||
// 4xx
|
// 4xx
|
||||||
if (res.isClientError) {
|
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}`;
|
return `${res.statusCode} ${res.statusMessage}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue