修改国际化

This commit is contained in:
2025-12-26 14:38:29 +08:00
parent f24750458a
commit 6713f36387
7 changed files with 31 additions and 63 deletions

View File

@@ -307,11 +307,11 @@ typedef NS_ENUM(NSInteger, KBSearchSection) {
KBSearchSectionHeader *header = [collectionView dequeueReusableSupplementaryViewOfKind:kind withReuseIdentifier:kHeaderId forIndexPath:indexPath];
if (indexPath.section == KBSearchSectionHistory) {
// sizeForHeader 0
[header configWithTitle:@"Historical Search" showTrash:self.historyWords.count > 0];
[header configWithTitle:KBLocalized(@"Historical Search") showTrash:self.historyWords.count > 0];
KBWeakSelf
header.onTapTrash = ^{ [weakSelf clearHistory]; };
} else {
[header configWithTitle:@"Recommended Skin" showTrash:NO];
[header configWithTitle:KBLocalized(@"Recommended Skin") showTrash:NO];
}
return header;
}
@@ -391,7 +391,7 @@ typedef NS_ENUM(NSInteger, KBSearchSection) {
if (!_searchBarView) {
_searchBarView = [[KBSearchBarView alloc] init];
_searchBarView.bgCornerRadius = 18;
_searchBarView.placeholder = @"Themes";
// _searchBarView.placeholder = @"Themes";
KBWeakSelf
_searchBarView.onSearch = ^(NSString * _Nonnull keyword) {
// +