From 103f8009bb223d0a967f73c7078b2b9b2b481507 Mon Sep 17 00:00:00 2001
From: Mustafa Merza <mustafa.merza95@gmail.com>
Date: Wed, 17 Jul 2024 10:53:22 +0300
Subject: [PATCH] - Added support for Arabic.

---
 MiniScanner.xcodeproj/project.pbxproj         |  5 +++++
 .../CustomWeScan/ar.lproj/Localizable.strings | 21 +++++++++++++++++++
 2 files changed, 26 insertions(+)
 create mode 100644 MiniScanner/Supporting Files/Frameworks/CustomWeScan/ar.lproj/Localizable.strings

diff --git a/MiniScanner.xcodeproj/project.pbxproj b/MiniScanner.xcodeproj/project.pbxproj
index 4a95003..7550cd8 100644
--- a/MiniScanner.xcodeproj/project.pbxproj
+++ b/MiniScanner.xcodeproj/project.pbxproj
@@ -392,6 +392,7 @@
 		53F21F982C1377B900172BFC /* Tajawal-Regular.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Tajawal-Regular.ttf"; sourceTree = "<group>"; };
 		53F21F992C1377B900172BFC /* Tajawal-Medium.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Tajawal-Medium.ttf"; sourceTree = "<group>"; };
 		53F21F9A2C1377B900172BFC /* Tajawal-Black.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Tajawal-Black.ttf"; sourceTree = "<group>"; };
+		672C46412C47AD7200497EF0 /* ar */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ar; path = ar.lproj/Localizable.strings; sourceTree = "<group>"; };
 		E8AF4FB39674DF589D719DCF /* Pods-MiniScanner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MiniScanner.release.xcconfig"; path = "Target Support Files/Pods-MiniScanner/Pods-MiniScanner.release.xcconfig"; sourceTree = "<group>"; };
 		E9A37DC9F9A8E3AF632DFB98 /* Pods_MiniScanner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MiniScanner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
 		EC0CF1FA254D8BBF00888722 /* MiniScanner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MiniScanner.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -1125,6 +1126,7 @@
 			knownRegions = (
 				en,
 				Base,
+				ar,
 			);
 			mainGroup = EC0CF1F1254D8BBF00888722;
 			packageReferences = (
@@ -1400,6 +1402,7 @@
 			isa = PBXVariantGroup;
 			children = (
 				53014F502C11A8E80071CE39 /* en */,
+				672C46412C47AD7200497EF0 /* ar */,
 			);
 			name = Localizable.strings;
 			sourceTree = "<group>";
@@ -1419,6 +1422,7 @@
 			isa = XCBuildConfiguration;
 			buildSettings = {
 				ALWAYS_SEARCH_USER_PATHS = NO;
+				CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
 				CLANG_ANALYZER_NONNULL = YES;
 				CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
 				CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
@@ -1481,6 +1485,7 @@
 			isa = XCBuildConfiguration;
 			buildSettings = {
 				ALWAYS_SEARCH_USER_PATHS = NO;
+				CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
 				CLANG_ANALYZER_NONNULL = YES;
 				CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
 				CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
diff --git a/MiniScanner/Supporting Files/Frameworks/CustomWeScan/ar.lproj/Localizable.strings b/MiniScanner/Supporting Files/Frameworks/CustomWeScan/ar.lproj/Localizable.strings
new file mode 100644
index 0000000..ec64598
--- /dev/null
+++ b/MiniScanner/Supporting Files/Frameworks/CustomWeScan/ar.lproj/Localizable.strings	
@@ -0,0 +1,21 @@
+/* 
+    localizable.strings
+    WeScanSampleProject
+
+    Created by Boris Emorine on 2/27/18.
+    Copyright © 2018 WeTransfer. All rights reserved.
+*/
+
+/* The "Next" button on the right side of the navigation bar on the Edit screen. */
+"wescan.edit.button.next" = "Next";
+
+/* The title on the navigation bar of the Edit screen. */
+"wescan.edit.title" = "Edit Scan";
+
+/* The title on the navigation bar of the Review screen. */
+"wescan.review.title" = "Review";
+
+/* The button titles on the Scanning screen. */
+"wescan.scanning.cancel" = "Cancel";
+"wescan.scanning.auto" = "Auto";
+"wescan.scanning.manual" = "Manual";
-- 
GitLab