I'm having trouble localizing XamDockManager in my WPF Application:
On Application Start, following code is executed:
var Culture = System.Globalization.CultureInfo.CreateSpecificCulture("de-DE"); Current.Dispatcher.Thread.CurrentCulture = germanCulture; Current.Dispatcher.Thread.CurrentUICulture = germanCulture; // Set the globalization System.Windows.FrameworkElement.LanguageProperty.OverrideMetadata( typeof(FrameworkElement), new FrameworkPropertyMetadata(System.Windows.Markup.XmlLanguage.GetLanguage(germanCulture.IetfLanguageTag)));
Additionally, i'm setting the Language on the Dockmanager itself:
<igDock:XamDockManager x:Name="dockManager" Grid.Row="0" Grid.Column="1" Width="Auto" Language="DE">
On my PC this works as intended, the right click menu etc. are german. But when I open the application on another PC (that has the same locale/region) it all defaults to english.
Am I missing something here?
Thank you for your feedback. I am glad that you can use the localization resources now.
Please feel free to post to the forum or create a case if you have any other questions.
Thanks a lot, i will look into this.
For now I installed IGWPF2013.2 on our Build-Server which works as expected.
BR
Hi,
It seems that in the scenario you have Visual Studio could not automatically locate and publish the resource assemblies for the culture used in the project. In this case I believe that including the satellite assemblies manually and populate them in the application manifest using MageUI.exe will help you. You could have a look at the MSDN article regarding the localization of a ClickOnce Application: http://msdn.microsoft.com/en-us/library/ms404266(v=vs.110).aspx. I hope this is helpful.
That's definately the cause. The project is built automatically on our TFS - We're referencing assemblies from a separate folder that is synced via TFS, so that we don't have to install/update Infragistics components on every Update/Service Release.
Is there any other way to "add" these resource-folders manually or is an installation of Infragistics on our TFS inevitable?
Thanks for your help!
These folders – “de”, “fr” and “es” are not published if the assemblies of the project are not referenced from the GAC. Would you please try to add the Infragistics dlls by going to your project References->Add Reference and select them from the .NET tab? After rebuilding the solution please try to publish it again and let me know if the localized resources are also deployed.