System.GetResourceModuleName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetResourceModuleName(HostAppName, ModuleName: string): string;

C++

extern DELPHI_PACKAGE UnicodeString __fastcall GetResourceModuleName(UnicodeString HostAppName, UnicodeString ModuleName);

Properties

Type Visibility Source Unit Parent
function public
System.pas
System.hpp
System System

Description

Returns the localized name for a module.

Use GetResourceModuleName to obtain the name of the localized module, given a non-localized one. GetResourceModuleName requires two parameters: HostAppName and ModuleName. HostAppName is used to obtain the locale override (if it exists); ModuleName contains the name of the non-localized module for which the localized version is to be obtained.

GetResourceModuleName searches the application directory using a set of rules to determine the best matching localized version for a module. If no localized versions for the module exist, or no localized versions compatible with the current UI exist, GetResourceModuleName returns the value of ModuleName.

See Also