# HB_LANGSELECT()

Select a specific nation message module

Syntax

  HB_LANGSELECT( <cNewLang> ) --> cOldLang

Arguments

  <cNewLang> The ID of the country language module The possible values for <cNewLang> is below as is defined in the Lang library,sorted by language.

Language | Codepage | <cNewLang>
Basque | 850 | EU
Catalan | 850 | CA
Croatian | 852 | HR
Croatian | ISO-8859-2 | HRISO
Czech | 852 | CS
Czech | ISO-8859-2 | CSISO
Czech | KAM | CS
English | 437 | EN
Esperanto | 850 | EO
French | 850 | FR
Galician | 850 | GL
German | 850 | DE
Hebrew | 862 | HE
Hungarian | 852 | HU
Hungarian | CWI-2 | HUCWI
Hungarian | Windows-1 | HUWIN
Icelandic | 850 | IS85
Indonesian | 437 | ID
Italian | 437 | IT
Korean | 949 | KO
Polish | 852 | PL
Polish | ISO-8859-1 | PLISO
Polish | Mozowia | PLMAZ
Portuguese | 850 | PT
Romanian | 852 | RO
Russian | 866 | RU
Serbian | 852 | SR
Serbian | ISO-8859-2 | SRISO
Spanish | 850 | ES

Returns

  <cOldLang> The old language indentifier

Description

  This function set a default language module for date/month names, internal warnigs,NatMsg messages and internal errors. When a Lang ID is selected all messages will be output as the current lang selected until another one is selected or the program ends.

Examples

          REQUEST HB_LANG_PT
          REQUEST HB_LANG_RO
          REQUEST HB_LANG_ES
          FUNCTION MAIN()
          HB_LANGSELECT( 'PT' )       // Default language is now Portuguese
          ? CDOW( DATE() )            // Segunda-feira
          ? 'Old language id selected is ", HB_LANGSELECT()   // PT
          HB_LANGSELECT( 'RO' )       // Default language is now Romanian
          ? CMONTH( DATE() )          // Mai
          ? 'Old language id selected is ",HB_LANGSELECT()   // RO
          HB_LANGSELECT( 'ES' )       // Default language is now Spanish
          ? CMONTH( DATE() )          // Mayo
          ? CDOW( DATE() )            // Lunes
          RETURN NIL
    Tests
          See tests/langapi.prg

Status

  Ready

Compliance

  This function is a Harbour Extension.

Platforms

  Dos,Win32,OS/2

Files

  Libraty is rtl

See Also

- HB_LANGNAME()
- NATIONMSG()