Pablo César wrote:Dear Claudio, I've done what you indicated. But my _HMG_SYSDATA[211] is still "EN" not "PT".
It for this reason I said "
how we can get this cSetLang when is always EMPTY or always EN (even not been English) ?".
Just to take the duly attribution of _HMG_SYSDATA[211].
After Dr. Soto explainations, I could say Language suport inside HMG, should be review. I fully agree with Dr. Soto to untie languages strings inside HMG and start using the language file directly (like as IDE and STRU app). But this is a hard job and we will need a lot of help for translation of local languages just to assure all languages envolved are perfectly translated.
I have found problems when a I set this in my codes:
SET LANGUAGE TO PORTUGUESE
I have checked sintaxe of this in C:\hmg.3.1.3\INCLUDE\i_lang.ch and corrected from this:
#translate SET LANGUAGE TO PORTUGUESE => _HMG_SYSDATA \[ 211 \] := ' ' ; REQUEST HB_LANG_PT ; HB_LANGSELECT(hb_UserLang(), "PT850") ; InitMessages("PT")
to correct to this:
#translate SET LANGUAGE TO PORTUGUESE => _HMG_SYSDATA \[ 211 \] := ' ' ; REQUEST HB_LANG_PT ; HB_LANGSELECT( "PT" ) ; InitMessages("PT")
I have tested and work properly now. Otherwise with the old sintax for PORTUGUESE is coming with following error:
Error BASE/1303 Erro nos parametros: __HB_LANGSELECT
Called from __HB_LANGSELECT(0)
Called from HB_LANGSELECT(0)
Called from MAIN(27)
So please Dr. Soto, include this changing for next release. I have already added in
Pendings for NEXT release ( REMINDER ) message for providences.