Page 1 of 1

HB_LANG* and NATIONMSG()

Posted: Fri Feb 14, 2020 4:40 am
by AUGE_OHR
hi,

i have read about HB_LANGNAME() / HB_LANGSELECT() and have some Question.

a.) do i need to REQUEST HB_LANG_XX for every Language which i want to include ... and how about "all" :idea:
b.) where do i find Constant for NATIONMSG()
c.) how to find out which Language User have

---
fo c.) i have use something like this

Code: Select all

     CountryCode  :=  GETCOUNTRY()
     IF CountryCode = 49
        ? "The country code for Germany has been set!"
     ENDIF

Re: HB_LANG* and NATIONMSG()

Posted: Fri Feb 14, 2020 1:47 pm
by AUGE_OHR
hi,

i found GETCOUNTRY() in Help file but got e Error when try to compile :o

but i have a other Test for Keyboard

Code: Select all

   MsgInfo("Keyboard Layout "+STR( HB_bitAND( GETKEYBOARDLAYOUT() , 0xFFFF )))
that give me 1031 for German and 1033 for English.

please try what you get with your PC and tell me which HB_LANGSELECT() you use, thx

Re: HB_LANG* and NATIONMSG()

Posted: Fri Feb 14, 2020 2:35 pm
by AUGE_OHR
hi,

have found c:\harbour\tests\langmsg.prg

have modify it (include all LANG*) and try it with DE
LANGMSG.ZIP
(3.09 KiB) Downloaded 128 times
but most Element are not translate ... only those for Function :(

but i did not find Source of HB_LANG_DE ... where do i find it :idea: