Page 1 of 1

el DTPICKER el MsgYesNo() etc en ingles y otros idiomas

PostPosted: Wed Apr 28, 2021 5:58 am
by AIDA
Hola
necesito poner el DTPICKER el MsgYesNo() etc
en ingles y otros idiomas

estoy usando FWSetLanguage()
pero no hace efecto en ellos

Image

Code: Select all  Expand view
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 :wink:

Re: el DTPICKER el MsgYesNo() etc en ingles y otros idiomas

PostPosted: Wed Apr 28, 2021 12:44 pm
by karinha

Re: el DTPICKER el MsgYesNo() etc en ingles y otros idiomas

PostPosted: Wed Apr 28, 2021 5:27 pm
by AIDA
Gracias :D

Code: Select all  Expand view
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

Re: el DTPICKER el MsgYesNo() etc en ingles y otros idiomas

PostPosted: Wed Apr 28, 2021 5:36 pm
by Antonio Linares
Aida,

Lo estamos revisando

gracias

Re: el DTPICKER el MsgYesNo() etc en ingles y otros idiomas

PostPosted: Wed Apr 28, 2021 5:51 pm
by AIDA
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 :roll:

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 :wink:

Re: el DTPICKER el MsgYesNo() etc en ingles y otros idiomas

PostPosted: Thu Apr 29, 2021 10:02 am
by Antonio Linares
Aida,

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

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

Re: el DTPICKER el MsgYesNo() etc en ingles y otros idiomas

PostPosted: Sat May 01, 2021 1:06 am
by AIDA
Antonio Linares wrote:Aida,

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

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


a si es, a si lo tengo


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


Image

Re: el DTPICKER el MsgYesNo() etc en ingles y otros idiomas

PostPosted: Sat May 01, 2021 7:22 am
by Antonio Linares
Aida,

Y has probado a cambiar de idioma ?

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

Re: el DTPICKER el MsgYesNo() etc en ingles y otros idiomas

PostPosted: Fri Aug 04, 2023 6:05 pm
by goosfancito
Hola.
He definido esto y quisiera saber como acceso cuando son frases tan completas?

Code: Select all  Expand view
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.

Re: el DTPICKER el MsgYesNo() etc en ingles y otros idiomas

PostPosted: Sat Aug 12, 2023 7:43 am
by nageswaragunupudi
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: Select all  Expand view
SetMsgLangID( 1034 ) // - Spanish

Other useful Msg Lang IDs are:
Code: Select all  Expand view

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

Re: el DTPICKER el MsgYesNo() etc en ingles y otros idiomas

PostPosted: Sat Aug 12, 2023 7:44 am
by nageswaragunupudi
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: Select all  Expand view
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: Select all  Expand view

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