Skip to content

Commit

Permalink
Internationalization
Browse files Browse the repository at this point in the history
  • Loading branch information
yixiangboy committed Oct 15, 2019
1 parent 711ed09 commit 728b7f3
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 7 deletions.
12 changes: 11 additions & 1 deletion iOS/DoraemonKit/Resource/en.lproj/Doraemon.strings
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
"消息体" = "Message Body";
"检测记录" = "Monitor results";
"帧率检测" = "FPS monitor";
"大图检测" = "Large image detection";
"大图检测" = "Large Image";
"大图检测开关" = "Larage image detection switch";
"启动耗时" = "Start time";
"启动耗时统计" = "Start time statistics";
Expand Down Expand Up @@ -254,4 +254,14 @@
"温馨提示" = "tips";
"你可以通过下面地址访问" = "access server address";
"服务已关闭" = "server is off";
"UI层级检查" = "UI Hierarchy";
"UI层级检查开关" = "UI Hierarchy switch";
"函数耗时" = "Time Profiler";
"内存泄漏" = "Memory Leak";
"内存泄漏检测开关" = "Memory Leak Switch";
"泄漏检测弹框提醒" = "Memory Leak Alert Warning";
"内存泄漏测试" = "Memory Leak Test";
"日志" = "Log";
"缓存" = "Cache";
"信息" = "Info";
}
10 changes: 10 additions & 0 deletions iOS/DoraemonKit/Resource/zh-Hans.lproj/Doraemon.strings
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,14 @@
"UIWebView" = "UIWebView";
"显示入口" = "显示入口";
"隐藏入口" = "隐藏入口";
"UI层级检查" = "UI层级检查";
"UI层级检查开关" = "UI层级检查开关";
"函数耗时" = "函数耗时";
"内存泄漏" = "内存泄漏";
"内存泄漏检测开关" = "内存泄漏检测开关";
"泄漏检测弹框提醒" = "泄漏检测弹框提醒";
"内存泄漏测试" = "内存泄漏测试";
"日志" = "日志";
"缓存" = "缓存";
"信息" = "信息";
}
6 changes: 3 additions & 3 deletions iOS/DoraemonKit/Src/Core/Manager/DoraemonManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -417,21 +417,21 @@ - (DoraemonManagerPluginTypeModel *)getDefaultPluginDataWithPluginType:(Doraemon
{
NSArray *dataArray = @{
@(DoraemonManagerPluginType_DoraemonWeexLogPlugin) : @[
@{kTitle:@"日志"},
@{kTitle:DoraemonLocalizedString(@"日志")},
@{kDesc:@"Weex日志显示"},
@{kIcon:@"doraemon_log"},
@{kPluginName:@"DoraemonWeexLogPlugin"},
@{kAtModule:@"Weex专区"}
],
@(DoraemonManagerPluginType_DoraemonWeexStoragePlugin) : @[
@{kTitle:@"缓存"},
@{kTitle:DoraemonLocalizedString(@"缓存")},
@{kDesc:@"weex storage 查看"},
@{kIcon:@"doraemon_file"},
@{kPluginName:@"DoraemonWeexStoragePlugin"},
@{kAtModule:@"Weex专区"}
],
@(DoraemonManagerPluginType_DoraemonWeexInfoPlugin) : @[
@{kTitle:@"信息"},
@{kTitle:DoraemonLocalizedString(@"信息")},
@{kDesc:@"weex 信息查看"},
@{kIcon:@"doraemon_app_info"},
@{kPluginName:@"DoraemonWeexInfoPlugin"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ @implementation DoraemonTimeProfilerViewController
- (void)viewDidLoad {
[super viewDidLoad];

self.title = @"函数耗时";
self.title = DoraemonLocalizedString(@"函数耗时");

NSString *contet = @"\n\n\n 函数不提供UI操作界面,在你需要分析的代码之前插入 \n\n [DoraemonTimeProfiler startRecord]; \n\n结束的地方加上 \n\n[DoraemonTimeProfiler stopRecord];\n\n 然后手动操作App执行代码流程,即可在控制台看到完整的函数耗时分析。\n\nsdk过滤了代码调用层次>10层,耗时小于1ms的函数调用,当然你也可以通过api自行设置。 \n\n 分析完毕之后,记得删掉startRecord和stopRecord的函数调用。";
_contentLabel = [[UILabel alloc] init];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ @implementation DoraemonMLeaksFinderViewController

- (void)viewDidLoad {
[super viewDidLoad];
self.title = @"内存泄漏检查";
self.title = @"内存泄漏";

_switchView = [[DoraemonCellSwitch alloc] initWithFrame:CGRectMake(0, self.bigTitleView.doraemon_bottom, self.view.doraemon_width, 53)];
[_switchView renderUIWithTitle:DoraemonLocalizedString(@"内存泄漏检测开关") switchOn:[[DoraemonCacheManager sharedInstance] memoryLeak]];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
}else if(row==7){
txt = DoraemonLocalizedString(@"通用测试Demo");
}else if(row==8){
txt = @"内存泄漏测试";
txt = DoraemonLocalizedString(@"内存泄漏测试");
}
cell.textLabel.text = txt;
return cell;
Expand Down

0 comments on commit 728b7f3

Please sign in to comment.