Localization and globalization are the significant concepts used by .net development company experts to internationalize their apps. In globalization process, they target at several cultures, whereas in localization process, they customize apps to bring support for a specific culture and locale.
There are in total five steps used by .net developers to internationalize their apps in .net-
- Determine the localizable resources
- Develop resource files for every locale required by the app to bring support for
- Read the resource data in the app where required
- Compilation of the resource files should be done to develop satellite assemblies
- App deployment
Developers Can Leverage On Following Namespaces
System.Globalization namespaces are used to culture specific information.
System.Resources are used for creating, manipulating, and using resources.
System.Text are used to signify Unicode, ASCII, and ANSI character encodings.
System.Threading are used to perform the job with multi-threading.
What Is A Resource File?
A resource is a piece of information that is non-executable and advantageous. General instances of resources include locale specific icons, strings, cursors, bitmaps, etc.
Also Read : Asp.Net Developers Guide To Build Your Own Wiki
The files in which these resources are stored named as resource files. For internationalizing the app with .net, developers have to leverage resource files. These files are purposely intended to store data specific to a specific locale.
There is a separate resource file for every locale, which means they can use one resource file per locale.
There are two types of resources that are used for globalization in .net-
- Local resources
- Global resources
Local resources are used by a specific web page.
Global resources are used by whole application.
Developers can build resource files with Visual Studio IDE or even with a program. To build a resource file in visual studio IDE, there are certain steps to follow-
- Open the IDE of Visual Studio in the system
- File -> New -> Project
- Solution Explorer -> project -> right click on it
- Add new item
- Select general form of the list
- Select resource files to build new file for storing the required resources
- Specify a name for the file and click OK.
In this way, a new resource file is created and added to the project.
For creating Global resources, developers can locate them in the App_GlobalResources. Once the file is created, they are able to add data in their resource file using the Resource Designer window.
This article is published by premium .net development company expert. If you have any query related to globalization or localization of app, you can anytime contact them.