Browse Source

coding

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 years ago
parent
commit
0af8408e77

+ 2 - 0
Nextcloud.xcodeproj/project.pbxproj

@@ -1010,6 +1010,7 @@
 		F7BB04851FD58ACB00BBFD2A /* cs-CZ */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "cs-CZ"; path = "cs-CZ.lproj/Localizable.strings"; sourceTree = "<group>"; };
 		F7BC287D26663F6C004D46C5 /* NCViewCertificateDetails.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = NCViewCertificateDetails.storyboard; sourceTree = "<group>"; };
 		F7BC287F26663F85004D46C5 /* NCViewCertificateDetails.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NCViewCertificateDetails.swift; sourceTree = "<group>"; };
+		F7BE7C25290AC8C9002ABB61 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Intent.strings; sourceTree = "<group>"; };
 		F7C1EEA425053A9C00866ACC /* NCDataSource.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NCDataSource.swift; sourceTree = "<group>"; };
 		F7C40BE221998C050004137E /* PDFGenerator.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = PDFGenerator.framework; path = Carthage/Build/iOS/PDFGenerator.framework; sourceTree = "<group>"; };
 		F7C40BE421998D5A0004137E /* MGSwipeTableCell.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MGSwipeTableCell.framework; path = Carthage/Build/iOS/MGSwipeTableCell.framework; sourceTree = "<group>"; };
@@ -3156,6 +3157,7 @@
 			isa = PBXVariantGroup;
 			children = (
 				F75DD768290ABB25002EB562 /* Base */,
+				F7BE7C25290AC8C9002ABB61 /* en */,
 			);
 			name = Intent.intentdefinition;
 			sourceTree = "<group>";

+ 30 - 0
Widget/Intent/en.lproj/Intent.strings

@@ -0,0 +1,30 @@
+"13zjVT" = "Account";
+
+"296XDb" = "There are ${count} options matching ‘${accounts}’.";
+
+"Am6y6p" = "Just to confirm, you wanted ‘${applications}’?";
+
+"CAIVXf" = "Applications";
+
+"DN8Bxl" = "Account";
+
+"LIw8E9" = "Widget";
+
+"NO1rJU" = "Dashboard";
+
+"ObH8NN" = "There are ${count} options matching ‘${accounts}’.";
+
+"TVGjNQ" = "Just to confirm, you wanted ‘${accounts}’?";
+
+"V3exc2" = "Account";
+
+"VfbA9C" = "Account";
+
+"XjFf0X" = "There are ${count} options matching ‘${applications}’.";
+
+"ZgvlYN" = "Dashboard Widget";
+
+"q5lvSu" = "Just to confirm, you wanted ‘${accounts}’?";
+
+"tAlZ1R" = "Accounts";
+

+ 4 - 4
WidgetDashboardIntentHandler/IntentHandler.swift

@@ -20,7 +20,7 @@ class IntentHandler: INExtension, DashboardIntentHandling, AccountIntentHandling
         var accounts: [Accounts] = []
         let results = NCManageDatabase.shared.getAllAccount()
 
-        accounts.append(Accounts(identifier: "active", display: NSLocalizedString("_account_active_", comment: "")))
+        accounts.append(Accounts(identifier: "active", display: "Active account"))
 
         if results.isEmpty {
             return completion(nil, nil)
@@ -41,7 +41,7 @@ class IntentHandler: INExtension, DashboardIntentHandling, AccountIntentHandling
         if NCManageDatabase.shared.getActiveAccount() == nil {
             return nil
         } else {
-            return Accounts(identifier: "active", display: NSLocalizedString("_account_active_", comment: ""))
+            return Accounts(identifier: "active", display: "Active account")
         }
     }
 
@@ -92,7 +92,7 @@ class IntentHandler: INExtension, DashboardIntentHandling, AccountIntentHandling
         var accounts: [Accounts] = []
         let results = NCManageDatabase.shared.getAllAccount()
 
-        accounts.append(Accounts(identifier: "active", display: NSLocalizedString("_account_active_", comment: "")))
+        accounts.append(Accounts(identifier: "active", display: "Active account"))
 
         if results.isEmpty {
             return completion(nil, nil)
@@ -113,7 +113,7 @@ class IntentHandler: INExtension, DashboardIntentHandling, AccountIntentHandling
         if NCManageDatabase.shared.getActiveAccount() == nil {
             return nil
         } else {
-            return Accounts(identifier: "active", display: NSLocalizedString("_account_active_", comment: ""))
+            return Accounts(identifier: "active", display: "Active account")
         }
     }
 }

+ 0 - 1
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -896,7 +896,6 @@
 "_description_lockscreenwidget_" = "Keep an eye on available space and recent activity";
 "_no_items_"                = "No items";
 "_check_back_late_"         = "Check back late";
-"_account_active_"          = "Account active";
 
 // Video
 "_select_trace_"            = "Select the trace";