From f24750458a1c4487fdb95dceaa58a5043694ca01 Mon Sep 17 00:00:00 2001 From: CodeST <694468528@qq.com> Date: Fri, 26 Dec 2025 14:19:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AB=8B=E5=88=BB=E6=B8=85?= =?UTF-8?q?=E7=A9=BA=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Utils/KBBackspaceLongPressHandler.m | 6 +-- .../Localization/en.lproj/Localizable.strings | 53 +------------------ .../zh-Hans.lproj/Localizable.strings | 52 +----------------- 3 files changed, 5 insertions(+), 106 deletions(-) diff --git a/CustomKeyboard/Utils/KBBackspaceLongPressHandler.m b/CustomKeyboard/Utils/KBBackspaceLongPressHandler.m index 0a34511..41290e8 100644 --- a/CustomKeyboard/Utils/KBBackspaceLongPressHandler.m +++ b/CustomKeyboard/Utils/KBBackspaceLongPressHandler.m @@ -16,7 +16,7 @@ static const NSTimeInterval kKBBackspaceChunkFastDelay = 1.4; static const NSInteger kKBBackspaceChunkSize = 6; static const NSInteger kKBBackspaceChunkSizeFast = 12; static const CGFloat kKBBackspaceClearLabelCornerRadius = 8.0; -static const CGFloat kKBBackspaceClearLabelHeight = 26.0; +static const CGFloat kKBBackspaceClearLabelHeight = 34; static const CGFloat kKBBackspaceClearLabelPaddingX = 10.0; static const CGFloat kKBBackspaceClearLabelTopGap = 6.0; static const CGFloat kKBBackspaceClearLabelHorizontalInset = 6.0; @@ -411,9 +411,9 @@ typedef NS_ENUM(NSInteger, KBBackspaceChunkClass) { - (UILabel *)backspaceClearLabel { if (!_backspaceClearLabel) { UILabel *label = [[UILabel alloc] initWithFrame:CGRectZero]; - label.text = @"立刻清空"; + label.text = KBLocalized(@"Clear"); label.textAlignment = NSTextAlignmentCenter; - label.font = [UIFont systemFontOfSize:12 weight:UIFontWeightSemibold]; + label.font = [UIFont systemFontOfSize:16 weight:UIFontWeightSemibold]; label.textColor = [KBSkinManager shared].current.keyTextColor ?: UIColor.blackColor; label.backgroundColor = [self kb_backspaceClearLabelNormalColor]; label.layer.cornerRadius = kKBBackspaceClearLabelCornerRadius; diff --git a/Shared/Localization/en.lproj/Localizable.strings b/Shared/Localization/en.lproj/Localizable.strings index 284b68c..a2a45a1 100644 --- a/Shared/Localization/en.lproj/Localizable.strings +++ b/Shared/Localization/en.lproj/Localizable.strings @@ -163,7 +163,7 @@ "Log Out" = "Log Out"; "Ranking List" = "Ranking List"; "Persona circle" = "Persona circle"; - +"Clear" = "Clear"; // Skin sample names @@ -201,57 +201,6 @@ "Consumption Details" = "Consumption Details"; "No data" = "No data"; -// Example categories/items -"能力" = "Ability"; -"能力2" = "Ability 2"; -"爱好" = "Hobby"; -"爱好2" = "Hobby 2"; -"队友" = "Teammates"; -"队友2" = "Teammates 2"; -"高级能力" = "Advanced abilities"; -"高级爱好" = "Advanced hobbies"; -"高级队友" = "Advanced teammates"; - -// Example fruits etc. -"果冻橙" = "Jelly orange"; -"芒果" = "Mango"; -"有机水果卷心菜" = "Organic cabbage"; -"水果萝卜" = "Fruit radish"; -"熟冻帝王蟹" = "Cooked king crab"; -"赣南脐橙" = "Gannan navel orange"; -"苹果" = "Apple"; -"胡萝卜" = "Carrot"; -"葡萄" = "Grape"; -"西瓜" = "Watermelon"; -"小龙虾" = "Crawfish"; -"吃烤肉" = "Eat barbecue"; -"吃鸡腿肉" = "Eat chicken drumsticks"; -"吃牛肉" = "Eat beef"; -"各种肉" = "All kinds of meat"; - -// One Piece sample roles -"【剑士】罗罗诺亚·索隆" = "[Swordsman] Roronoa Zoro"; -"【航海士】娜美" = "[Navigator] Nami"; -"【狙击手】乌索普" = "[Sniper] Usopp"; -"【厨师】香吉士" = "[Cook] Sanji"; -"【船医】托尼托尼·乔巴" = "[Doctor] Tony Tony Chopper"; -"【船匠】 弗兰奇" = "[Shipwright] Franky"; -"【音乐家】布鲁克" = "[Musician] Brook"; -"【考古学家】妮可·罗宾" = "[Archaeologist] Nico Robin"; - -// Rubber-series sample moves -"橡胶火箭" = "Gum-Gum Rocket"; -"橡胶火箭炮" = "Gum-Gum Bazooka"; -"橡胶机关枪" = "Gum-Gum Gatling"; -"橡胶子弹" = "Gum-Gum Bullet"; -"橡胶攻城炮" = "Gum-Gum Cannon"; -"橡胶象枪" = "Gum-Gum Elephant Gun"; -"橡胶象枪乱打" = "Gum-Gum Elephant Gatling"; -"橡胶灰熊铳" = "Gum-Gum Grizzly Magnum"; -"橡胶雷神象枪" = "Gum-Gum Thor Elephant Gun"; -"橡胶猿王枪" = "Gum-Gum King Kong Gun"; -"橡胶犀·榴弹炮" = "Gum-Gum Rhino Grenade"; -"橡胶大蛇炮" = "Gum-Gum Great Serpent Cannon"; // Misc "测试" = "Test"; diff --git a/Shared/Localization/zh-Hans.lproj/Localizable.strings b/Shared/Localization/zh-Hans.lproj/Localizable.strings index 4d33fc6..2a630bd 100644 --- a/Shared/Localization/zh-Hans.lproj/Localizable.strings +++ b/Shared/Localization/zh-Hans.lproj/Localizable.strings @@ -163,6 +163,7 @@ "Log Out" = "退出"; "Ranking List" = "排行榜"; "Persona circle" = "圈子"; +"Clear" = "立刻清空"; // 皮肤示例名称 "极光" = "极光"; @@ -199,57 +200,6 @@ "Consumption Details" = "消费明细"; "No data" = "暂无数据"; -// 示例商品/分类 -"能力" = "能力"; -"能力2" = "能力2"; -"爱好" = "爱好"; -"爱好2" = "爱好2"; -"队友" = "队友"; -"队友2" = "队友2"; -"高级能力" = "高级能力"; -"高级爱好" = "高级爱好"; -"高级队友" = "高级队友"; - -// 示例水果等 -"果冻橙" = "果冻橙"; -"芒果" = "芒果"; -"有机水果卷心菜" = "有机水果卷心菜"; -"水果萝卜" = "水果萝卜"; -"熟冻帝王蟹" = "熟冻帝王蟹"; -"赣南脐橙" = "赣南脐橙"; -"苹果" = "苹果"; -"胡萝卜" = "胡萝卜"; -"葡萄" = "葡萄"; -"西瓜" = "西瓜"; -"小龙虾" = "小龙虾"; -"吃烤肉" = "吃烤肉"; -"吃鸡腿肉" = "吃鸡腿肉"; -"吃牛肉" = "吃牛肉"; -"各种肉" = "各种肉"; - -// One Piece 示例角色 -"【剑士】罗罗诺亚·索隆" = "【剑士】罗罗诺亚·索隆"; -"【航海士】娜美" = "【航海士】娜美"; -"【狙击手】乌索普" = "【狙击手】乌索普"; -"【厨师】香吉士" = "【厨师】香吉士"; -"【船医】托尼托尼·乔巴" = "【船医】托尼托尼·乔巴"; -"【船匠】 弗兰奇" = "【船匠】 弗兰奇"; -"【音乐家】布鲁克" = "【音乐家】布鲁克"; -"【考古学家】妮可·罗宾" = "【考古学家】妮可·罗宾"; - -// 橡胶系列示例文案 -"橡胶火箭" = "橡胶火箭"; -"橡胶火箭炮" = "橡胶火箭炮"; -"橡胶机关枪" = "橡胶机关枪"; -"橡胶子弹" = "橡胶子弹"; -"橡胶攻城炮" = "橡胶攻城炮"; -"橡胶象枪" = "橡胶象枪"; -"橡胶象枪乱打" = "橡胶象枪乱打"; -"橡胶灰熊铳" = "橡胶灰熊铳"; -"橡胶雷神象枪" = "橡胶雷神象枪"; -"橡胶猿王枪" = "橡胶猿王枪"; -"橡胶犀·榴弹炮" = "橡胶犀·榴弹炮"; -"橡胶大蛇炮" = "橡胶大蛇炮"; // 其它 "Test" = "测试";