[NUI.Gadget] Fix NUIGadgetResourceManager (#6068)
authorhjhun <36876573+hjhun@users.noreply.github.com>
Wed, 17 Apr 2024 06:19:01 +0000 (15:19 +0900)
committerGitHub <noreply@github.com>
Wed, 17 Apr 2024 06:19:01 +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 ad29b06..c4d440d 100755 (executable)
@@ -93,6 +93,11 @@ namespace Tizen.NUI
             try
             {
                 var resourceManager = GetResourceManager(cultureInfo.Name);
             try
             {
                 var resourceManager = GetResourceManager(cultureInfo.Name);
+                if (resourceManager == null)
+                {
+                    resourceManager = GetResourceManager(cultureInfo.TwoLetterISOLanguageName);
+                }
+
                 if (resourceManager != null)
                 {
                     result = resourceManager.GetString(name, cultureInfo);
                 if (resourceManager != null)
                 {
                     result = resourceManager.GetString(name, cultureInfo);