new UI CN localization

This commit is contained in:
TrueZhuanjia committed 2025-06-16 16:54:39 +08:00
1 parent 1b9e9575f1
commit 5653215f68
5 files changed
+2152 -2275

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -47,6 +47,29 @@
} }
} }
}, },
" Add Host" : {
"extractionState" : "manual",
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : " 添加主机"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : " 添加主机"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : " 添加主机"
}
}
}
},
"!ML_TEST_RESULT_INCONCLUSIVE" : { "!ML_TEST_RESULT_INCONCLUSIVE" : {
"extractionState" : "manual", "extractionState" : "manual",
"localizations" : { "localizations" : {
@@ -237,6 +260,35 @@
} }
} }
}, },
"Add Host" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "添加主机"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "添加主机"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "添加主机"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "添加主机"
}
}
}
},
"Add Host Manually" : { "Add Host Manually" : {
"extractionState" : "manual", "extractionState" : "manual",
"localizations" : { "localizations" : {
@@ -306,6 +358,29 @@
} }
} }
}, },
"All Settings" : {
"extractionState" : "manual",
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "全部设置"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "全部设置"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "全部设置"
}
}
}
},
"Alpha" : { "Alpha" : {
"extractionState" : "manual", "extractionState" : "manual",
"localizations" : { "localizations" : {
@@ -1261,6 +1336,29 @@
} }
} }
}, },
"Favorite Settings" : {
"extractionState" : "manual",
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "收藏夹"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "收藏夹"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "收藏夹"
}
}
}
},
"First Launch Tips" : { "First Launch Tips" : {
"extractionState" : "manual", "extractionState" : "manual",
"localizations" : { "localizations" : {
@@ -2642,6 +2740,29 @@
} }
} }
}, },
"Remove Items" : {
"extractionState" : "manual",
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "移除设置项"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "移除设置项"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "移除设置项"
}
}
}
},
"Resume App" : { "Resume App" : {
"extractionState" : "manual", "extractionState" : "manual",
"localizations" : { "localizations" : {
@@ -1293,7 +1293,7 @@ static NSMutableSet* hostList;
UIImageSymbolConfiguration *config = [UIImageSymbolConfiguration configurationWithPointSize:17 weight:UIImageSymbolWeightMedium]; UIImageSymbolConfiguration *config = [UIImageSymbolConfiguration configurationWithPointSize:17 weight:UIImageSymbolWeightMedium];
UIImage *image = [UIImage systemImageNamed:@"plus.circle" withConfiguration:config]; UIImage *image = [UIImage systemImageNamed:@"plus.circle" withConfiguration:config];
[button setImage:image forState:UIControlStateNormal]; [button setImage:image forState:UIControlStateNormal];
[button setTitle:@" Add Host" forState:UIControlStateNormal]; // 注意空格用于间隔 [button setTitle:[LocalizationHelper localizedStringForKey:@" Add Host"] forState:UIControlStateNormal]; // 注意空格用于间隔
} else { } else {
[button setTitle:@"Add Host" forState:UIControlStateNormal]; // 注意空格用于间隔 [button setTitle:@"Add Host" forState:UIControlStateNormal]; // 注意空格用于间隔
} }
@@ -1548,11 +1548,12 @@ static NSMutableSet* hostList;
UILongPressGestureRecognizer *longPress = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(handleMenuResize:)]; UILongPressGestureRecognizer *longPress = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(handleMenuResize:)];
[self.view addGestureRecognizer:longPress]; [self.view addGestureRecognizer:longPress];
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"iPad" bundle:nil]; /*
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:[self isIPhone]?@"iPhone":@"iPad" bundle:nil];
SettingsViewController *viewController = [storyboard instantiateViewControllerWithIdentifier:@"settingsViewController"]; SettingsViewController *viewController = [storyboard instantiateViewControllerWithIdentifier:@"settingsViewController"];
// 强制加载视图 // 强制加载视图
__unused UIView *view = viewController.view; __unused UIView *view = viewController.view;
*/
} }
-(void)viewDidLayoutSubviews{ -(void)viewDidLayoutSubviews{
@@ -190,9 +190,7 @@ CGSize resolutionTable[RESOLUTION_TABLE_SIZE];
} }
// Add a bit of padding so the view doesn't end right at the button of the display // Add a bit of padding so the view doesn't end right at the button of the display
self.scrollView.contentSize = CGSizeMake(self.scrollView.contentSize.width, self.scrollView.contentSize = CGSizeMake(self.scrollView.contentSize.width, _parentStack.frame.size.height + [self getStandardNavBarHeight] + 20);
[self isIPhone] ? highestViewY + 20 : _parentStack.frame.size.height + [self getStandardNavBarHeight] + 20);
double delayInSeconds = 3; double delayInSeconds = 3;
// Convert the delay into a dispatch_time_t value // Convert the delay into a dispatch_time_t value
dispatch_time_t delayTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC)); dispatch_time_t delayTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
@@ -1157,7 +1155,7 @@ BOOL isCustomResolution(CGSize res) {
// return; // return;
BOOL isIPad = ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad); BOOL isIPad = ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad);
if(isIPad){ if(true){
//[self layoutWidgetes]; // layout for ipad tmply //[self layoutWidgetes]; // layout for ipad tmply
// [self.view ] // [self.view ]
for(UIView* view in self.view.subviews){ for(UIView* view in self.view.subviews){
File diff suppressed because it is too large. Load diff