comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: how to change dialog_message button names ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: how to change dialog_message button names ? [message #73295] Wed, 03 November 2010 13:37
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ron writes:

> The text in the buttons is set by the operating system. If you run in
> the OS in a language other than English the text will change but there
> is no way to change it in IDL. Also, regardless of the language the
> OS is using, IDL will always report English strings like "yes" and
> "no".

This advice is probably correct. I know you can write
programs in other languages using "language catalogs"
that you can create for different languages. I've never
done it. And I notice the documentation for language
catalogs is missing in IDL 8.0, so I don't know if this
feature has disappeared or whether it is just no longer
documented. I read about it in the IDL 7 on-line help
by looking up "language catalog".

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: how to change dialog_message button names ? [message #73297 is a reply to message #73295] Wed, 03 November 2010 13:21 Go to previous message
rtk is currently offline  rtk
Messages: 22
Registered: September 2008
Junior Member
On Nov 2, 8:40 pm, nata <bernat.puigdomen...@gmail.com> wrote:
> Hi all,
>
> I am creating an application in IDL and all of my widgets and texts
> are in another language different than english.
> Everything is ok but if I want to display a question using a
> DIALOG_MESSAGE like:
>
>   res=DIALOG_MESSAGE('Esteu segur que voleu sortir del programa?',/
> QUESTION,$
>     /CENTER,/CANCEL,/DEFAULT_NO,TITLE='Pregunta')
>
> The widget button texts are"yes", "no" and "cancel". Is it possible to
> change those string values ?
> Of course I could create my own pop-up widget but I just want to know
> if it is possible to use the DIALOG_MESSAGE and change the default
> settings.
>
> Thank you for your help,
> nata

The text in the buttons is set by the operating system. If you run in
the OS in a language other than English the text will change but there
is no way to change it in IDL. Also, regardless of the language the
OS is using, IDL will always report English strings like "yes" and
"no".

Ron
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: capture astronomy IDL's library stderr into a file
Next Topic: The resolution of an IDLgrWindow is (no longer) hard-coded to 72 DPI.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:41:46 PDT 2025

Total time taken to generate the page: 0.00509 seconds