View previous topic :: View next topic |
Author |
Message |
hardof Newbie
Joined: 14 Aug 2004 Posts: 7 Location: Serbia&Montenegro
|
Posted: Sat Aug 14, 2004 9:27 pm Post subject: Localization for yes/no/cancel |
|
|
Hi!
It would be nice to have localization for yes/no/cancel buttons.
If everything could be written in any language other than english, it would be nice for buttons, too.
I hope that you'll answer to my wish and include this option in some next version of VDS.
THANKS!!!!!!!! |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Aug 15, 2004 12:21 am Post subject: |
|
|
It's possible to create a dialog box that mimmicks the Windows dialog
box, with custom labels. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
X-Tools Valued Contributor
Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Sun Aug 15, 2004 7:02 am Post subject: |
|
|
Hi,
what do you mean? The @ask function or message box designer ? They are localized. I have german windows xp and all buttons apply with the german names.
Bye, Fabian |
|
Back to top |
|
|
jules Professional Member
Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Sun Aug 15, 2004 10:25 am Post subject: |
|
|
All message boxes are standard Windows message boxes and take their captions from Windows. The same is true for @filedlg() and @dirdlg().
The only VDS dialog I can see that is not localized is @input(). The buttons on that display OK and Annuler if French, otherwise Cancel. _________________ The Tech Pro
www.tech-pro.net |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sun Aug 15, 2004 10:36 am Post subject: |
|
|
Hi hardof... To create message boxes which display "yes", "no" and "cancel" in the local language, you can use the @msgbox() function. To create these messageboxes the easy way, you can use the "Message Box Designer" tool which can be found in the "Tools" menu...
Code: | %R = @msgbox(Some nice message!,Just a title,$043) |
_________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
Back to top |
|
|
jules Professional Member
Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Sun Aug 15, 2004 12:20 pm Post subject: |
|
|
Hi Skit. Are you saying that the VDS message boxes info, warn, @ask etc. don't display buttons in local languages? They are created using a Delphi run-time function, not a direct API call, but I would have assumed that it just called the API. _________________ The Tech Pro
www.tech-pro.net |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sun Aug 15, 2004 12:25 pm Post subject: |
|
|
Julian, they do show in local languages, but I thought that hardof would like to know how to create other message boxes which also display in the local language, besides the "normal" message boxes like "info", "warn" and "@ask()"... _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
Back to top |
|
|
hardof Newbie
Joined: 14 Aug 2004 Posts: 7 Location: Serbia&Montenegro
|
Posted: Wed Sep 01, 2004 9:06 pm Post subject: |
|
|
Hello,
In Serbia, we could not expect an answer within a month, therefore we apologize to all of you who posted answer to our question in such a short time. Sorry, but we took a little vacation and we're back now.
That is exactly what we meant... @ask function and @msgbox() function are allways displayed in english. Windows is not localized in Serbian language. In Serbia everybody use english version of Windows!!!
Could it be possible to localize functions for yes/no/cancel, in some other way?
Thanks Again! |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Sep 01, 2004 9:17 pm Post subject: |
|
|
You may be able to use VDSGUI to display localized message boxes. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
jules Professional Member
Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Wed Sep 01, 2004 9:18 pm Post subject: |
|
|
These standard message boxes are created by calling a Windows API function, therefore they will display using the language of the version of Windows being used. If you want message boxes with button captions in your language, avoid using these VDS functions and create your own message box dialogs using DIALOG CREATE etc. _________________ The Tech Pro
www.tech-pro.net |
|
Back to top |
|
|
jules Professional Member
Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Wed Sep 01, 2004 9:19 pm Post subject: |
|
|
Two answers to his question in ten minutes. He'll be really impressed now! _________________ The Tech Pro
www.tech-pro.net |
|
Back to top |
|
|
hardof Newbie
Joined: 14 Aug 2004 Posts: 7 Location: Serbia&Montenegro
|
Posted: Thu Sep 02, 2004 6:07 am Post subject: |
|
|
Hi,
thank you for such a swift action on your part!
Yes SHE is impressed now!!!
I'll try what you have suggested and I'll be back soon with the result.
Thank you so much for your efforts to help me! |
|
Back to top |
|
|
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Sep 02, 2004 7:25 pm Post subject: |
|
|
If U need a lot of message boxes then "Dialog Create" can be more trouble some for a beginer.
I was thinking of adding such a function in VDSGUI Extension but then thought who ever would need it.
hardof if U want I can consider adding the same to the dll in future. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
hardof Newbie
Joined: 14 Aug 2004 Posts: 7 Location: Serbia&Montenegro
|
Posted: Thu Sep 02, 2004 11:39 pm Post subject: |
|
|
Hi CodeScript!!!
It would be very nice and extremely usefull if you would re-consider you previous thought and enable localization of @ask, @msgbox function through dll's.
That would be of a great, great help for me!
P.S. How much, this effort of yours to add such a thing in dll, would cost me
Best Regards! |
|
Back to top |
|
|
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
|
Back to top |
|
|
|