diff --git a/CodeEdit/Localization/en.lproj/Localizable.strings b/CodeEdit/Localization/en.lproj/Localizable.strings index dbb06ec700..94bbe51d20 100644 --- a/CodeEdit/Localization/en.lproj/Localizable.strings +++ b/CodeEdit/Localization/en.lproj/Localizable.strings @@ -1 +1,20 @@ "Hello, world!"="Hello, world!"; + +// Settings - General Tab +"General"="General"; + +// Settings - File Icon Style +"File Icon Style"="File Icon Style"; +"Color"="Color"; +"Monochrome"="Monochrome"; + +// Settings - Appearance +"Appearance"="Appearance"; +"System"="System"; +"Light"="Light"; +"Dark"="Dark"; + +// Settings Reopen Behavior +"Reopen Behavior"="Reopen Behavior"; +"Open Panel"="Open Panel"; +"New Document"="New Document"; diff --git a/CodeEdit/Settings/GeneralSettingsView.swift b/CodeEdit/Settings/GeneralSettingsView.swift index bf4bf7897b..edcca35083 100644 --- a/CodeEdit/Settings/GeneralSettingsView.swift +++ b/CodeEdit/Settings/GeneralSettingsView.swift @@ -16,30 +16,30 @@ struct GeneralSettingsView: View { var body: some View { Form { - Picker("Appearance", selection: $appearance) { - Text("System") + Picker("Appearance".localized(), selection: $appearance) { + Text("System".localized()) .tag(Appearances.system) Divider() - Text("Light") + Text("Light".localized()) .tag(Appearances.light) - Text("Dark") + Text("Dark".localized()) .tag(Appearances.dark) } .onChange(of: appearance) { tag in tag.applyAppearance() } - Picker("File Icon Style", selection: $fileIconStyle) { - Text("Color") + Picker("File Icon Style".localized(), selection: $fileIconStyle) { + Text("Color".localized()) .tag(FileIconStyle.color) - Text("Monochrome") + Text("Monochrome".localized()) .tag(FileIconStyle.monochrome) } - Picker("Reopen Behavior", selection: $reopenBehavior) { - Text("Open Panel") + Picker("Reopen Behavior".localized(), selection: $reopenBehavior) { + Text("Open Panel".localized()) .tag(ReopenBehavior.openPanel) - Text("New Document") + Text("New Document".localized()) .tag(ReopenBehavior.newDocument) } } diff --git a/CodeEdit/Settings/SettingsView.swift b/CodeEdit/Settings/SettingsView.swift index 24bedd9c65..6549f479a9 100644 --- a/CodeEdit/Settings/SettingsView.swift +++ b/CodeEdit/Settings/SettingsView.swift @@ -12,7 +12,7 @@ struct SettingsView: View { TabView { GeneralSettingsView() .tabItem { - Label("General", systemImage: "gearshape") + Label("General".localized(), systemImage: "gearshape") } } .padding()