summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJon Petersson <jon.petersson@kvadrat.se>2024-02-01 09:58:06 +0100
committerBug Magnet <marco.nikic@mullvad.net>2024-02-02 08:56:04 +0100
commit57a85f8ced1315107e2b85beed805399e6686f47 (patch)
tree90117aaae097eba7b08c8f05126256cacd0046a4
parent09cfec2d2f72762fdd04a26b839321eadb2a71c1 (diff)
downloadmullvadvpn-57a85f8ced1315107e2b85beed805399e6686f47.tar.xz
mullvadvpn-57a85f8ced1315107e2b85beed805399e6686f47.zip
Remove old and unused Localizible file
-rw-r--r--ios/MullvadVPN.xcodeproj/project.pbxproj24
-rw-r--r--ios/MullvadVPN/Notifications/Notification Providers/AccountExpirySystemNotificationProvider.swift19
-rw-r--r--ios/MullvadVPN/en.lproj/Localizable.strings5
3 files changed, 7 insertions, 41 deletions
diff --git a/ios/MullvadVPN.xcodeproj/project.pbxproj b/ios/MullvadVPN.xcodeproj/project.pbxproj
index eaa1f58e83..7d4cd6e81c 100644
--- a/ios/MullvadVPN.xcodeproj/project.pbxproj
+++ b/ios/MullvadVPN.xcodeproj/project.pbxproj
@@ -192,7 +192,6 @@
587EB672271451E300123C75 /* PreferencesViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 587EB671271451E300123C75 /* PreferencesViewModel.swift */; };
587EB6742714520600123C75 /* PreferencesDataSourceDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 587EB6732714520600123C75 /* PreferencesDataSourceDelegate.swift */; };
588395602A9DEEA1008B63F6 /* WgAdapter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5883955F2A9DEEA1008B63F6 /* WgAdapter.swift */; };
- 5883A09E266A5AF7003EFFCB /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 587B7543266922BF00DEF7E9 /* Localizable.strings */; };
588527B2276B3F0700BAA373 /* LoadTunnelConfigurationOperation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 588527B1276B3F0700BAA373 /* LoadTunnelConfigurationOperation.swift */; };
588527B4276B4F2F00BAA373 /* SetAccountOperation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 588527B3276B4F2F00BAA373 /* SetAccountOperation.swift */; };
5888AD83227B11080051EB06 /* SelectLocationCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5888AD82227B11080051EB06 /* SelectLocationCell.swift */; };
@@ -1420,7 +1419,6 @@
587B753C2666468F00DEF7E9 /* NotificationController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationController.swift; sourceTree = "<group>"; };
587B753E2668E5A700DEF7E9 /* NotificationContainerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationContainerView.swift; sourceTree = "<group>"; };
587B75402668FD7700DEF7E9 /* AccountExpirySystemNotificationProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccountExpirySystemNotificationProvider.swift; sourceTree = "<group>"; };
- 587B7544266922BF00DEF7E9 /* en */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
587C575226D2615F005EF767 /* PacketTunnelOptions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PacketTunnelOptions.swift; sourceTree = "<group>"; };
587CBFE222807F530028DED3 /* UIColor+Helpers.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIColor+Helpers.swift"; sourceTree = "<group>"; };
587D96732886D87C00CD8F1C /* DeviceManagementContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceManagementContentView.swift; sourceTree = "<group>"; };
@@ -2192,15 +2190,6 @@
path = AccessMethodRepository;
sourceTree = "<group>";
};
- 582CFEE1269448160072883A /* Localizations */ = {
- isa = PBXGroup;
- children = (
- 587B7543266922BF00DEF7E9 /* Localizable.strings */,
- );
- name = Localizations;
- path = MullvadVPN;
- sourceTree = "<group>";
- };
583FE01329C102EB006E85F9 /* Navigation */ = {
isa = PBXGroup;
children = (
@@ -2924,7 +2913,6 @@
children = (
58F3C0A824A50C0E003E76BE /* Assets */,
58ECD29023F178FD004298B6 /* Configurations */,
- 582CFEE1269448160072883A /* Localizations */,
589A454A28DDF59B00565204 /* Shared */,
58CE5E62224146200008646E /* MullvadVPN */,
58D0C79423F1CE7000FE9BA7 /* MullvadVPNScreenshots */,
@@ -4209,7 +4197,6 @@
7A02D4EB2A9CEC7A00C19E31 /* MullvadVPNScreenshots.xctestplan in Resources */,
587DCCEF287D84A500CE821E /* countries.geo.json in Resources */,
58CE5E6B224146210008646E /* Assets.xcassets in Resources */,
- 5883A09E266A5AF7003EFFCB /* Localizable.strings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -5437,17 +5424,6 @@
};
/* End PBXTargetDependency section */
-/* Begin PBXVariantGroup section */
- 587B7543266922BF00DEF7E9 /* Localizable.strings */ = {
- isa = PBXVariantGroup;
- children = (
- 587B7544266922BF00DEF7E9 /* en */,
- );
- name = Localizable.strings;
- sourceTree = "<group>";
- };
-/* End PBXVariantGroup section */
-
/* Begin XCBuildConfiguration section */
06799AD428F98E1D00ACD94E /* Debug */ = {
isa = XCBuildConfiguration;
diff --git a/ios/MullvadVPN/Notifications/Notification Providers/AccountExpirySystemNotificationProvider.swift b/ios/MullvadVPN/Notifications/Notification Providers/AccountExpirySystemNotificationProvider.swift
index 98c2cb549d..b360fa9cf5 100644
--- a/ios/MullvadVPN/Notifications/Notification Providers/AccountExpirySystemNotificationProvider.swift
+++ b/ios/MullvadVPN/Notifications/Notification Providers/AccountExpirySystemNotificationProvider.swift
@@ -40,24 +40,19 @@ final class AccountExpirySystemNotificationProvider: NotificationProvider, Syste
var notificationRequest: UNNotificationRequest? {
guard let trigger else { return nil }
- _ = NSLocalizedString(
+ let content = UNMutableNotificationContent()
+ content.title = NSLocalizedString(
"ACCOUNT_EXPIRY_SYSTEM_NOTIFICATION_TITLE",
+ tableName: "AccountExpiry",
+ value: "Account credit expires soon",
comment: "Title for system account expiry notification, fired 3 days prior to account expiry."
)
- _ = NSLocalizedString(
+ content.body = NSLocalizedString(
"ACCOUNT_EXPIRY_SYSTEM_NOTIFICATION_BODY",
+ tableName: "AccountExpiry",
+ value: "Account credit expires in 3 days. Buy more credit.",
comment: "Message for system account expiry notification, fired 3 days prior to account expiry."
)
-
- let content = UNMutableNotificationContent()
- content.title = NSString.localizedUserNotificationString(
- forKey: "ACCOUNT_EXPIRY_SYSTEM_NOTIFICATION_TITLE",
- arguments: nil
- )
- content.body = NSString.localizedUserNotificationString(
- forKey: "ACCOUNT_EXPIRY_SYSTEM_NOTIFICATION_BODY",
- arguments: nil
- )
content.sound = UNNotificationSound.default
return UNNotificationRequest(
diff --git a/ios/MullvadVPN/en.lproj/Localizable.strings b/ios/MullvadVPN/en.lproj/Localizable.strings
deleted file mode 100644
index 8deb704fa2..0000000000
--- a/ios/MullvadVPN/en.lproj/Localizable.strings
+++ /dev/null
@@ -1,5 +0,0 @@
-/* Message for system account expiry notification, fired 3 days prior to account expiry. */
-"ACCOUNT_EXPIRY_SYSTEM_NOTIFICATION_BODY" = "Account credit expires in 3 days. Buy more credit.";
-
-/* Title for system account expiry notification, fired 3 days prior to account expiry. */
-"ACCOUNT_EXPIRY_SYSTEM_NOTIFICATION_TITLE" = "Account credit expires soon";