MABderHelvetier

Hi

I'm writing a tool to automatically translate .NET resource files (.resx). While analyzing the resx files if found some resources with a name starting with ">>":

Code Snippet

<data name="button2.Text" xml:space="preserve">

<value>Abbrechen</value>
</data>
<data name="&gt;&gt;button2.Name" xml:space="preserve">
<value>button2</value>
</data>


In the designer, the correct text "Abbrechen" appears, but why is there this other resource Does anyone knows the use of this additional resource


Thanks

MABderHelvetier


Re: Visual C# IDE What's the use of resources starting with ">>"?

ARK88

Maybe this site can help answer your question: http://blogs.msdn.com/rprabhu/rss_tag_WinRes.xml



Re: Visual C# IDE What's the use of resources starting with ">>"?

MABderHelvetier

Thanks, that explains all! For all those who want to read only the part relevant to the question:

[...]

Okay, but what is button1 This information is conveyed by the following "special" properties, prefixed with the ">>":

<data name="&gt;&gt;button1.Name">
<value>button1</value>
</data>
<data name="&gt;&gt;button1.Type">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;button1.Parent">
<value>$this</value>
</data>
<data name="&gt;&gt;button1.ZOrder">
<value>0</value>
</data>

These are special because they convey information about what button1 represents. The Type property tells us that button1 is actually a Windows Forms Button control. Its parent is "$this", which represents the Form being localized. The ZOrder value helps determine the order in which this component is placed on this Parent control relative to its siblings. The Name, ofcourse, is the name assigned to this instance of the Button control by the VS designer. With the above information, you should be able to decipher most of the contents of the .resx file.

[...]