diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2021-07-08 10:22:51 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2021-07-22 13:07:43 +0200 |
| commit | 37f286f18207876da4ffaeb2d9329d60bf6304d1 (patch) | |
| tree | 20de88ae57d71cb26a19ec74aefaebfdb11c18e5 | |
| parent | 1d31f34f23a889b7810d75de20883e80bdb9e7fc (diff) | |
| download | mullvadvpn-37f286f18207876da4ffaeb2d9329d60bf6304d1.tar.xz mullvadvpn-37f286f18207876da4ffaeb2d9329d60bf6304d1.zip | |
Localize KeyboardNavigation
| -rw-r--r-- | ios/MullvadVPN.xcodeproj/project.pbxproj | 12 | ||||
| -rw-r--r-- | ios/MullvadVPN/UIBarButtonItem+KeyboardNavigation.swift | 14 | ||||
| -rw-r--r-- | ios/MullvadVPN/en.lproj/KeyboardNavigation.strings | 5 |
3 files changed, 29 insertions, 2 deletions
diff --git a/ios/MullvadVPN.xcodeproj/project.pbxproj b/ios/MullvadVPN.xcodeproj/project.pbxproj index 41dfd4d62f..ba61b791cb 100644 --- a/ios/MullvadVPN.xcodeproj/project.pbxproj +++ b/ios/MullvadVPN.xcodeproj/project.pbxproj @@ -234,6 +234,7 @@ 58F558FB2696EB1C00F630D0 /* AppStorePaymentManager.strings in Resources */ = {isa = PBXBuildFile; fileRef = 58F558F72696EB1C00F630D0 /* AppStorePaymentManager.strings */; }; 58F5590E2697002100F630D0 /* Main.strings in Resources */ = {isa = PBXBuildFile; fileRef = 58F559052697002000F630D0 /* Main.strings */; }; 58F5590F2697002100F630D0 /* ConnectionPanel.strings in Resources */ = {isa = PBXBuildFile; fileRef = 58F559072697002100F630D0 /* ConnectionPanel.strings */; }; + 58F558FE2696F09100F630D0 /* KeyboardNavigation.strings in Resources */ = {isa = PBXBuildFile; fileRef = 58F558FC2696F09100F630D0 /* KeyboardNavigation.strings */; }; 58F61F4F2692F21C00DCFC2B /* WireguardKeys.strings in Resources */ = {isa = PBXBuildFile; fileRef = 58F61F4D2692F21C00DCFC2B /* WireguardKeys.strings */; }; 58F7CA882692E34000FC59FD /* WireguardKeysContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58F7CA872692E34000FC59FD /* WireguardKeysContentView.swift */; }; 58F840AF2464382C0044E708 /* KeychainItemRevision.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58F840AE2464382C0044E708 /* KeychainItemRevision.swift */; }; @@ -462,6 +463,7 @@ 58F558F82696EB1C00F630D0 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/AppStorePaymentManager.strings; sourceTree = "<group>"; }; 58F559062697002000F630D0 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Main.strings; sourceTree = "<group>"; }; 58F559082697002100F630D0 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/ConnectionPanel.strings; sourceTree = "<group>"; }; + 58F558FD2696F09100F630D0 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/KeyboardNavigation.strings; sourceTree = "<group>"; }; 58F61F4E2692F21C00DCFC2B /* en */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/WireguardKeys.strings; sourceTree = "<group>"; }; 58F7CA872692E34000FC59FD /* WireguardKeysContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WireguardKeysContentView.swift; sourceTree = "<group>"; }; 58F840AE2464382C0044E708 /* KeychainItemRevision.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KeychainItemRevision.swift; sourceTree = "<group>"; }; @@ -571,6 +573,7 @@ 582CFEE526945FC30072883A /* AppStoreSubscriptions.strings */, 58F559072697002100F630D0 /* ConnectionPanel.strings */, 58F558DB2695B85E00F630D0 /* Consent.strings */, + 58F558FC2696F09100F630D0 /* KeyboardNavigation.strings */, 587B7543266922BF00DEF7E9 /* Localizable.strings */, 58F558DE2695BD3E00F630D0 /* Login.strings */, 58F559052697002000F630D0 /* Main.strings */, @@ -1007,6 +1010,7 @@ 584789BE264D4A2A000E45FB /* new_le_root_cert.cer in Resources */, 58F61F4F2692F21C00DCFC2B /* WireguardKeys.strings in Resources */, 58F5590E2697002100F630D0 /* Main.strings in Resources */, + 58F558FE2696F09100F630D0 /* KeyboardNavigation.strings in Resources */, 581FC4FA2695ACE100AA97BA /* Account.strings in Resources */, 58F558EC2695D26A00F630D0 /* MullvadRest.strings in Resources */, 582CFEEA269463B80072883A /* Settings.strings in Resources */, @@ -1431,6 +1435,14 @@ 58F559082697002100F630D0 /* en */, ); name = ConnectionPanel.strings; + sourceTree = "<group>"; + }; + 58F558FC2696F09100F630D0 /* KeyboardNavigation.strings */ = { + isa = PBXVariantGroup; + children = ( + 58F558FD2696F09100F630D0 /* en */, + ); + name = KeyboardNavigation.strings; sourceTree = "<group>"; }; 58F61F4D2692F21C00DCFC2B /* WireguardKeys.strings */ = { diff --git a/ios/MullvadVPN/UIBarButtonItem+KeyboardNavigation.swift b/ios/MullvadVPN/UIBarButtonItem+KeyboardNavigation.swift index 85d2d258a6..ee81308440 100644 --- a/ios/MullvadVPN/UIBarButtonItem+KeyboardNavigation.swift +++ b/ios/MullvadVPN/UIBarButtonItem+KeyboardNavigation.swift @@ -16,9 +16,19 @@ extension UIBarButtonItem { fileprivate var localizedTitle: String { switch self { case .previous: - return NSLocalizedString("Previous", comment: "Keyboard navigation toolbar") + return NSLocalizedString( + "PREVIOUS_BUTTON_TITLE", + tableName: "KeyboardNavigation", + value: "Previous", + comment: "Previous button" + ) case .next: - return NSLocalizedString("Next", comment: "Keyboard navigation toolbar") + return NSLocalizedString( + "NEXT_BUTTON_TITLE", + tableName: "KeyboardNavigation", + value: "Next", + comment: "Next button" + ) } } diff --git a/ios/MullvadVPN/en.lproj/KeyboardNavigation.strings b/ios/MullvadVPN/en.lproj/KeyboardNavigation.strings new file mode 100644 index 0000000000..753599eec9 --- /dev/null +++ b/ios/MullvadVPN/en.lproj/KeyboardNavigation.strings @@ -0,0 +1,5 @@ +/* Next button */ +"NEXT_BUTTON_TITLE" = "Next"; + +/* Previous button */ +"PREVIOUS_BUTTON_TITLE" = "Previous"; |
