15.10 - Localizing the OleLoad GUI Interface - Access Module

Teradata Tools and Utilities Access Module Reference

prodname
Access Module
vrm_release
15.10
category
Programming Reference
featnum
B035-2425-035K

Localizing the OleLoad GUI Interface

The Teradata OLE DB Access Module comes with compiled localized libraries for “English (United States)” and Japanese languages (OLEDB_AXSMODenu.dll and OLEDB_AXSMODjpn.dll respectively). While the OleLoad GUI component is loading, it looks for the local language set at the system level. If the regional language is set to Japanese (JPN) OleLoad loads the Japanese localized library; otherwise, it loads the English localized library. Compiling the sample program that is provided after OLE DB Access Module installation allows the extension of localization to many other languages. Follow the instructions in this chapter to create a new localized library.

For installation instructions, see the Teradata Tools and Utilities for Microsoft Windows Installation Guide (B035-2407).

To create a new localized system library:

1 After installation the folder containing the sample file will be in read-only format, and you need to remove the read-only property as follows:

a Go to the %PROGRAMFILES%\Teradata\Client\15.10\AXSMOD folder.

b Right click the Teradata OLE DB Access Module Sample folder, and clear the read-only attribute checkbox.

2 Go to http://msdn.microsoft.com/en-us/library/windows/desktop/dd318693(v=vs.85).aspx, to find the Sublanguage ID (Sublang-identifier) for the desired language.

For example, for Italian, choose “it”.

3 Open the following files in a text editor, and replace the string OLEDB_AXSMODenu with OLEDB_AXSMOD<desired language ID>.

  • %PROGRAMFILES%\Teradata\Client\15.10\AXSMOD\Project\OLEDB_AXSMODenu_sample.vcxproj
  • %PROGRAMFILES%\Teradata\Client\15.10\AXSMOD\Project\OLEDB_AXSMODenu.rc

    4 Save the files.

    5 Rename the following files:

  • Rename OLEDB_AXSMODenu.rc to OLEDB_AXSMODits.rc.
  • Rename OLEDB_AXSMODenu.vcxproj to OLEDB_AXSMOD<desired language ID.vcxproj.
  • Rename OLEDB_AXSMODenu-version.rc to OLEDB_AXSMOD<desired language ID>-version.rc.
  • 6 Open the OLEDB_AXSMODits-version.rc file in a text editor and do the following:

    a Go to http://msdn.microsoft.com/en-us/library/ms693062(v=vs.85).aspx, to find the appropriate “Win32 Equivalent” IDs for the desired language.

    b Replace LANG_ENGLISH with the desired language ID.

    c Replace SUBLANG_ENGLISH_US with the desired sub-language ID.

    For example for Italian, replace LANG_ENGLISH with LANG_ITALIAN and

    SUBLANG_ENGLISH_US with SUBLANG_ITALIAN.

    7 In the OLEDB_AXSMODits.rc file, beneath the comment “Strings which should be translated”, change the string IDs from English to the desired language.

    8 Use the Microsoft visual studio 2012 command prompt to locate the OLEDB_AXSMODits.vcproj file.

    9 In the command prompt, enter the following to build the project:

    msbuild OLEDB_AXSMODits.vcxproj /property:Configuration=Release /p:Platform=win32

    The OLEDB_AXSMODits.dll file is created in the .\output\nt-i386 directory.

    10 Copy the newly created OLEDB_AXSMODits.dll file to:

    %PROGRAMFILES%\Teradata\Client\15.10\AXSMOD

    11 Change the language format:

    a In the Control Panel, navigate to and click Region and language.

    The Region and Language dialog appears.

    b From the Format drop-down menu, change the system language format to the new language, and click Apply.

    12 Open OleLoad.

    The localized library is loaded, containing strings in the desired language.