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

Post Reply
User avatar
AIDA
Posts: 879
Joined: Fri Jan 12, 2007 8:35 pm

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

Post 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

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:
Que es mejor que programar? creo que nada :)
Atropellada pero aqui ando :P

I love Fivewin

séʌǝɹ ןɐ ɐʇsǝ opunɯ ǝʇsǝ
User avatar
AIDA
Posts: 879
Joined: Fri Jan 12, 2007 8:35 pm

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

Post by AIDA »

Gracias :D

Code: Select all | Expand

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
Last edited by AIDA on Wed Apr 28, 2021 5:49 pm, edited 1 time in total.
Que es mejor que programar? creo que nada :)
Atropellada pero aqui ando :P

I love Fivewin

séʌǝɹ ןɐ ɐʇsǝ opunɯ ǝʇsǝ
User avatar
Antonio Linares
Site Admin
Posts: 42513
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

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

Post by Antonio Linares »

Aida,

Lo estamos revisando

gracias
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
AIDA
Posts: 879
Joined: Fri Jan 12, 2007 8:35 pm

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

Post 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:
Que es mejor que programar? creo que nada :)
Atropellada pero aqui ando :P

I love Fivewin

séʌǝɹ ןɐ ɐʇsǝ opunɯ ǝʇsǝ
User avatar
Antonio Linares
Site Admin
Posts: 42513
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

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

Post by Antonio Linares »

Aida,

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

MsgYesNo( FWString( "..." ), FWString( "..." ) )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
AIDA
Posts: 879
Joined: Fri Jan 12, 2007 8:35 pm

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

Post 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

MsgYesNo( FWString("Do you want to go out ?"), FWString("Message") )


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

I love Fivewin

séʌǝɹ ןɐ ɐʇsǝ opunɯ ǝʇsǝ
User avatar
Antonio Linares
Site Admin
Posts: 42513
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

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

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
goosfancito
Posts: 1955
Joined: Fri Oct 07, 2005 7:08 pm

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

Post by goosfancito »

Hola.
He definido esto y quisiera saber como acceso cuando son frases tan completas?

Code: Select all | Expand

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/
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

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

Post 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

SetMsgLangID( 1034 ) // - Spanish
Other useful Msg Lang IDs are:

Code: Select all | Expand

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
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

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

Post 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

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

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
Post Reply