My bug in the function INVALIDATERECT (source file: c_windows.c) was not corrected.
The correct code in line 1776 is:
Code: Select all
if (hb_arrayLen (pArrayRect) == 4)
Claudio.
Moderator: Rathinagiri
Code: Select all
if (hb_arrayLen (pArrayRect) == 4)
Just in followin this trail...rathinagiri wrote:Hi Ronaldo,
Can you show me where can I find the proper language codes?Chacal.GO wrote:After Set Local language/CodePage, Just call: Set ( _SET_LANGUAGE )
Code: Select all
"af"
"af-ZA"
"sq"
"sq-AL"
"ar"
"ar-DZ"
"ar-BH"
"ar-EG"
"ar-IQ"
"ar-JO"
"ar-KW"
"ar-LB"
"ar-LY"
"ar-MA"
"ar-OM"
"ar-QA"
"ar-SA"
"ar-SY"
"ar-TN"
"ar-AE"
"ar-YE"
"hy"
"hy-AM"
"az"
"az-AZ-Cyrl"
"az-AZ-Latn"
"eu"
"eu-ES"
"be"
"be-BY"
"bg"
"bg-BG"
"ca"
"ca-ES"
"cy-GB"
"zh-HK"
"zh-MO"
"zh-CN"
"zh-CHS"
"zh-SG"
"zh-TW"
"zh-CHT"
"hr"
"hr-HR"
"cs"
"cs-CZ"
"da"
"da-DK"
"div"
"div-MV"
"nl"
"nl-BE"
"nl-NL"
"en"
"en-AU"
"en-BZ"
"en-CA"
"en-CB"
"en-IE"
"en-JM"
"en-NZ"
"en-PH"
"en-ZA"
"en-TT"
"en-GB"
"en-US"
"en-ZW"
"et"
"et-EE"
"fo"
"fo-FO"
"fa"
"fa-IR"
"fi"
"fi-FI"
"fr"
"fr-BE"
"fr-CA"
"fr-FR"
"fr-LU"
"fr-MC"
"fr-CH"
"gl"
"gl-ES"
"ka"
"ka-GE"
"de"
"de-AT"
"de-DE"
"de-LI"
"de-LU"
"de-CH"
"el"
"el-GR"
"gu"
"gu-IN"
"he"
"he-IL"
"hi"
"hi-IN"
"hu"
"hu-HU"
"is"
"is-IS"
"id"
"id-ID"
"it"
"it-IT"
"it-CH"
"ja"
"ja-JP"
"kn"
"kn-IN"
"kk"
"kk-KZ"
"kok"
"kok-IN"
"ko"
"ko-KR"
"ky"
"ky-KZ"
"lv"
"lv-LV"
"lt"
"lt-LT"
"mk"
"mk-MK"
"ms"
"ms-BN"
"ms-MY"
"mr"
"mr-IN"
"mn"
"mn-MN"
"no"
"nb-NO"
"nn-NO"
"pl"
"pl-PL"
"pt"
"pt-BR"
"pt-PT"
"pa"
"pa-IN"
"ro"
"ro-RO"
"ru"
"ru-RU"
"sa"
"sa-IN"
"sr-SP-Cyrl"
"sr-SP-Latn"
"sk"
"sk-SK"
"sl"
"sl-SI"
"es"
"es-AR"
"es-BO"
"es-CL"
"es-CO"
"es-CR"
"es-DO"
"es-EC"
"es-SV"
"es-GT"
"es-HN"
"es-MX"
"es-NI"
"es-PA"
"es-PY"
"es-PE"
"es-PR"
"es-ES"
"es-UY"
"es-VE"
"sw"
"sw-KE"
"sv"
"sv-FI"
"sv-SE"
"syr"
"syr-SY"
"ta"
"ta-IN"
"tt"
"tt-RU"
"te"
"te-IN"
"th"
"th-TH"
"tr"
"tr-TR"
"uk"
"uk-UA"
"ur"
"ur-PK"
"uz"
"uz-UZ-Cyrl"
"uz-UZ-Latn"
"vi"
"vi-VN"
NULL
Code: Select all
Do Case
Case Upper(IDIOMA)="ENGLISH"
SET LANGUAGE TO ENGLISH
Case Upper(IDIOMA)="SPANISH"
SET LANGUAGE TO SPANISH
Case Upper(IDIOMA)="FRENCH"
SET LANGUAGE TO FRENCH
Case Upper(IDIOMA)="PORTUGUESE"
SET LANGUAGE TO PORTUGUESE
so on...
Code: Select all
LOCAL cLang := hb_UserLang()
/* Language that exists in HMG: InitMessages() */
IF ( cLang in { "pl", "pl-PL" } )
SET LANGUAGE TO POLISH
SET CODEPAGE TO POLISH
/* my translations */
ENDIF
/* Language not exists in HMG */
IF ( cLang in { "ar", "ar-DZ", "ar-BH", "ar-EG", "ar-IQ", "ar-JO", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-OM", "ar-QA", "ar-SA", "ar-SY", "ar-TN", "ar-AE", "ar-YE" } )
_HMG_SYSDATA \[ 211 \] := ' '
REQUEST HB_LANG_AR
HB_LANGSELECT( cLang, "ARISO" )
InitMessages() /* HMG messages need updates to work properly */
REQUEST HB_CODEPAGE_AR
HB_CDPSELECT("ARISO")
/* my translations */
ENDIF
Então ao selecionar com SET LANGUAGE TO PORTUGUESE, bastaria. Inclsuive parece que não todos utilizam CODEPAGE ou não possuem.REQUEST HB_LANG_PT
REQUEST HB_CODEPAGE_PT850
HB_LANGSELECT('PT')
HB_CDPSELECT("PT850")
Then select with the SET LANGUAGE TO ENGLISH, would suffice. Inclsuive seems that not everyone uses CODEPAGE or do not have.REQUEST HB_LANG_PT
REQUEST HB_CODEPAGE_PT850
HB_LANGSELECT ('PT')
HB_CDPSELECT ("PT850")
No any magic for your request...
You are right, Ronaldo. Other colleagues should manifest about behaviour of their local languages with HMG.Chacal.GO wrote:Then I invite all user to help in HMG messages/translations using new Harbour features...
To do:See a sample at:SPANISH
ENGLISH
FRENCH
PORTUGUESE -> Fixed
GERMAN
RUSSIAN
ITALIAN
POLISH
BASQUE
CROATIAN
SLOVENIAN
CZECH
FINNISH
DUTCH
viewtopic.php?p=21498#p21498