Show: Object Pascal C++
Display Preferences

System.SysUtils.GetLocaleDirectory

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function GetLocaleDirectory(const Directory: string): String;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall GetLocaleDirectory(const System::UnicodeString Directory);

Properties

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

Description

Returns the fully qualified name of the locale directory that corresponds to one of the preferred UI languages.

GetLocaleDirectory searches in the directory specified by the Directory parameter the locale directory that corresponds to any of the preferred UI languages. If such a directory is found, then its fully qualified name is returned, otherwise the fully qualified name of Directory is returned.

Example

Suppose that the current directory contains a directory named loc with the following structure:

  • ab [directory]
  • en [directory]
  • en-US [directory]
  • ro [directory]

and the current preferred UI language list (see PreferredUILanguageList) contains:

  • EN-US
  • EN

In this case, if GetLocaleDirectory is called with the loc parameter, the following string is returned:

<current directory>\loc\EN-US\

See Also

Personal tools
Translations