[NUI.Gadget] Fix NUIGadgetResourceManager (#6069)
authorhjhun <36876573+hjhun@users.noreply.github.com>
Wed, 17 Apr 2024 06:19:11 +0000 (15:19 +0900)
committerGitHub <noreply@github.com>
Wed, 17 Apr 2024 06:19:11 +0000 (15:19 +0900)
If getting the resource manager is failed, the NUIGadgeResourceManager
tries to get the resource manager from the TwoLetterISOLanguageName of
the CultureInfo.

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/Tizen.NUI.Gadget/Tizen.NUI/NUIGadgetResourceManager.cs

index 2bb42eb..d99a2c3 100755 (executable)
@@ -104,6 +104,11 @@ namespace Tizen.NUI
             try
             {
                 var resourceManager = GetResourceManager(cultureInfo.Name);
+                if (resourceManager == null)
+                {
+                    resourceManager = GetResourceManager(cultureInfo.TwoLetterISOLanguageName);
+                }
+
                 if (resourceManager != null)
                 {
                     result = resourceManager.GetString(name, cultureInfo);