From 9d19c99abe07c1b6d161ea1ef2bd935d7dfcbf62 Mon Sep 17 00:00:00 2001 From: Menci Date: Tue, 28 Jan 2025 05:00:43 +0800 Subject: [PATCH] [F] "Felica" -> "FeliCa" --- AquaNet/src/libs/i18n/en_ref.ts | 2 +- AquaNet/src/libs/i18n/zh.ts | 2 +- AquaNet/src/pages/Home/LinkCard.svelte | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/AquaNet/src/libs/i18n/en_ref.ts b/AquaNet/src/libs/i18n/en_ref.ts index e67a49d3..3b2ec3a0 100644 --- a/AquaNet/src/libs/i18n/en_ref.ts +++ b/AquaNet/src/libs/i18n/en_ref.ts @@ -107,7 +107,7 @@ export const EN_REF_HOME = { 'home.linkcard.notfound': 'Card not found', 'home.linkcard.unlink': 'Unlink Card', 'home.linkcard.unlink-notice': 'Are you sure you want to unlink this card?', - 'home.linkcard.felica-ac-warning': 'This Access Code is of a Felica AIC card.\nIf you are logging in with a physical card (not aime.txt emulation), unlike the official server, you need to bind the Felica SN of the card (or the 0-prefixed card number shown in the game) instead of this code.\nIf you are logging in with aime.txt emulation, please ignore this warning and proceed.', + 'home.linkcard.felica-ac-warning': 'This Access Code is of a FeliCa AIC card.\nIf you are logging in with a physical card (not aime.txt emulation), unlike the official server, you need to bind the FeliCa SN of the card (or the 00-prefixed card number shown in the game) instead of this code.\nIf you are logging in with aime.txt emulation, please ignore this warning and proceed.', 'home.setup.welcome': 'Welcome! If you own an arcade cabinet or game setup, please follow the instructions below to set up the connection with AquaDX.', 'home.setup.blockquote': 'We assume that you already have the required files and can run the game (e.g. ROM and segatools) that come with the cabinet or game setup. If not, please contact the seller of your device for the required files, as we will not provide them for copyright reasons.', 'home.setup.get': 'Get started', diff --git a/AquaNet/src/libs/i18n/zh.ts b/AquaNet/src/libs/i18n/zh.ts index 6d651bb0..b81ffc6e 100644 --- a/AquaNet/src/libs/i18n/zh.ts +++ b/AquaNet/src/libs/i18n/zh.ts @@ -117,7 +117,7 @@ const zhHome: typeof EN_REF_HOME = { 'home.linkcard.notfound': "找不到卡", 'home.linkcard.unlink': "取消链接", 'home.linkcard.unlink-notice': "你确定要取消此卡的链接吗?", - 'home.linkcard.felica-ac-warning': "该 Access Code 是一张 Felica AIC 卡。\n如果你使用实体卡(而非 aime.txt 模拟)刷卡登录游戏,与官方服务器不同,你需要绑定该卡的 Felica SN(或与之对应的,游戏界面中查看得到的 0 开头的卡号)而非此号码。\n如果你使用 aime.txt 模拟登录,请忽略本警告继续绑定。", + 'home.linkcard.felica-ac-warning': "该 Access Code 是一张 FeliCa AIC 卡。\n如果你使用实体卡(而非 aime.txt 模拟)刷卡登录游戏,与官方服务器不同,你需要绑定该卡的 FeliCa SN(或与之对应的,游戏界面中查看得到的 00 开头的卡号)而非此号码。\n如果你使用 aime.txt 模拟登录,请忽略本警告继续绑定。", 'home.setup.welcome': "欢迎! 如果您有街机框体或者手台,请按照以下说明设置以连接到 AquaDX。", 'home.setup.blockquote': "我们假设您已经拥有所需的文件,并且可以启动机台或手台附带的游戏(例如 ROM 和 segatools)。如果没有,请联系您设备的卖家以获取所需的文件,因为出于版权原因,我们不会提供这些文件。", 'home.setup.get': "开始", diff --git a/AquaNet/src/pages/Home/LinkCard.svelte b/AquaNet/src/pages/Home/LinkCard.svelte index c0819e7f..9cdd7fd3 100644 --- a/AquaNet/src/pages/Home/LinkCard.svelte +++ b/AquaNet/src/pages/Home/LinkCard.svelte @@ -223,7 +223,7 @@ function formatLUID(luid: string, ghost: boolean = false) { if (ghost) return luid.slice(0, 6) + " " + (luid.slice(6).match(/.{4}/g)?.join(" ") ?? "") switch (cardType(luid)) { - case "Felica SN": + case "FeliCa SN": return BigInt(luid).toString(16).toUpperCase().padStart(16, "0").match(/.{1,2}/g)!.join(":") case "Access Code": return luid.match(/.{4}/g)!.join(" ") @@ -233,9 +233,9 @@ } function cardType(luid: string) { - if (luid.startsWith("00")) return "Felica SN" + if (luid.startsWith("00")) return "FeliCa SN" if (luid.length === 20) return "Access Code" - if (luid.includes(":")) return "Felica SN" + if (luid.includes(":")) return "FeliCa SN" if (luid.includes(" ")) return "Access Code" return "Unknown" }