From 945a4c67e4f7292f0900f304d0f5a7c9e6ade328 Mon Sep 17 00:00:00 2001 From: True Zhuanjia Date: Fri, 26 Jul 2024 22:24:28 +0800 Subject: [PATCH] improve add / duplicate button --- Limelight/Limelight-Info.plist | 7 --- Limelight/Localization/Localizable.xcstrings | 46 +++++++++---------- .../CommandManagerViewController.swift | 2 +- 3 files changed, 24 insertions(+), 31 deletions(-) diff --git a/Limelight/Limelight-Info.plist b/Limelight/Limelight-Info.plist index 509503f7..f29ea4d0 100644 --- a/Limelight/Limelight-Info.plist +++ b/Limelight/Limelight-Info.plist @@ -79,17 +79,10 @@ UISupportedInterfaceOrientations - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight UIViewControllerBasedStatusBarAppearance diff --git a/Limelight/Localization/Localizable.xcstrings b/Limelight/Localization/Localizable.xcstrings index 4f7499bd..65ba54cb 100644 --- a/Limelight/Localization/Localizable.xcstrings +++ b/Limelight/Localization/Localizable.xcstrings @@ -122,6 +122,29 @@ } } }, + "Add / Duplicate" : { + "extractionState" : "manual", + "localizations" : { + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "新增/复制" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "新增/复制" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "新增/复制" + } + } + } + }, "Add Host Manually" : { "extractionState" : "manual", "localizations" : { @@ -145,29 +168,6 @@ } } }, - "Add/Duplicate" : { - "extractionState" : "manual", - "localizations" : { - "zh-Hans" : { - "stringUnit" : { - "state" : "translated", - "value" : "新增/复制" - } - }, - "zh-Hant" : { - "stringUnit" : { - "state" : "translated", - "value" : "新增/复制" - } - }, - "zh-HK" : { - "stringUnit" : { - "state" : "translated", - "value" : "新增/复制" - } - } - } - }, "Alias (optional)" : { "extractionState" : "manual", "localizations" : { diff --git a/Limelight/ViewControllers/CommandManagerViewController.swift b/Limelight/ViewControllers/CommandManagerViewController.swift index 1e2a9dc9..fd39e6e0 100644 --- a/Limelight/ViewControllers/CommandManagerViewController.swift +++ b/Limelight/ViewControllers/CommandManagerViewController.swift @@ -65,7 +65,7 @@ import UIKit tableView.rowHeight = 60 tableView.separatorColor = highlightColor // Configure buttons - addButton.setTitle(SwiftLocalizationHelper.localizedString(forKey: "Add/Duplicate"), for: .normal) + addButton.setTitle(SwiftLocalizationHelper.localizedString(forKey: "Add / Duplicate"), for: .normal) deleteButton.setTitle(SwiftLocalizationHelper.localizedString(forKey: "Delete"), for: .normal) editButton.setTitle(SwiftLocalizationHelper.localizedString(forKey: "Edit"), for: .normal) exitButton.setTitle(SwiftLocalizationHelper.localizedString(forKey: "Exit"), for: .normal)