I don't understand what these are for. I've tried to research it via Google but its not coming up with any real useful information. Went to the index of my Beginning ASP.NET Wrox book and there isn't even an index for resource files.
They appear just to be .xml files with a different extension.
Anybody got a good writeup as to what these are useful in my application development?
Resource files are used for localization. Let's say you need to create a multi-language applicaton. You need somewhere to store the translations and other resources specific to that language. That is what resource files are
for.
Well I can see if you have images, buttons, etc. that have localization text on there how this would work. However, if you have text in html that gets translated...that text would be so buried in the page, and all over the place, how can a resource file
help you?
However, if you have text in html that gets translated...that text would be so buried in the page, and all over the place, how can a resource file help you?
You're not translating like you read something in a foreign language and translate it to another language. It's more along the lines of setting the current culture and doing something like this:
I don't understand what these are for. I've tried to research it via Google but its not coming up with any real useful information. Went to the index of my Beginning ASP.NET Wrox book and there isn't even an index for resource files.
They appear just to be .xml files with a different extension.
Anybody got a good writeup as to what these are useful in my application development?
You can see that working in a Microsoft Video Tutorial "How do I" series :
http://msdn.microsoft.com/asp.net/learning/learn/newtodevelopment/default.aspx
Member
137 Points
846 Posts
Resource (.resx) files
May 10, 2006 12:58 PM|codeaholic|LINK
I don't understand what these are for. I've tried to research it via Google but its not coming up with any real useful information. Went to the index of my Beginning ASP.NET Wrox book and there isn't even an index for resource files.
They appear just to be .xml files with a different extension.
Anybody got a good writeup as to what these are useful in my application development?
Contributor
6294 Points
5754 Posts
ASPInsiders
Re: Resource (.resx) files
May 10, 2006 01:05 PM|StrongTypes|LINK
Resource files are used for localization. Let's say you need to create a multi-language applicaton. You need somewhere to store the translations and other resources specific to that language. That is what resource files are for.
HTH,
Ryan
Member
137 Points
846 Posts
Re: Resource (.resx) files
May 10, 2006 02:34 PM|codeaholic|LINK
Well I can see if you have images, buttons, etc. that have localization text on there how this would work. However, if you have text in html that gets translated...that text would be so buried in the page, and all over the place, how can a resource file help you?
Contributor
6294 Points
5754 Posts
ASPInsiders
Re: Resource (.resx) files
May 10, 2006 04:03 PM|StrongTypes|LINK
You're not translating like you read something in a foreign language and translate it to another language. It's more along the lines of setting the current culture and doing something like this:
<asp:Label ID="SomeLabel" Text="<%$ Resources : Resource, SomeLabelText %>" runat="server" />
HTH,
Ryan
None
0 Points
20 Posts
Re: Resource (.resx) files
May 11, 2006 06:04 PM|balexandre|LINK
You can see that working in a Microsoft Video Tutorial "How do I" series :
http://msdn.microsoft.com/asp.net/learning/learn/newtodevelopment/default.aspx
the video is called: ASP.NET HOW DO I Video Series: Localization
Bruno Alexandre
(a Portuguese in Denmark)
Member
120 Points
212 Posts
Re: Resource (.resx) files
May 18, 2006 11:03 AM|andrecarrilho|LINK
http://www.acarrilho.com/
If the post has been answered please marke it as Answered :-)