FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour el DTPICKER el MsgYesNo() etc en ingles y otros idiomas
Posts: 880
Joined: Fri Jan 12, 2007 08:35 PM
el DTPICKER el MsgYesNo() etc en ingles y otros idiomas
Posted: Wed Apr 28, 2021 05:58 AM
Hola
necesito poner el DTPICKER el MsgYesNo() etc
en ingles y otros idiomas

estoy usando FWSetLanguage()
pero no hace efecto en ellos



Code (fw): Select all Collapse
if lenguitas=1
FWSetLanguage( 1 )
elseif lenguitas=2
FWSetLanguage( 2 )
elseif lenguitas=3
FWSetLanguage( 3 )
elseif lenguitas=4
FWSetLanguage( 4 )
elseif lenguitas=5
FWSetLanguage( 5 )
elseif lenguitas=6
FWSetLanguage( 6 )
endif



Saluditos :-)
Que es mejor que programar? creo que nada :)
Atropellada pero aqui ando :P

I love Fivewin

séʌǝɹ ןɐ ɐʇsǝ opunɯ ǝʇsǝ
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: el DTPICKER el MsgYesNo() etc en ingles y otros idiomas
Posted: Wed Apr 28, 2021 12:44 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 880
Joined: Fri Jan 12, 2007 08:35 PM
Re: el DTPICKER el MsgYesNo() etc en ingles y otros idiomas
Posted: Wed Apr 28, 2021 05:27 PM
Gracias :-)

Code (fw): Select all Collapse
if lenguitas=1
HB_LangSelect('EN')
FWSetLanguage( 1 )
elseif lenguitas=2
HB_LangSelect('ES')
FWSetLanguage( 2 )
elseif lenguitas=3
HB_LangSelect('FR')
FWSetLanguage( 3 )
elseif lenguitas=4
HB_LangSelect('PT')
FWSetLanguage( 4 )
elseif lenguitas=5
HB_LangSelect('DE')
FWSetLanguage( 5 )
elseif lenguitas=6
HB_LangSelect('IT')
FWSetLanguage( 6 )
endif
Que es mejor que programar? creo que nada :)
Atropellada pero aqui ando :P

I love Fivewin

séʌǝɹ ןɐ ɐʇsǝ opunɯ ǝʇsǝ
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: el DTPICKER el MsgYesNo() etc en ingles y otros idiomas
Posted: Wed Apr 28, 2021 05:36 PM

Aida,

Lo estamos revisando

gracias

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 880
Joined: Fri Jan 12, 2007 08:35 PM
Re: el DTPICKER el MsgYesNo() etc en ingles y otros idiomas
Posted: Wed Apr 28, 2021 05:51 PM
Antonio Linares wrote:Aida,

Lo estamos revisando

gracias


Pude cambiar mi windows al idioma ingles y si ya sale todo en ingles me imagino seria lo mismo si el windows estuviera en otros idiomas :-)

pero si alguien tiene windows en ingles y quiere usar mi programa en español los letreritos como el MsgYesNo() o el DTPICKER saldrán en ingles, habrá alguna manera para evitar eso


Saluditos :-)
Que es mejor que programar? creo que nada :)
Atropellada pero aqui ando :P

I love Fivewin

séʌǝɹ ןɐ ɐʇsǝ opunɯ ǝʇsǝ
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: el DTPICKER el MsgYesNo() etc en ingles y otros idiomas
Posted: Thu Apr 29, 2021 10:02 AM

Aida,

Para las funciones Msg...() puedes hacerlo asi:

MsgYesNo( FWString( "..." ), FWString( "..." ) )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 880
Joined: Fri Jan 12, 2007 08:35 PM
Re: el DTPICKER el MsgYesNo() etc en ingles y otros idiomas
Posted: Sat May 01, 2021 01:06 AM
Antonio Linares wrote:Aida,

Para las funciones Msg...() puedes hacerlo asi:

MsgYesNo( FWString( "..." ), FWString( "..." ) )


a si es, a si lo tengo


Code (fw): Select all Collapse
MsgYesNo( FWString("Do you want to go out ?"), FWString("Message") )


Que es mejor que programar? creo que nada :)
Atropellada pero aqui ando :P

I love Fivewin

séʌǝɹ ןɐ ɐʇsǝ opunɯ ǝʇsǝ
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: el DTPICKER el MsgYesNo() etc en ingles y otros idiomas
Posted: Sat May 01, 2021 07:22 AM

Aida,

Y has probado a cambiar de idioma ?

En samples/FiveDBU.prg nosotros usamos FWString(). Revísalo para ver si lo haces igual, gracias

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM
Re: el DTPICKER el MsgYesNo() etc en ingles y otros idiomas
Posted: Fri Aug 04, 2023 06:05 PM
Hola.
He definido esto y quisiera saber como acceso cuando son frases tan completas?
Code (fw): Select all Collapse
local aTranslates:= {;
                          { "Last names:", "Apellidos:", NIL, "Apelido:", NIL, "Cognome:" },  ;
                          { "Names:", "Nombres:", NIL, "Nomes:", NIL,  "Nomi:" },  ;
                          { "Date of birth:", "Fecha nacimiento:", NIL, "Data de nascimento:", NIL, "Data di nascita:" }, ;
                          { "Place of birth:", "Lugar de Nacimiento:", NIL, "Local de nascimento:", NIL, "Luogo di nascita:" }, ;
                          { "Father's last name:", "Apellidos del padre:", NIL, "Apelido do pai:", NIL, "Cognome del padre:" } ;
                          }

   AEval( aTranslates, { | a | FWAddString( a ) } )
   fwsetlanguage( 2 )
Quiero ahora  usar el "place of birth". PREGUNTA: hay otra forma de llamarlo sin tener que usar fwstring( "Date of birth:" )?

Gracias.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: el DTPICKER el MsgYesNo() etc en ingles y otros idiomas
Posted: Sat Aug 12, 2023 07:43 AM
Pude cambiar mi windows al idioma ingles y si ya sale todo en ingles me imagino seria lo mismo si el windows estuviera en otros idiomas
ENGLISH
I was able to change my windows to the English language and if everything already appears in English I imagine it would be the same if the windows were in other languages
Yes, You are right. Windows OS displays the prompts on the buttons in the language selected in Windows OS.
pero si alguien tiene windows en ingles y quiere usar mi programa en español los letreritos como el MsgYesNo() o el DTPICKER saldrán en ingles, habrá alguna manera para evitar eso
ENGLISH
But if someone has windows in English and wants to use my program in Spanish, the little letters like MsgYesNo() or DTPICKER will appear in English, will there be a way to avoid that?
We can change the language displayed on the MSG... functions, using this FWH function.
Code (fw): Select all Collapse
SetMsgLangID( 1034 ) // - Spanish
Other useful Msg Lang IDs are:
Code (fw): Select all Collapse
en_us 1033
es_es 1034
fr_fr 1036
pt_pt 2070
de_de 1031
it_it 1040
You can see some moe IDs that can be used here
https://www.science.co.il/language/Locale-codes.php
Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: el DTPICKER el MsgYesNo() etc en ingles y otros idiomas
Posted: Sat Aug 12, 2023 07:44 AM
Pude cambiar mi windows al idioma ingles y si ya sale todo en ingles me imagino seria lo mismo si el windows estuviera en otros idiomas
ENGLISH
I was able to change my windows to the English language and if everything already appears in English I imagine it would be the same if the windows were in other languages
Yes, You are right. Windows OS displays the prompts on the buttons in the language selected in Windows Settings..
pero si alguien tiene windows en ingles y quiere usar mi programa en español los letreritos como el MsgYesNo() o el DTPICKER saldrán en ingles, habrá alguna manera para evitar eso
ENGLISH
But if someone has windows in English and wants to use my program in Spanish, the little letters like MsgYesNo() or DTPICKER will appear in English, will there be a way to avoid that?
We can change the language displayed on the MSG... functions, using this FWH function.
Code (fw): Select all Collapse
SetMsgLangID( 1034 ) // - Spanish
If you set this at the beginning of your application, all msg..boxes buttons are displayed in Spanish, irrespective of the language set in the Windows settings.

Other useful Msg Lang IDs are:
Code (fw): Select all Collapse
en_us 1033
es_es 1034
fr_fr 1036
pt_pt 2070
de_de 1031
it_it 1040
You can see some moe IDs that can be used here
https://www.science.co.il/language/Locale-codes.php
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion