Re: how to change dialog_message button names ? [message #73295] |
Wed, 03 November 2010 13:37 |
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  |
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
|
|
|