HB_LANG* and NATIONMSG()

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

HB_LANG* and NATIONMSG()

Post 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
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: HB_LANG* and NATIONMSG()

Post 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
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: HB_LANG* and NATIONMSG()

Post 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:
have fun
Jimmy
Post Reply