diff --git a/app/Sources/Views/LogsView.swift b/app/Sources/Views/LogsView.swift index dcf5811..e68d311 100644 --- a/app/Sources/Views/LogsView.swift +++ b/app/Sources/Views/LogsView.swift @@ -44,6 +44,7 @@ struct LogsView: View { } .pickerStyle(.menu) .labelsHidden() + .help(loc("logs.filter.levelHelp")) Text(loc("logs.filter.type")) .font(.caption) @@ -63,6 +64,9 @@ struct LogsView: View { Spacer() + Text(loc("logs.recordLevel")) + .font(.caption) + .foregroundColor(.secondary) Picker("", selection: Binding( get: { viewModel.logLevel }, set: { newLevel in @@ -76,6 +80,7 @@ struct LogsView: View { } .pickerStyle(.menu) .labelsHidden() + .help(loc("logs.recordLevelHelp")) Button(action: { viewModel.autoScroll.toggle() }) { Image(systemName: viewModel.autoScroll ? "arrow.down.to.line.circle.fill" : "arrow.down.to.line.circle") diff --git a/app/Sources/en.lproj/Localizable.strings b/app/Sources/en.lproj/Localizable.strings index 743556b..4743837 100644 --- a/app/Sources/en.lproj/Localizable.strings +++ b/app/Sources/en.lproj/Localizable.strings @@ -209,8 +209,11 @@ "logs.totalCount" = "%d entries"; "logs.autoScroll.on" = "Auto-scroll: ON (click to disable)"; "logs.autoScroll.off" = "Auto-scroll: OFF (click to enable)"; -"logs.filter.level" = "Level"; +"logs.filter.level" = "Display level"; "logs.filter.type" = "Type"; +"logs.filter.levelHelp" = "Only filters logs that have already been recorded"; +"logs.recordLevel" = "Record level"; +"logs.recordLevelHelp" = "Logs below this level are not recorded"; "dashboard.serviceStatus" = "Service Status"; "dashboard.online" = "Online"; "dashboard.offline" = "Offline"; diff --git a/app/Sources/zh.lproj/Localizable.strings b/app/Sources/zh.lproj/Localizable.strings index 361ede3..a0ee79a 100644 --- a/app/Sources/zh.lproj/Localizable.strings +++ b/app/Sources/zh.lproj/Localizable.strings @@ -361,8 +361,11 @@ "menu.minimize" = "最小化"; "menu.close" = "关闭"; "menu.help" = "帮助"; -"logs.filter.level" = "级别"; +"logs.filter.level" = "显示级别"; "logs.filter.type" = "类型"; +"logs.filter.levelHelp" = "只筛选当前已记录的日志"; +"logs.recordLevel" = "记录级别"; +"logs.recordLevelHelp" = "低于此级别的日志不会被记录"; "adapter.importFromProvider" = "导入模型"; "test.copyCurl" = "复制 curl";