Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Japanese translation fixes #6

Merged
merged 2 commits into from
Jan 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 60 additions & 60 deletions dist/jp/jsstp.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ declare class info_object<key_T=PropertyKey,value_T=any> {
/**
* ベースsstpメッセージクラス
* @example
* let info = jsstp.base_sstp_info_t.from_string("SSTP/1.4 200 OK\r\nCharset: UTF-8\r\nSender: SSTPクライアント\r\nScript: \\h\\s0テストー。\\u\\s[10]テストやな。\r\nOption: notranslate\r\n\r\n");
* let info = jsstp.base_sstp_info_t.from_string("SSTP/1.4 200 OK\r\nCharset: UTF-8\r\nSender: SSTP Client\r\nScript: \\h\\s0テストー。\\u\\s[10]テストやな。\r\nOption: notranslate\r\n\r\n");
* console.log(info.head);//SSTP/1.4 200 OK
* console.log(info.Option);//notranslate
* @alias jsstp.base_sstp_info_t
Expand Down Expand Up @@ -100,7 +100,7 @@ declare class base_sstp_info_t<key_T=PropertyKey,value_T=any> extends info_objec
/**
* SSTPメッセージクラス
* @example
* let info = jsstp.sstp_info_t.from_string("SSTP/1.4 200 OK\r\nCharset: UTF-8\r\nSender: SSTPクライアント\r\nScript: \\h\\s0テストー。\\u\\s[10]テストやな。\r\nOption: notranslate\r\n\r\n");
* let info = jsstp.sstp_info_t.from_string("SSTP/1.4 200 OK\r\nCharset: UTF-8\r\nSender: SSTP Client\r\nScript: \\h\\s0テストー。\\u\\s[10]テストやな。\r\nOption: notranslate\r\n\r\n");
* console.log(info.head);//SSTP/1.4 200 OK
* console.log(info.Option);//notranslate
* @alias jsstp.sstp_info_t
Expand All @@ -111,7 +111,7 @@ declare class sstp_info_t extends base_sstp_info_t<string,string> {
* @param {String} str メッセージ文字列
* @returns {sstp_info_t} 構築された sstp_info_t
* @example
* let info = sstp_info_t.from_string("SSTP/1.4 200 OK\r\nCharset: UTF-8\r\nSender: SSTPクライアント\r\nScript: \\h\\s0テストー。\\u\\s[10]テストやな。\r\nOption: notranslate\r\n\r\n");
* let info = sstp_info_t.from_string("SSTP/1.4 200 OK\r\nCharset: UTF-8\r\nSender: SSTP Client\r\nScript: \\h\\s0テストー。\\u\\s[10]テストやな。\r\nOption: notranslate\r\n\r\n");
*/
/*@__PURE__*/constructor(str: String);
/**
Expand Down Expand Up @@ -159,17 +159,17 @@ declare class sstp_info_t extends base_sstp_info_t<string,string> {
*/
declare interface single_fmo_info_t extends info_object<string,string> {
/**
* @description 実行中のベースソフトのルートフォルダへのフルパス
* @description 実行中のベースウェアのルートフォルダへのフルパス
* @example E:\ssp\
*/
path: string;
/**
* @description メインウィンドウのウィンドウハンドル
* @description \0側のウィンドウハンドル
* @example 918820
*/
hwnd: string;
/**
* @description ディスクリプタ.txtのsakura.name
* @description descript.txtのsakura.name
* @example 橘花
*/
name: string;
Expand All @@ -179,17 +179,17 @@ declare interface single_fmo_info_t extends info_object<string,string> {
*/
keroname: string;
/**
* @description 現在サイドに表示されているサーフェスID
* @description \0側に表示されているサーフェスID
* @example 0
*/
"sakura.surface": string;
/**
* @description 現在表示されているサーフェスID
* @description \1側に表示されているサーフェスID
* @example 10
*/
"kero.surface": string;
/**
* @description サイドウィンドウのハンドル
* @description \1側のウィンドウのハンドル
* @example 67008
*/
kerohwnd: string;
Expand Down Expand Up @@ -268,7 +268,7 @@ declare class fmo_info_t extends base_sstp_info_t<string,single_fmo_info_t> {
}

/**
* list报文对象
* listメッセージオブジェクト
* @example
* let list = jsstp.GetNames();
* for(let name of list)
Expand All @@ -277,31 +277,31 @@ declare class fmo_info_t extends base_sstp_info_t<string,single_fmo_info_t> {
*/
declare class list_info_t extends base_sstp_info_t<number,string> {
/**
* 自字符串构造list_info_t
* 自己文字列構造 list_info_t
* @param {String} list_text
* @ignore
*/
/*@__PURE__*/constructor(list_text: String)
/*@__PURE__*/toString(): String
/**
* 获取字符串报文
* @returns {String} 字符串报文
* 文字列メッセージの取得
* @returns {String} 文字列メッセージ
* @ignore
*/
/*@__PURE__*/TextContent(): String
/**
* 获取用于`JSON.stringify`的对象
* @returns {Object} 用于`JSON.stringify`的对象
* `JSON.stringify`用オブジェクトの取得
* @returns {Object} `JSON.stringify` 用のオブジェクト。
* @ignore
*/
/*@__PURE__*/toJSON(): Object
/**
* 获取迭代器
* @returns {Iterator<Array<String>>} 迭代器
* イテレータ取得
* @returns {Iterator<Array<String>>} イテレータ
*/
/*@__PURE__*/[Symbol.iterator](): Iterator<Array<String>>
/**
* 数组成员
* 配列メンバ
* @type {string|undefined}
*/
[uuid: number]: string|undefined;
Expand Down Expand Up @@ -355,7 +355,7 @@ declare class ExtensibleFunction<args_T extends Array<any>,return_T> extends Fun
readonly length: number;
}
/**
* ghost交互中的安全等级
* ghostとの通信におけるセキュリティレベル
*/
type security_level_t = "local" | "external";

Expand All @@ -371,26 +371,26 @@ interface method_caller<T=sstp_info_t, Rest extends any[]=[Object]> {
}

/**
* 可以通过成员访问扩充指定key值的拓展调用器
* 指定されたキー値へのメンバーアクセスによって拡張できる拡張呼び出し元
* @group callers
*/
interface base_keyed_method_caller<T=sstp_info_t, Rest extends any[]=[Object]> extends method_caller<T, Rest> {
/**
* 扩展调用器
* 拡張呼び出し元
*/
[uuid: string]: base_keyed_method_caller<T, Rest>
}
/**
* 对调用参数进行简易处理的可扩展调用器
* 呼び出しパラメータを簡単に扱うための拡張可能な呼び出し元
* @group callers
*/
interface simple_keyed_method_caller<result_T> extends base_keyed_method_caller<result_T, any[]> {}
/**
* 简易事件调用器
* 直接调用以触发事件
* 単純なイベント呼び出し元
* イベントをトリガーするために直接呼び出される
* @example
* let data=await jsstp.OnTest(123,"abc");
* //等价于
* //以下に相当する。
* let data = await jsstp.SEND({
* "Event": "OnTest",
* "Reference0": 123,
Expand All @@ -400,10 +400,10 @@ interface simple_keyed_method_caller<result_T> extends base_keyed_method_caller<
*/
interface simple_event_caller extends simple_keyed_method_caller<sstp_info_t> {}
/**
* 简易命令调用器
* シンプルなコマンド呼び出し元
* @example
* let data=await jsstp.SetCookie("abc","def");
* //等价于
* //以下に相当する。
* let data = await jsstp.SEND({
* "Command": "SetCookie",
* "Reference0": "abc",
Expand All @@ -413,10 +413,10 @@ interface simple_event_caller extends simple_keyed_method_caller<sstp_info_t> {}
*/
interface simple_command_caller extends simple_keyed_method_caller<sstp_info_t> {}
/**
* 对参数进行简易处理的列表返值命令执行器
* パラメータを簡単に処理できるリスト戻り値コマンド実行
* @example
* let data=await jsstp.GetNames();
* //等价于
* //以下に相当する。
* let data = await jsstp.SEND({
* "Command": "GetNames"
* });
Expand Down Expand Up @@ -490,21 +490,21 @@ declare class jsstp_t{
GIVE: method_caller;

/**
* 匹配事件名称以产生简易调用器
* イベント名をマッチさせて単純な呼び出し元を生成する
* @group Index reflactions
* @example
* let data=await jsstp.OnTest(123,"abc");
*/
[key: `On${string}`]: simple_event_caller;
/**
* 匹配事件名称以产生简易调用器
* イベント名をマッチさせて単純な呼び出し元を生成する
* @group Index reflactions
* @example
* let data=await jsstp.GetNames();
*/
[key: `Get${string}`]: simple_list_command_caller;
/**
* 匹配事件名称以产生简易调用器
* イベント名をマッチさせて単純な呼び出し元を生成する
* @group Index reflactions
* @example
* let data=await jsstp.SetCookie("abc","def");
Expand Down Expand Up @@ -537,7 +537,7 @@ declare class jsstp_t{
default_security_level: security_level_t;

/**
* 自己弁護
* セルププロキシ
*/
proxy: jsstp_t;

Expand Down Expand Up @@ -579,12 +579,12 @@ declare class jsstp_t{

/**
* すべてのゴーストのfmoinfoを処理する
* @param {Function|undefined} operation 操作函数
* @param {Function|undefined} operation 操作関数
*/
for_all_ghost_infos<result_T>(operation: (fmo_info: single_fmo_info_t) => result_T): Promise<info_object<string,result_T>>;
/**
* すべてのゴースト・オペレーション
* @param {Function|undefined} operation 操作函数
* @param {Function|undefined} operation 操作関数
*/
for_all_ghosts<result_T>(operation: (jsstp: jsstp_with_ghost_info_t) => result_T): Promise<info_object<string,result_T>>;

Expand All @@ -605,32 +605,32 @@ declare class jsstp_t{
costom_text_send(sstphead: String, info: Object): Promise<String>;
/**
* @returns {Promise<sstp_info_t>} プロミスを返します。
* 发送报文
* @param {String} sstphead 报文头
* @param {Object} info 报文体
* @param {new (info: String)=> result_type} result_type 返回结果的类型,默认为sstp_info_t
* メッセージの送信
* @param {String} sstphead メッセージヘッダ
* @param {Object} info メッセージボディ
* @param {new (info: String)=> result_type} result_type 返される結果の型、デフォルトは sstp_info_t
* @group Basic Send Methods
*/
costom_send<T>(sstphead: String, info: Object, result_type: new (str: string) => T): Promise<T>;

/**
* 获取指定方法的调用器
* @param {String} method_name 方法名称
* @param {new (info: String) => result_type} [result_type=sstp_info_t] 返回结果的类型,默认为sstp_info_t
* @param {Function} [args_processor=info => info] 参数处理器,默认直接返回输入参数
* @returns {method_caller} 调用器
* 指定したメソッドの呼び出し元を取得する
* @param {String} method_name メソッド名
* @param {new (info: String) => result_type} [result_type=sstp_info_t] 返される結果の型、デフォルトは sstp_info_t
* @param {Function} [args_processor=info => info] パラメータプロセッサ、デフォルトは入力パラメータを直接返す
* @returns {method_caller} 呼び出し元
* @group Caller Methods
*/
/*@__PURE__*/get_caller_of_method<T=sstp_info_t,Rest extends any[]=[Object],Res=Object>(
method_name: String, result_type?: new (str: string) => T, args_processor?: (...args: Rest) => Res
): method_caller<T,Rest>;
/**
* 获取指定key的调用器
* @param {String} key_name 键名
* @param {String} value_name 键值
* @param {Function} method_caller 方法调用器
* @param {Function} args_processor 参数处理器
* @returns {Proxy<value>} 调用器
* 指定したキーの呼び出し元を取得
* @param {String} key_name key名
* @param {String} value_name value名
* @param {Function} method_caller メソッド呼び出し元
* @param {Function} args_processor パラメータプロセッサ
* @returns {Proxy<value>} 呼び出し元
* @group Caller Methods
*/
/*@__PURE__*/get_caller_of_key<T=sstp_info_t,Rest extends any[]=[Object],Res=Object>(
Expand All @@ -640,11 +640,11 @@ declare class jsstp_t{
): base_keyed_method_caller<T,Rest>;

/**
* 用于获取指定key的简单调用器
* @param {String} key_name 键名
* @param {String} value_name 键值
* @param {Function} method_caller 方法调用器
* @returns {Proxy<value>} 调用器
* 指定されたキーを取得するシンプルな呼び出し元
* @param {String} key_name key名
* @param {String} value_name value名
* @param {Function} method_caller メソッド呼び出し元
* @returns {Proxy<value>} 呼び出し元
* @group Caller Methods
*/
/*@__PURE__*/get_simple_caller_of_key<T=sstp_info_t>(
Expand All @@ -662,7 +662,7 @@ declare class jsstp_t{
[event_name: string]: simple_event_caller
}
/**
* 用于获取指定命令的执行器的代理
* 指定されたコマンドの実行者を取得するエージェント
* @returns {Proxy}
* @example
* jsstp.command.GetFMO();
Expand All @@ -680,7 +680,7 @@ declare class jsstp_t{
* @example
* jsstp.has_event("OnTest").then(result => console.log(result));
* @example
* //示例代码(AYA):
* //サンプルコード(AYA):
* SHIORI_EV.On_Has_Event : void {
* _event_name=reference.raw[0]
* _SecurityLevel=reference.raw[1]
Expand Down Expand Up @@ -708,7 +708,7 @@ declare class jsstp_t{
* @example
* jsstp.get_supported_events().then(result => console.log(result));
* @example
* //示例代码(AYA):
* //サンプルコード(AYA):
* SHIORI_EV.On_Get_Supported_Events: void {
* _L=GETFUNCLIST('On')
* _base_local_event_funcs=IARRAY
Expand Down Expand Up @@ -749,7 +749,7 @@ declare class jsstp_t{
}>;
/**
* fmo情報を入手
* @returns {Promise<fmo_info_t>} fmoインフォメーション
* @returns {Promise<fmo_info_t>} fmo情報
* @example
* let fmo=await jsstp.get_fmo_infos();
* if(fmo.available)
Expand Down Expand Up @@ -919,7 +919,7 @@ type ghost_events_queryer_t = ghost_events_queryer_t_class_impl & ghost_events_q
* @example
* jsstp.SEND({
* Event: "OnTest",
* Script: "\\s[0]Hell Wold!\\e"
* Script: "\\s[0]Hello Wold!\\e"
* });
* @var jsstp
* @type {jsstp_t}
Expand Down
2 changes: 1 addition & 1 deletion src/.decls/jp/base/tools.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ declare class ExtensibleFunction<args_T extends Array<any>,return_T> extends Fun
readonly length: number;
}
/**
* ghost交互中的安全等级
* ghostとの通信におけるセキュリティレベル
*/
type security_level_t = "local" | "external";

Expand Down
12 changes: 6 additions & 6 deletions src/.decls/jp/jsstp.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//构建一个包装器与http://localhost:9801/api/sstp/v1通信。
//发信方法:Content-Type: text/plain HTTP/1.1でPOST
//收信方法:HTTP/1.1 200 OKのContent-Type: text/plain
//http://localhost:9801/api/sstp/v1 でラッパーを構築する
//送信方法:Content-Type: text/plain HTTP/1.1 でPOST
//受診方法:HTTP/1.1 200 OK Content-Type: text/plain

import type base_sstp_info_t from "./types/base_sstp_info_t.d.ts";
import type sstp_info_t from "./types/sstp_info_t.d.ts";
Expand All @@ -10,21 +10,21 @@ import type ghost_events_queryer_t from "./types/ghost_events_queryer_t.d.ts";
import type jsstp_t from "./types/jsstp_t.d.ts";
import type list_info_t from "./types/list_info_t.d.js";

//定义一个包装器
//ラッパーの定義
/**
* sstpラッパー
* @example
* jsstp.SEND({
* Event: "OnTest",
* Script: "\\s[0]Hell Wold!\\e"
* Script: "\\s[0]Hello Wold!\\e"
* });
* @var jsstp
* @type {jsstp_t}
* @global
*/
declare var jsstp: jsstp_t;

//导出
//エクスポート
export {
jsstp as default,
jsstp,
Expand Down
Loading
Loading