This is a migrated thread and some comments may be shown as answers.

Multiple Localisation manager?

1 Answer 49 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dirk
Top achievements
Rank 1
Iron
Dirk asked on 14 Nov 2012, 01:35 PM
I'm developing a modular Silverlight application with PRISM.
Is it possible to implement the LocalisationManager with multiple ressource (resx) files? I dont' want to use global resx file. Every module should have it's own resx file.
Regards
Dirk

Example:
LocalizationManager.Manager =
new LocalizationManager()
{
    ResourceManager = Main.Common.Resources.Module1Strings.ResourceManager,
    Culture = new CultureInfo(culture)
};
 
LocalizationManager.Manager = new LocalizationManager()
{
    ResourceManager = Main.Common.Resources.Module2Strings.ResourceManager,
    Culture = new CultureInfo(culture)
};

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 14 Nov 2012, 02:51 PM
Hello,

Generally, the recommended approach is to have all your string resources defined in one resource file for each of the languages and use it for the ResourceManager. Please note that you cannot combine different resource files at run-time.

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Dirk
Top achievements
Rank 1
Iron
Answers by
Dimitrina
Telerik team
Share this question
or