* doc/en/lang.txt
* include/hbapilng.h
* src/rtl/langapi.c
+ HB_LANGNAME() Harbour API extended to accept optional
language ID. See docs.
+ HB_LANGMESSAGE() Harbour API extended to accept 2nd parameter
as optional language ID. See docs.
+ added new C level API to retrieve a language string from
any language module (not just selected one):
const char * hb_langGetItem( const char * pszID, int iIndex );
+ extended hb_langName() C level API to be able to retrieve
name of any language modules, not just selected one:
char * hb_langName( const char * pszID );
[INCOMPATIBLE]
* hb_langDGetItem() C level API moved to 'compatibility' status
* uncrustified unattendedly
* src/codepage/l_fr.c
! fixed another typo which was result of local paste mistake
* utils/hbmk2/hbmk2.hu_HU.po
* utils/hbmk2/hbmk2.prg
+ extended the wording of -comp=/-plat= options, default behavior indicated
* tests/langapi.prg
! updated to RTE at the end and to use non-legacy language IDs
* tests/langapi.prg
* contrib/hbnf/tests/datecnfg.prg
* utils/hbtest/hbtest.prg
* minor cleanup
42 lines
701 B
Plaintext
42 lines
701 B
Plaintext
/*
|
|
* $Id$
|
|
*/
|
|
|
|
// ; Donated to the public domain by
|
|
// Viktor Szakats (harbour syenar.net)
|
|
|
|
REQUEST HB_LANG_HU
|
|
REQUEST HB_LANG_KO
|
|
|
|
PROCEDURE Main()
|
|
|
|
? "Prev:", hb_langSelect()
|
|
? hb_langName()
|
|
? NationMsg( 1 )
|
|
? CMonth( Date() )
|
|
? CDoW( Date() )
|
|
? "---------"
|
|
|
|
? "Prev:", hb_langSelect( "hu" )
|
|
? hb_langName()
|
|
? NationMsg( 1 )
|
|
? CMonth( Date() )
|
|
? CDoW( Date() )
|
|
? "---------"
|
|
|
|
? "Prev:", hb_langSelect( "ko" )
|
|
? hb_langName()
|
|
? NationMsg( 1 )
|
|
? CMonth( Date() )
|
|
? CDoW( Date() )
|
|
? "---------"
|
|
|
|
? "Prev:", hb_langSelect( "NOTHERE" )
|
|
? hb_langName()
|
|
? NationMsg( 1 )
|
|
? CMonth( Date() )
|
|
? CDoW( Date() )
|
|
? "---------"
|
|
|
|
RETURN
|