Lisp HUG Maillist Archive

Yes/Ja, No/Nein, etc.

If I deliver a simple program like below I get "Yes" and "No" buttons
on my English version of Windows XP.  On a customer machine with a
German version of Windows 2000 they get "Ja" and "Nein" instead.

Is there a way to get this automatic adaption to the Windows locale
with normal, user-generated CAPI buttons (only for the standard stuff
like "Yes", "No", "OK", "Cancel")?

Thanks,
Edi.



  (in-package :cl-user)

  (defun main ()
    (capi:prompt-for-confirmation "Really?"))

  (compile 'main)

  (deliver 'main "test" 0
           :interface :capi)

  (quit)


Re: Yes/Ja, No/Nein, etc.

Hello Edi,

| If I deliver a simple program like below I get "Yes" and "No" buttons
| on my English version of Windows XP.  On a customer machine with a
| German version of Windows 2000 they get "Ja" and "Nein" instead.
|
| Is there a way to get this automatic adaption to the Windows locale
| with normal, user-generated CAPI buttons (only for the standard stuff
| like "Yes", "No", "OK", "Cancel")?

I guess you have meant to get this in Windows locale-neutral way instead of
an automatic adaptation to it :-)

AFAIK, the only documented way is to call capi:popup-confirmer and specify
button titles explicitly by means of :ok-button, :no-button, and
:cancel-button arguments.
--
Sincerely,
Dmitriy Ivanov
lisp.ystok.ru


Updated at: 2020-12-10 08:49 UTC