Skip to content

Commit

Permalink
输出可读版本
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Dec 2, 2024
1 parent 7e90f0c commit ab3c0e1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private void startupIPFS() {
this.ipfs = new IPFS(ipfsRpc);
log.info(tlUI(Lang.IPFS_INIT_WELCOME, ipfs.version()));
} catch (Exception e) {
log.error(tlUI(Lang.IPFS_INIT_FAILED), e);
log.error(tlUI(Lang.IPFS_INIT_FAILED, e.getMessage()));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/lang/en_us/messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ PORT_MAPPER_PORT_MAPPED_BUT_INTERNAL_ADDRESS: "[PortMapper] Need Attention! Alth
PORT_MAPPER_PORT_MAPPING_FAILED: "[PortMapper] Failed to create/update port forwarding on interface {} for port {}/{}, re-trying; If this prompt appears frequently, check if the device is connected to multiple networks (e.g. Tailscale)"
LAB_EXPERIMENT_IPFS_TITLE: "IPFS Decentralized Network"
LAB_EXPERIMENT_IPFS_DESCRIPTION: "After participating in this experiment, the beta [IPFS (Interplanetary File System)](https://ipfs.tech/) decentralized network will be enabled on PeerBanHelper. \nIPFS (Interstellar File System) is a distributed network with no centralized servers, where each computer is a node in the IPFS network. IPFS is flexible and resilient, you can store and find files and pass data or resources through IPFS, and speed and accessibility improve automatically as resources become progressively more popular. When a piece of data is no longer needed by any node (and no one is keeping it), it is automatically eliminated from the network over time."
IPFS_INIT_FAILED: "[IPFS] Initializing Kubo IPFS RPC fails, IPFS functionality will not be available, make sure Kubo IPFS is running!"
IPFS_INIT_FAILED: "[IPFS] Initializing Kubo IPFS RPC fails, IPFS functionality will not be available, make sure Kubo IPFS is running: {}"
IPFS_INIT_WELCOME: "[IPFS] Successfully connected to Kubo IPFS RPC, version {}. PeerBanHelper has successfully connected to the IPFS network via Kubo and provides extended functionality"
IPFS_BANLIST_PUBLISHED: "[IPFS] The block list has been updated to IPFS, along with the IPNS record."
MODULE_IBL_UPDATE_IPFS_NOT_AVAILABLE: "Couldn't update Rule Subscription from IPFS/IPNS because IPFS feature not available."
2 changes: 1 addition & 1 deletion src/main/resources/lang/messages_fallback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ PUSH_PROVIDER_API_PROVIDER_NOT_EXISTS: "请求的推送渠道未在 PeerBanHelpe

LAB_EXPERIMENT_IPFS_TITLE: "IPFS 去中心化网络"
LAB_EXPERIMENT_IPFS_DESCRIPTION: "参与此实验后,测试版 [IPFS (星际文件系统)](https://ipfs.tech/) 去中心化网络将在 PeerBanHelper 上启用。\nIPFS (星际文件系统) 是一个无中心服务器的分布式网络,每一台计算机都是 IPFS 网络中的一个节点。IPFS 灵活且富有弹性,您可以通过 IPFS 存储和查找文件和传递数据或资源,并且随着资源变得逐渐热门,速度和可访问性都会自动改善。当一个数据不再被任何节点需要(且无人刻意保留它)时,它也会随着时间推移而从网络中自动淘汰移除。"
IPFS_INIT_FAILED: "[IPFS] 初始化 Kubo IPFS RPC 失败,IPFS 功能将不可用,请确保 Kubo IPFS 正在运行"
IPFS_INIT_FAILED: "[IPFS] 初始化 Kubo IPFS RPC 失败,IPFS 功能将不可用,请确保 Kubo IPFS 正在运行: {}"
IPFS_INIT_WELCOME: "[IPFS] 已成功连接到 Kubo IPFS RPC,版本 {}。PeerBanHelper 已成功通过 Kubo 连接 IPFS 网络,并提供扩展功能"
IPFS_BANLIST_PUBLISHED: "[IPFS] 已更新封禁列表到 IPFS,并一同更新了 IPNS 记录"
MODULE_IBL_UPDATE_IPFS_NOT_AVAILABLE: "无法从 IPFS/IPNS 更新规则订阅,因为 IPFS 功能未启用"
2 changes: 1 addition & 1 deletion src/main/resources/lang/zh_cn/messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ PORT_MAPPER_PORT_MAPPED_BUT_INTERNAL_ADDRESS: "[PortMapper] 需要注意!尽
PORT_MAPPER_PORT_MAPPING_FAILED: "[PortMapper] 在网卡 {} 上创建/更新端口映射 {}/{} 失败,正在重试;如果频繁出现此提示,请检查是否设备接入了多个网络(如:Tailscale)"
LAB_EXPERIMENT_IPFS_TITLE: "IPFS 去中心化网络"
LAB_EXPERIMENT_IPFS_DESCRIPTION: "参与此实验后,测试版 [IPFS (星际文件系统)](https://ipfs.tech/) 去中心化网络将在 PeerBanHelper 上启用。\nIPFS (星际文件系统) 是一个无中心服务器的分布式网络,每一台计算机都是 IPFS 网络中的一个节点。IPFS 灵活且富有弹性,您可以通过 IPFS 存储和查找文件和传递数据或资源,并且随着资源变得逐渐热门,速度和可访问性都会自动改善。当一个数据不再被任何节点需要(且无人刻意保留它)时,它也会随着时间推移而从网络中自动淘汰移除。"
IPFS_INIT_FAILED: "[IPFS] 初始化 Kubo IPFS RPC 失败,IPFS 功能将不可用,请确保 Kubo IPFS 正在运行"
IPFS_INIT_FAILED: "[IPFS] 初始化 Kubo IPFS RPC 失败,IPFS 功能将不可用,请确保 Kubo IPFS 正在运行: {}"
IPFS_INIT_WELCOME: "[IPFS] 已成功连接到 Kubo IPFS RPC,版本 {}。PeerBanHelper 已成功通过 Kubo 连接 IPFS 网络,并提供扩展功能"
IPFS_BANLIST_PUBLISHED: "[IPFS] 已更新封禁列表到 IPFS,并一同更新了 IPNS 记录"
MODULE_IBL_UPDATE_IPFS_NOT_AVAILABLE: "无法从 IPFS/IPNS 更新规则订阅,因为 IPFS 功能未启用"

0 comments on commit ab3c0e1

Please sign in to comment.