Language of "Yes"/"No"-Buttons on MessageRequester?

Just starting out? Need help? Post your questions and find answers here.
Lebostein
Addict
Addict
Posts: 807
Joined: Fri Jun 11, 2004 7:07 am

Language of "Yes"/"No"-Buttons on MessageRequester?

Post by Lebostein »

How I set the language to the system language on Mac OS? I see "Yes" and "No" but the system language is german. Or can I set the texts of the MessageRequester-Buttons? Thanks!
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4636
Joined: Sun Apr 12, 2009 6:27 am

Re: Language of "Yes"/"No"-Buttons on MessageRequester?

Post by RASHAD »

Sorry
Removed
Not for Mac
Last edited by RASHAD on Sat Sep 16, 2017 7:34 pm, edited 1 time in total.
Egypt my love
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3870
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Language of "Yes"/"No"-Buttons on MessageRequester?

Post by wilbert »

I doubt if it is possible on PB for Mac.
You can influence the language for some of the dialogs like the file requester by setting CFBundleDevelopmentRegion inside the Info.plist file.
For MessageRequester this has no effect so it looks like the button labels are hardcoded by PureBasic.
You can create your own dialog by using NSAlert.
Windows (x64)
Raspberry Pi OS (Arm64)
User avatar
Shardik
Addict
Addict
Posts: 1989
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: Language of "Yes"/"No"-Buttons on MessageRequester?

Post by Shardik »

It's not possible to change the language of the buttons in PureBasic natively. You may take a look into this old thread with a non-API example from jamirokwai and an API example from me (only for MacOS using the Carbon framework but still working in MacOS 10.11.6 'El Capitan' with PB 5.61 x86 but not with PB 5.61 x64 - the Carbon framework has never been ported to 64 bit by Apple).
Post Reply