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.

LanguageCodepage<cNewLang>
Basque850EU
Catalan850CA
Croatian852HR
CroatianISO-8859-2HRISO
Czech852CS
CzechISO-8859-2CSISO
CzechKAMCS
English437EN
Esperanto850EO
French850FR
Galician850GL
German850DE
Hebrew862HE
Hungarian852HU
HungarianCWI-2HUCWI
HungarianWindows-1HUWIN
Icelandic850IS85
Indonesian437ID
Italian437IT
Korean949KO
Polish852PL
PolishISO-8859-1PLISO
PolishMozowiaPLMAZ
Portuguese850PT
Romanian852RO
Russian866RU
Serbian852SR
SerbianISO-8859-2SRISO
Spanish850ES

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