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

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

Postby AIDA » Wed Apr 28, 2021 5:58 am

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

I love Fivewin

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

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

Postby karinha » Wed Apr 28, 2021 12:44 pm

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7214
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

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

Postby AIDA » Wed Apr 28, 2021 5:27 pm

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
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
AIDA
 
Posts: 877
Joined: Fri Jan 12, 2007 8:35 pm

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

Postby Antonio Linares » Wed Apr 28, 2021 5:36 pm

Aida,

Lo estamos revisando

gracias
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

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

Postby AIDA » Wed Apr 28, 2021 5: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 :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
AIDA
 
Posts: 877
Joined: Fri Jan 12, 2007 8:35 pm

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

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

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

Postby AIDA » Sat May 01, 2021 1:06 am

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

I love Fivewin

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

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

Postby Antonio Linares » Sat May 01, 2021 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

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

Postby goosfancito » Fri Aug 04, 2023 6:05 pm

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.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm

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

Postby nageswaragunupudi » Sat Aug 12, 2023 7: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: 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
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10248
Joined: Sun Nov 19, 2006 5:22 am
Location: India

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

Postby nageswaragunupudi » Sat Aug 12, 2023 7: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: 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
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10248
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 86 guests