Académique Documents
Professionnel Documents
Culture Documents
Walkthrough: Using
Resources for
Localization with
ASP.NET
Visual Studio 2005
Prerequisites
In order to complete this walkthrough, you will need:
msdn.microsoft.com/en-us/library/fw69ke6f(v=vs.80).aspx
1/12
3/27/13
2/12
3/27/13
3/12
3/27/13
msdn.microsoft.com/en-us/library/fw69ke6f(v=vs.80).aspx
4/12
3/27/13
5/12
3/27/13
msdn.microsoft.com/en-us/library/fw69ke6f(v=vs.80).aspx
6/12
3/27/13
7/12
3/27/13
8/12
3/27/13
Note
The LocalizedTextattribute has no language
indicator, culture indicator, or .resx extension
because it is not the actual file name. Instead,
LocalizedTextrepresents the base resource class.
Depending on the culture sent by the browser,
ASP.NET will select the resource out of the file with
the appropriate language or culture code within its
file name, such as LocalizedText.fr.resx,
LocalizedText.es-mx.resx, or if no matching
language is found, LocalizedText.resx.
With the resource file completed, and the declarative
expression added, you can test the page. After the last test,
your browser was set to report French as its language
preference. During the testing, you will change the browser's
language several times.
9/12
3/27/13
control.
Next Steps
Localization can be a complex undertaking. This walkthrough
has illustrated some of the features in Visual Web Developer
that can eliminate some of the work. You might want to learn
more about localization and ASP.NET. For example, you might
want to:
Learn more about using resources in your applications.
For details, see Resources in Applications.
Use classes that define culture-related information,
including the language, country or region, calendars in
use, format patterns for dates, currency, numbers, and
sort order for strings. For details, see
System.Globalization.
Learn more about best practices to use when coding for
a global audience. For details, see Best Practices for
Developing World-Ready Applications.
msdn.microsoft.com/en-us/library/fw69ke6f(v=vs.80).aspx
See Also
10/12
3/27/13
See Also
Concepts
Other Resources
Community Additions
japanese
because for japanese you have to use .ja
msdn.microsoft.com/en-us/library/fw69ke6f(v=vs.80).aspx
11/12
3/27/13
<configuration>
<system.web>
<globalization culture="auto" uiCulture="auto"
enableClientBasedCulture="true"/>
Joseph Fluckiger2
8/18/2010
MikeVWood
11/11/2009
msdn.microsoft.com/en-us/library/fw69ke6f(v=vs.80).aspx
12/12