Harbour Reference Guide

 

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.

<cNewLang>LanguageCodepage
EUBasque850
CS852Czech852
CSISOCzechISO-8859-2
CSKAMCzechKAM
CACatalan850
ENEnglish437
FRFrench850
GLGalician850
DEGerman850
HE862Hebrew862
HEWINHebrew1255
HU852Hungarian852
HUCWIHungarianCWI-2
HUWINHungarianWindows-1
IS85Icelandic850
ITItalian437
KRKorean949
PL852Polish852
PLISOPolishISO-8859-1
PLMAZPolishMozowia
PTPortuguese850
RORomanian852
SRISOSerbianISO-8859-2
SR852Serbian852
ESSpanish850

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 Romanian
      ? 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

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30