tags:

views:

57

answers:

3

The standard color names are english names, ok. But my Application is german so I would like to have the color names in my ComboBox as german names. Instead of "Blue", "Yellow", etc. I would like to have "Blau", "Gelb", etc.

Is there a function that returns all localized names? Or is it that easy that I change the culture in this call?

<ObjectDataProvider MethodName="GetType" ObjectType="{x:Type sys:Type}" x:Key="colorsTypeOdp">
   <ObjectDataProvider.MethodParameters>
    <sys:String>System.Windows.Media.Colors, PresentationCore,
            Version=3.0.0.0, Culture=neutral, 
            PublicKeyToken=31bf3856ad364e35</sys:String>
   </ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
A: 

Sorry, the code snippet was gone ... so here it is:

<ObjectDataProvider MethodName="GetType" 
    ObjectType="{x:Type sys:Type}" x:Key="colorsTypeOdp">
    <ObjectDataProvider.MethodParameters>
    <sys:String>System.Windows.Media.Colors, PresentationCore,
            Version=3.0.0.0, Culture=neutral, 
            PublicKeyToken=31bf3856ad364e35</sys:String>
    </ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
peetee
Not gone, just not formatted properly. I've fixed it for you, so you can remove this answer. (By the way, you can just edit your post rather than posting as an answer).
Brandon
A: 

No, these are property names -- as much part of the code / class definition as the String.Length property -- not resources. Property names aren't localised.

itowlson
+1  A: 

I have found a useful table that gives me some Translations (english names and german ones) The table can be found at: http://farbe-computer.de/kapitel33.html

I will use the texts and a Converter to display the german color names.

At Brandon .. I'll delete my answer as soon as I have RTFM :)

peetee