In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

TPreviewControl Button text

Xailer professional forum in English
Responder
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

TPreviewControl Button text

Mensaje por Gejza Horvath »

Hi,
I would like to change all the texts in TPreviewControl (toolbar buttons,printer menu,
etc.) to a local language. How is it possible?
Thanks
Gejza Horváth
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

TPreviewControl Button text

Mensaje por jfgimenez »

Gejza,
> I would like to change all the texts in TPreviewControl (toolbar
> buttons,printer menu, etc.) to a local language. How is it possible?
You may change the source file xailersourcepreviewcontrol.prg to fit your
needs.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

TPreviewControl Button text

Mensaje por jfgimenez »

Gejza,
> I would like to change all the texts in TPreviewControl (toolbar
> buttons,printer menu, etc.) to a local language. How is it possible?
You may change the source file xailersourcepreviewcontrol.prg to fit your
needs.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

TPreviewControl Button text

Mensaje por Gejza Horvath »

I'm looking into the source, and I see that you use the LT() function to fill the
control's label. I'm not too familiar with this function. Is there a possibility to use
only a stringtable resource to redefine the captions?
I think, I'm not alone to use a non-english language. IMO translating the
previewcontrol.prg for every user and every language is not the best way to solve this
problem. Could you please modify this control to use for ex. an external file with
strings?
Gejza Horvath
"Jose F. Gimenez" <jfgimenez@wanadoo.es> pí¹e v diskusním pøíspìvku
news:47150d79$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Gejza,
>
>> I would like to change all the texts in TPreviewControl (toolbar buttons,printer menu,
>> etc.) to a local language. How is it possible?
>
> You may change the source file xailersourcepreviewcontrol.prg to fit your needs.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
>
>
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

TPreviewControl Button text

Mensaje por Gejza Horvath »

I'm looking into the source, and I see that you use the LT() function to fill the
control's label. I'm not too familiar with this function. Is there a possibility to use
only a stringtable resource to redefine the captions?
I think, I'm not alone to use a non-english language. IMO translating the
previewcontrol.prg for every user and every language is not the best way to solve this
problem. Could you please modify this control to use for ex. an external file with
strings?
Gejza Horvath
"Jose F. Gimenez" <jfgimenez@wanadoo.es> pí¹e v diskusním pøíspìvku
news:47150d79$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Gejza,
>
>> I would like to change all the texts in TPreviewControl (toolbar buttons,printer menu,
>> etc.) to a local language. How is it possible?
>
> You may change the source file xailersourcepreviewcontrol.prg to fit your needs.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
>
>
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

TPreviewControl Button text

Mensaje por ignacio »

Gezja,
Take a look at LT() function in the docs. You will see that it really does
just what you are talking about.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
news:[email=47175692@ozsrv2.ozlan.local...]47175692@ozsrv2.ozlan.local...[/email]
> I'm looking into the source, and I see that you use the LT() function to
> fill the control's label. I'm not too familiar with this function. Is
> there a possibility to use only a stringtable resource to redefine the
> captions?
>
> I think, I'm not alone to use a non-english language. IMO translating the
> previewcontrol.prg for every user and every language is not the best way
> to solve this problem. Could you please modify this control to use for ex.
> an external file with strings?
>
> Gejza Horvath
>
>
> "Jose F. Gimenez" <jfgimenez@wanadoo.es> pí¹e v diskusním
> pøíspìvku news:47150d79$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Gejza,
>>
>>> I would like to change all the texts in TPreviewControl (toolbar
>>> buttons,printer menu, etc.) to a local language. How is it possible?
>>
>> You may change the source file xailersourcepreviewcontrol.prg to fit
>> your needs.
>>
>> --
>> Regards,
>>
>> Jose F. Gimenez
>> http://www.xailer.com
>> http://www.xailer.info
>>
>>
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
NoName
Mensajes: 531
Registrado: Vie Feb 03, 2006 7:27 pm

TPreviewControl Button text

Mensaje por NoName »

Gezja,
Take a look at LT() function in the docs. You will see that it really does
just what you are talking about.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
news:[email=47175692@ozsrv2.ozlan.local...]47175692@ozsrv2.ozlan.local...[/email]
> I'm looking into the source, and I see that you use the LT() function to
> fill the control's label. I'm not too familiar with this function. Is
> there a possibility to use only a stringtable resource to redefine the
> captions?
>
> I think, I'm not alone to use a non-english language. IMO translating the
> previewcontrol.prg for every user and every language is not the best way
> to solve this problem. Could you please modify this control to use for ex.
> an external file with strings?
>
> Gejza Horvath
>
>
> "Jose F. Gimenez" <jfgimenez@wanadoo.es> pí¹e v diskusním
> pøíspìvku news:47150d79$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Gejza,
>>
>>> I would like to change all the texts in TPreviewControl (toolbar
>>> buttons,printer menu, etc.) to a local language. How is it possible?
>>
>> You may change the source file xailersourcepreviewcontrol.prg to fit
>> your needs.
>>
>> --
>> Regards,
>>
>> Jose F. Gimenez
>> http://www.xailer.com
>> http://www.xailer.info
>>
>>
>
>
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

TPreviewControl Button text

Mensaje por Gejza Horvath »

Ignacio,
that means, I only need to add a stringtable resource to my app with defined string in
Slovak language for the used XA_MSG_xxx constants?
Gejza Horvath
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> pí¹e v diskusním pøíspìvku
news:47177bca$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Gezja,
>
> Take a look at LT() function in the docs. You will see that it really does just what you
> are talking about.
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> http://www.xailer.com
>
>
> "Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
> news:[email=47175692@ozsrv2.ozlan.local...]47175692@ozsrv2.ozlan.local...[/email]
>> I'm looking into the source, and I see that you use the LT() function to fill the
>> control's label. I'm not too familiar with this function. Is there a possibility to use
>> only a stringtable resource to redefine the captions?
>>
>> I think, I'm not alone to use a non-english language. IMO translating the
>> previewcontrol.prg for every user and every language is not the best way to solve this
>> problem. Could you please modify this control to use for ex. an external file with
>> strings?
>>
>> Gejza Horvath
>>
>>
>> "Jose F. Gimenez" <jfgimenez@wanadoo.es> pí¹e v diskusním pøíspìvku
>> news:47150d79$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>> Gejza,
>>>
>>>> I would like to change all the texts in TPreviewControl (toolbar buttons,printer
>>>> menu, etc.) to a local language. How is it possible?
>>>
>>> You may change the source file xailersourcepreviewcontrol.prg to fit your needs.
>>>
>>> --
>>> Regards,
>>>
>>> Jose F. Gimenez
>>> http://www.xailer.com
>>> http://www.xailer.info
>>>
>>>
>>
>>
>
>
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

TPreviewControl Button text

Mensaje por Gejza Horvath »

Ignacio,
that means, I only need to add a stringtable resource to my app with defined string in
Slovak language for the used XA_MSG_xxx constants?
Gejza Horvath
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> pí¹e v diskusním pøíspìvku
news:47177bca$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Gezja,
>
> Take a look at LT() function in the docs. You will see that it really does just what you
> are talking about.
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> http://www.xailer.com
>
>
> "Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
> news:[email=47175692@ozsrv2.ozlan.local...]47175692@ozsrv2.ozlan.local...[/email]
>> I'm looking into the source, and I see that you use the LT() function to fill the
>> control's label. I'm not too familiar with this function. Is there a possibility to use
>> only a stringtable resource to redefine the captions?
>>
>> I think, I'm not alone to use a non-english language. IMO translating the
>> previewcontrol.prg for every user and every language is not the best way to solve this
>> problem. Could you please modify this control to use for ex. an external file with
>> strings?
>>
>> Gejza Horvath
>>
>>
>> "Jose F. Gimenez" <jfgimenez@wanadoo.es> pí¹e v diskusním pøíspìvku
>> news:47150d79$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>> Gejza,
>>>
>>>> I would like to change all the texts in TPreviewControl (toolbar buttons,printer
>>>> menu, etc.) to a local language. How is it possible?
>>>
>>> You may change the source file xailersourcepreviewcontrol.prg to fit your needs.
>>>
>>> --
>>> Regards,
>>>
>>> Jose F. Gimenez
>>> http://www.xailer.com
>>> http://www.xailer.info
>>>
>>>
>>
>>
>
>
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

TPreviewControl Button text

Mensaje por jfgimenez »

Gejza,
> that means, I only need to add a stringtable resource to my app with
> defined string in Slovak language for the used XA_MSG_xxx constants?
Yes. The LT() function search for the string in the selected language, and
if it's not found, then the english table is used.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

TPreviewControl Button text

Mensaje por jfgimenez »

Gejza,
> that means, I only need to add a stringtable resource to my app with
> defined string in Slovak language for the used XA_MSG_xxx constants?
Yes. The LT() function search for the string in the selected language, and
if it's not found, then the english table is used.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

TPreviewControl Button text

Mensaje por Gejza Horvath »

Jose,
The GetWindowsLanguage() function returns 27 in my case (Czech Windows XP). Where can I
find the language description constants for other languages?
Gejza Horvath
"Jose F. Gimenez" <jfgimenez@wanadoo.es> pí¹e v diskusním pøíspìvku
news:[email=47187dac@ozsrv2.ozlan.local...]47187dac@ozsrv2.ozlan.local...[/email]
> Gejza,
>
>> that means, I only need to add a stringtable resource to my app with defined string in
>> Slovak language for the used XA_MSG_xxx constants?
>
> Yes. The LT() function search for the string in the selected language, and if it's not
> found, then the english table is used.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
>
>
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

TPreviewControl Button text

Mensaje por Gejza Horvath »

Jose,
The GetWindowsLanguage() function returns 27 in my case (Czech Windows XP). Where can I
find the language description constants for other languages?
Gejza Horvath
"Jose F. Gimenez" <jfgimenez@wanadoo.es> pí¹e v diskusním pøíspìvku
news:[email=47187dac@ozsrv2.ozlan.local...]47187dac@ozsrv2.ozlan.local...[/email]
> Gejza,
>
>> that means, I only need to add a stringtable resource to my app with defined string in
>> Slovak language for the used XA_MSG_xxx constants?
>
> Yes. The LT() function search for the string in the selected language, and if it's not
> found, then the english table is used.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
>
>
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

TPreviewControl Button text

Mensaje por Gejza Horvath »

Jose,
I use this code to define a report:
REPORT oReport ;
TITLE "KONTROLNY OPIS ZAUCTOVANIA MIEZD ZA " + ;
RIGHT(Ciel->Obdobie,2) + "." + LEFT(Ciel->Obdobie,4);
HEADER DtoC( Date() ) + " " + Time() ;
FOOTER "Strana: " + LTRIM( STR( oReport:nPage ) ) ALIGN taCENTER ;
PREVIEW ;
FONT oFont1,oFont2,oFont3
.
.
RUN REPORT oReport
When the report is displayed, the window title is "Xailer Report". How can I change this
text?
Gejza Horvath
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

TPreviewControl Button text

Mensaje por Gejza Horvath »

Jose,
I use this code to define a report:
REPORT oReport ;
TITLE "KONTROLNY OPIS ZAUCTOVANIA MIEZD ZA " + ;
RIGHT(Ciel->Obdobie,2) + "." + LEFT(Ciel->Obdobie,4);
HEADER DtoC( Date() ) + " " + Time() ;
FOOTER "Strana: " + LTRIM( STR( oReport:nPage ) ) ALIGN taCENTER ;
PREVIEW ;
FONT oFont1,oFont2,oFont3
.
.
RUN REPORT oReport
When the report is displayed, the window title is "Xailer Report". How can I change this
text?
Gejza Horvath
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

TPreviewControl Button text

Mensaje por ignacio »

Gejza,
TReport:cJobName
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
news:471f8aa3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Jose,
>
> I use this code to define a report:
>
> REPORT oReport ;
> TITLE "KONTROLNY OPIS ZAUCTOVANIA MIEZD ZA " + ;
> RIGHT(Ciel->Obdobie,2) + "." + LEFT(Ciel->Obdobie,4);
> HEADER DtoC( Date() ) + " " + Time() ;
> FOOTER "Strana: " + LTRIM( STR( oReport:nPage ) ) ALIGN taCENTER
> ;
> PREVIEW ;
> FONT oFont1,oFont2,oFont3
> .
> .
> RUN REPORT oReport
>
> When the report is displayed, the window title is "Xailer Report". How can
> I change this text?
>
> Gejza Horvath
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
NoName
Mensajes: 531
Registrado: Vie Feb 03, 2006 7:27 pm

TPreviewControl Button text

Mensaje por NoName »

Gejza,
TReport:cJobName
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
news:471f8aa3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Jose,
>
> I use this code to define a report:
>
> REPORT oReport ;
> TITLE "KONTROLNY OPIS ZAUCTOVANIA MIEZD ZA " + ;
> RIGHT(Ciel->Obdobie,2) + "." + LEFT(Ciel->Obdobie,4);
> HEADER DtoC( Date() ) + " " + Time() ;
> FOOTER "Strana: " + LTRIM( STR( oReport:nPage ) ) ALIGN taCENTER
> ;
> PREVIEW ;
> FONT oFont1,oFont2,oFont3
> .
> .
> RUN REPORT oReport
>
> When the report is displayed, the window title is "Xailer Report". How can
> I change this text?
>
> Gejza Horvath
>
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

TPreviewControl Button text

Mensaje por Gejza Horvath »

Ignacio,
thanks for the quick reply. Now it shows the control's caption in Slovak language too.
Gejza
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> pí¹e v diskusním pøíspìvku
news:471f8d17$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Gejza,
>
> TReport:cJobName
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> http://www.xailer.com
>
>
> "Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
> news:471f8aa3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Jose,
>>
>> I use this code to define a report:
>>
>> REPORT oReport ;
>> TITLE "KONTROLNY OPIS ZAUCTOVANIA MIEZD ZA " + ;
>> RIGHT(Ciel->Obdobie,2) + "." + LEFT(Ciel->Obdobie,4);
>> HEADER DtoC( Date() ) + " " + Time() ;
>> FOOTER "Strana: " + LTRIM( STR( oReport:nPage ) ) ALIGN taCENTER ;
>> PREVIEW ;
>> FONT oFont1,oFont2,oFont3
>> .
>> .
>> RUN REPORT oReport
>>
>> When the report is displayed, the window title is "Xailer Report". How can I change
>> this text?
>>
>> Gejza Horvath
>>
>
>
>
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

TPreviewControl Button text

Mensaje por Gejza Horvath »

Ignacio,
thanks for the quick reply. Now it shows the control's caption in Slovak language too.
Gejza
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> pí¹e v diskusním pøíspìvku
news:471f8d17$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Gejza,
>
> TReport:cJobName
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> http://www.xailer.com
>
>
> "Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
> news:471f8aa3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Jose,
>>
>> I use this code to define a report:
>>
>> REPORT oReport ;
>> TITLE "KONTROLNY OPIS ZAUCTOVANIA MIEZD ZA " + ;
>> RIGHT(Ciel->Obdobie,2) + "." + LEFT(Ciel->Obdobie,4);
>> HEADER DtoC( Date() ) + " " + Time() ;
>> FOOTER "Strana: " + LTRIM( STR( oReport:nPage ) ) ALIGN taCENTER ;
>> PREVIEW ;
>> FONT oFont1,oFont2,oFont3
>> .
>> .
>> RUN REPORT oReport
>>
>> When the report is displayed, the window title is "Xailer Report". How can I change
>> this text?
>>
>> Gejza Horvath
>>
>
>
>
Responder