[Version 2.0] Localization and languajes

Apr 23, 2013 at 9:48 AM
Hi all.
How can I change the language of AvalonDock. I've tried changing de app ui culture but it doesn't work. I've searched in the discussions without success.
May 21, 2013 at 6:28 PM
In the AvalonDock.MVVMTest constructor I added the following line and it worked properly:
Thread.CurrentThread.CurrentUICulture = new CultureInfo( "es" );
May 22, 2013 at 7:54 AM
Yes, it works on the MVVMTest, and it works on my app too even if I don't add the culture line on my constructor, but only if I reference the AvalonDock code solution (the project itself). But if I replace the project for the corresponding dll, it doesn't work...weird.
I'm using Visual Studio 2012, I don't know if it matters or not.
May 22, 2013 at 2:05 PM
You must also be sure to provide the Localization dlls with the project you are using.
Theses are in the folders corresponding the locale

Once compiled, they are in the "bin" folder of avalondock project
You don't need to actually refer to theses dlls, the directories only need to be next to the main avalondock assembly.
May 22, 2013 at 2:11 PM
Oh...what a stupid omission.
It works perfectly now. Thanks!
Dec 18, 2014 at 7:12 AM
i don't understand what you mean? can you show it in example pls???