Best practice while implement globalization & localization, DOT NET Programming

What are the best practices while implementing globalization and localization?

The best methods while developing international language support software are shown below:-

1) Do not hardcode the strings or user interface resources.

2) make sure that your application depends on Unicode.

3) Whenever you read or write data from different encoding make sure you use the namespace System.text . Most of the programmers assume ASCII data.

4) While testing test it with the actual international data and environments.

5) Whenever we manipulate the data for instance numbers, dates or currency make sure that you are using the culture-aware classes defined in the namespace System.Globalization .

The table below specifies in more detail about the functionality and the classes to be used to achieve the same.

1337_Globalization and localization.png

Figure: - Functionality and classes used

1) If the security decision is based on the result of a string comparison or case change operation, perform a culture-insensitive operation by explicitly specifying the CultureInfo.InvariantCulture property. This method ensures that the result is not affected by the value of CultureInfo.CurrentCulture.

2) Move all your localizable resources to separate the DLL's.

3) Avoid using the images and icons that contain text in your application. They are costly to localize.

4) Allow plenty of rooms for the length of the strings to expand in the user interface. In some languages, phrases can need 50-75 percent more space.

5) Using the System.Resources.The ResourceManager class to retrieve resources based on culture.

6) Explicitly set the CurrentUICulture &  CurrentCulture properties in your application. Don't rely on the defaults.

7) Be aware that you can specify the following 3 types of encodings in ASP.NET:

  • The requestEncoding specifies the encoding received from the client's browser.
  • The responseEncoding specifies the encoding to send to the client browser. In most cases, this should be same as the requestEncoding.
  • The FileEncoding specifies the default encoding for .aspx, .asmx, and .asax file parsing.
Posted Date: 9/25/2012 3:51:54 AM | Location : United States







Related Discussions:- Best practice while implement globalization & localization, Assignment Help, Ask Question on Best practice while implement globalization & localization, Get Answer, Expert's Help, Best practice while implement globalization & localization Discussions

Write discussion on Best practice while implement globalization & localization
Your posts are moderated
Related Questions
Experienced Microsoft .NET web developer The developer must be reliable as well as most of all use best practices for coding as well as application design. a) .NET 3.5 (ideal

I am looking individuals who have industry experience working on Microsoft Technology and Jquery ( MVC 4.5 ), who will take live online session and give training through Team Viewe

Question: (a) Using the help of a diagram, describe the layer of the .NET framework that sits between Visual Basic.NET 2005 and the operating system. (b) Explain the charac

What are the different accessibility levels in .NET? The five levels of access modifiers are as follows:- Private: The members of the class only have the access.

finding greatest of n no''s in c#

What are the steps involved to fill a dataset ? The sample code is shown below: Private Sub LoadData() Dim strConnectionString As String strConnectionString = AppSetti

I need a program that mimics the similar functionality as the link below. Program must have a unique user interface. Must add source code, installer, and of course a nice user i

Describe the services that UDDI provides to Web applications. UDDI gives the following types of services to a Web application: XML Schema for business descriptions - Contain

The ASP.NET new feature supports are shown below :- Better Language Support 1) The New ADO.NET Concepts have been implemented. 2) The ASP.NET supports complete  language

Downloadable software for a PC computer and Mac Project Description: "The software" can be sold as a downloadable purchase. I must have all copy rights to "the software" when