From f7721a3d39d9b1aba036f18a181ec269a1a21f87 Mon Sep 17 00:00:00 2001 From: Jerry <89069957+Jerry23011@users.noreply.github.com> Date: Mon, 6 May 2024 19:54:44 +0800 Subject: [PATCH] perf: unify xcstring in about view --- Easydict/App/Localizable.xcstrings | 64 +++++++++---------- .../SettingView/Tabs/TabView/AboutTab.swift | 4 +- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/Easydict/App/Localizable.xcstrings b/Easydict/App/Localizable.xcstrings index c2a6f4dc9..156ca1bad 100644 --- a/Easydict/App/Localizable.xcstrings +++ b/Easydict/App/Localizable.xcstrings @@ -829,22 +829,6 @@ } } }, - "contributor_link" : { - "localizations" : { - "en" : { - "stringUnit" : { - "state" : "translated", - "value" : "Contributors" - } - }, - "zh-Hans" : { - "stringUnit" : { - "state" : "translated", - "value" : "贡献者" - } - } - } - }, "copy_text" : { "localizations" : { "en" : { @@ -1468,22 +1452,6 @@ } } }, - "github_link" : { - "localizations" : { - "en" : { - "stringUnit" : { - "state" : "translated", - "value" : "GitHub" - } - }, - "zh-Hans" : { - "stringUnit" : { - "state" : "translated", - "value" : "GitHub" - } - } - } - }, "GitHub:" : { "localizations" : { "zh-Hans" : { @@ -3299,6 +3267,38 @@ } } }, + "setting.about.contributor_link" : { + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Contributors" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "贡献者" + } + } + } + }, + "setting.about.github_link" : { + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "GitHub" + } + } + } + }, "setting.disabled.import_app_error.message" : { "extractionState" : "manual", "localizations" : { diff --git a/Easydict/Swift/View/SettingView/Tabs/TabView/AboutTab.swift b/Easydict/Swift/View/SettingView/Tabs/TabView/AboutTab.swift index a9dd4285e..823ef559f 100644 --- a/Easydict/Swift/View/SettingView/Tabs/TabView/AboutTab.swift +++ b/Easydict/Swift/View/SettingView/Tabs/TabView/AboutTab.swift @@ -84,7 +84,7 @@ struct AboutTab: View { Button { NSWorkspace.shared.open(URL(string: "https://github.com/tisfeng/Easydict")!) } label: { - Label("github_link", systemImage: "star.fill") + Label("setting.about.github_link", systemImage: "star.fill") .frame(width: 120, height: 20) } @@ -92,7 +92,7 @@ struct AboutTab: View { NSWorkspace.shared .open(URL(string: "https://github.com/tisfeng/Easydict/graphs/contributors")!) } label: { - Label("contributor_link", systemImage: "person.3.sequence.fill") + Label("setting.about.contributor_link", systemImage: "person.3.sequence.fill") .frame(width: 120, height: 20) } }