Skip to content

Commit

Permalink
[NUI.Gadget] Fix NUIGadgetResourceManager (#6070)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hjhun committed Apr 17, 2024
1 parent 92c4dfb commit 05d178a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Tizen.NUI.Gadget/Tizen.NUI/NUIGadgetResourceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ public string GetString(string name, CultureInfo cultureInfo)
try
{
var resourceManager = GetResourceManager(cultureInfo.Name);
if (resourceManager == null)
{
resourceManager = GetResourceManager(cultureInfo.TwoLetterISOLanguageName);
}

if (resourceManager != null)
{
result = resourceManager.GetString(name, cultureInfo);
Expand Down

0 comments on commit 05d178a

Please sign in to comment.