Página 1 de 1

TPreviewControl Button text

Publicado: Mar Oct 16, 2007 7:39 pm
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

TPreviewControl Button text

Publicado: Mar Oct 16, 2007 9:13 pm
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

TPreviewControl Button text

Publicado: Mar Oct 16, 2007 9:13 pm
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

TPreviewControl Button text

Publicado: Jue Oct 18, 2007 2:47 pm
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
>
>

TPreviewControl Button text

Publicado: Jue Oct 18, 2007 2:47 pm
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
>
>

TPreviewControl Button text

Publicado: Jue Oct 18, 2007 5:29 pm
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
>>
>>
>
>

TPreviewControl Button text

Publicado: Jue Oct 18, 2007 5:29 pm
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
>>
>>
>
>

TPreviewControl Button text

Publicado: Vie Oct 19, 2007 11:14 am
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
>>>
>>>
>>
>>
>
>

TPreviewControl Button text

Publicado: Vie Oct 19, 2007 11:14 am
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
>>>
>>>
>>
>>
>
>

TPreviewControl Button text

Publicado: Vie Oct 19, 2007 11:49 am
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

TPreviewControl Button text

Publicado: Vie Oct 19, 2007 11:49 am
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

TPreviewControl Button text

Publicado: Mié Oct 24, 2007 8:01 pm
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
>
>

TPreviewControl Button text

Publicado: Mié Oct 24, 2007 8:01 pm
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
>
>

TPreviewControl Button text

Publicado: Mié Oct 24, 2007 8:08 pm
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

TPreviewControl Button text

Publicado: Mié Oct 24, 2007 8:08 pm
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

TPreviewControl Button text

Publicado: Mié Oct 24, 2007 8:21 pm
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
>

TPreviewControl Button text

Publicado: Mié Oct 24, 2007 8:21 pm
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
>

TPreviewControl Button text

Publicado: Mié Oct 24, 2007 8:30 pm
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
>>
>
>
>

TPreviewControl Button text

Publicado: Mié Oct 24, 2007 8:30 pm
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
>>
>
>
>