In my module I'm trying to get localized text from resources in another module. Tried: Localization.GetString("myText.Text", Replace(PortalSettings.HomeDirectoryMapPath, "Portals\" & PortalId.ToString, "DesktopModules") & “DIBW9000\App_LocalResources\DIBW9000.ascx." & Threading.Thread.CurrentThread.CurrentCulture.Name & ".resx") and Localization.GetString("myText.Text", Replace(PortalSettings.HomeDirectoryMapPath, "Portals\" & PortalId.ToString, "DesktopModules") & “DIBW9000\App_LocalResources\DIBW9000.ascx." & Threading.Thread.CurrentThread.CurrentCulture.Name & ".resx", Threading.Thread.CurrentThread.CurrentCulture.Name) but I'm always getting epty string except for the portal default language (in my case Croatian - hr-HR). Any ideas anybody?
Got it!
Localization.GetString("myText.Text", "DesktopModules/DIBW9000/App_LocalResources/DIBW9000.ascx.resx")
Actually, I have a module with my objects and all the functions (database access) so other modules reference this one. In some solutions this module is referenced by 30+ other modules so i have added to this "global" module translations for standard actions, messages etc. Maybe there is another, better way to get those resources than the one i am using?
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.