Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Internationalization with WPF, Satellite Assemblies, XAML

$
0
0

Using satellite assemblies for localization.  All resources are compiled in the default culture, en-US in its own assembly.  When I change the culture to "xo-XO", pseudo language.  I can see that the thread's CurrentCulture and CurrentUICulture are set correctly, but the Views continue to use the default culture. 

Reflector shows that the resources in the satellite assembly exist and contain different values then the default culture.  And the ResourceSets in ResourceManager contains both xo-XO and en-US cultures, but both display in the neutral language.  It appears that I am missing something subtle where the WPF application recognizes the Current Culture as xo-XO, but cannot find the satellite assembly.

Below is a representation of how the application is organized

Bin/sampleApplication.exe

Bin/sampleApplicationResources.dll

Bin/xo-XO

Bin/xo-XO/sampleApplicationResources.resources.dll

View:

xmlns:res="clr-namespace:sampleApplicationResources;assembly=sampleApplicationResources"

<TextBox Text = "{x:Static res:SampleViewRes.txtName}" />


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>