stefangs Posted April 24, 2008 Posted April 24, 2008 i'm trying to localize a solution. i put all the literal text strings in a table (one language per record) and use a global field pointing to the language ID to retrieve the proper strings. this works for field labels, buttons, etc, but the problem with dialog boxes is that you can only make their text and header field conditional, but not the text on the buttons. is my only option to duplcate the 'show custom dialog' script step with a bunch of 'if.. then' statements or is there a better way?
mr_vodka Posted April 24, 2008 Posted April 24, 2008 You can definately do it with the Troi Dialog plugin. Troi plug-ins are well worth it. As a matter of fact, if you download the demo, I believe that they have an example using unicode characters.
stefangs Posted April 24, 2008 Author Posted April 24, 2008 thanks - i was hoping to do it natively, but i'll look at the plugin.
Lee Smith Posted April 24, 2008 Posted April 24, 2008 Take a look at the File Dynamic Field Labels at Database Pros Site. Link and see if this is what you want. HTH Lee
mr_vodka Posted April 24, 2008 Posted April 24, 2008 He wants to dynamically change the text on the buttons of the dialog box not the entry field labels. :
Lee Smith Posted April 24, 2008 Posted April 24, 2008 snip.. but not the text on the buttons. This is what I was referring to.
mr_vodka Posted April 24, 2008 Posted April 24, 2008 but the problem with dialog boxes is that you can only make their text and header field conditional, but not the text on the buttons. Am I missing something? I interpreted this as that he realized that he could not specify the button text such as "OK" and "Cancel" dynamically.
stefangs Posted April 24, 2008 Author Posted April 24, 2008 yup, it's the [OK] and {Cancel} type text in the dialogs i want to change dynamically. looks like there's no native way to do it. as long as i have only a few languages, i suppose with if/then statements that bring up different localized versions of the same dialog box, it's not so bad, just a shame. seems to be a good feature on the wishlist for a future FM release.
Søren Dyhr Posted April 25, 2008 Posted April 25, 2008 Indeed Stefan and why litter the solution with a global field, no the dialog needs to have an option to use $ or $$ variables, both for the buttons and the reception of values entered by the user. Applescript is not really an alternative, unless Wim can enlighten us here and tell us if VBScript in a similar way can follow localizations when attempting something in the vicinity of this: http://www.devguru.com/Technologies/vbScript/quickref/inputbox.html or here... http://www.tizag.com/vbscriptTutorial/vbscriptmsgbox.php --sd
Recommended Posts
This topic is 6057 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now