|
|
EasyNLSApplication Features
DescriptionI have been involved in the localization of several big projects now. It is always a struggle to revisit any application to make it language independent. Especially for Visual Basic 6 applications, which often lacks any previous preparation for this task.The EasyNLS component implements a few needed objects and functions, which allows Visual Basic programmers to easily master the hassles of National Language Support (NLS). The following 3 items are covered by EasyNLS:
The Locale object wraps the Locale specific functions in Windows.
Localized applications use a binary resource DLL to store
the application's text strings.
The EasyNLS's Resource object wraps locating, loading,
initialising and resource retrieval from separate resource DLLs.
To overcome a design problem in most of Microsoft's development tools, the
global GetSystemFont function is supplied.
LocalizationLocalization means several different things:
Goal 1The first goal basically means you need to make your application use UNICODE characters to internally represent strings and characters. This is not a big deal if you have strictly Visual Basic code. For C++ projects, this may however be a daunting task.The EasyNLS component will not help you much in accomplishing this task. Visual Basic is already UNICODE all the way, so VB applications will usually not need changes. Goal 2The second goal of making your application work with regional settings can be tricky to achieve. It usually means meticulous code inspection and probably rewrite of some of the application's conversion and data handling routines.Visual Basic programmers don't usually have access to a lot of information about the regional settings. The information must be extracted from Windows API functions, which are not easily accessible for most VB users. The EasyNLS's Locale object gives the VB users full access to all the information needed about the current and any installed Locale. Goal 3The language translation itself is not something the programmer has to ponder about. But making the application ready for displaying text in different languages is a very crucial localization task for many products and a very painstaking one.Microsoft Visual Basic 6 has support for resource DLLs. This is a great step in the right direction for support of what C++ programmers have used since the early Windows versions. However, if you need to manage several languages for a large project, you will find VB support for resources inadequate. The EasyNLS's Resource object is a simple wrapper, but certainly very powerful one. Put all the application's text strings into a separate DLL. Let the object locate the right language DLL and display the intended strings. Source Code DependenciesMicrosoft Visual C++ 6.0Microsoft ATL Library Installation Guide
See AlsoEasyReg ComponentEasyINI Component Download Files
Written by Bjarke Viksoe. Article submitted 12/21/2000. To the top
|
|||