realbasic-nug
[Top] [All Lists]

Re: Computed Constants....(not really) - Any way to acheive?

To: realbasic-nug at lists dot realsoftware dot com
Subject: Re: Computed Constants....(not really) - Any way to acheive?
From: Tobias Bußmann <e dot t dot bussmann at ing dot twinwave dot net>
Date: Sun, 31 Dec 2006 14:40:46 +0100
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <D6D33571-2A41-4C0A-92BD-CCAA25555156 at mac dot com>
Hi,
this link might be of interest for you:

http://www.thezaz.org/Downloads/REALbasic/DynamicLocalization/

hth
Tobias

Tom Benson schrieb:
I'm looking for a simple way to make my app confirm to the normal OS X localisation method, by pulling it's localised strings from .strings files stored within the app bundle..

e.g. English strings -> MyApp.App/Resources/English.lproj/english.strings

I have all the functions in place to get/set these strings from the app bundle, and detect which language the program should be running in. All I lack is a simple way to assign these values to my UI elements at design time. I can do it with Constants - e.g. in the properties pane a caption can be set as "#languages.kMyButtonCaption" where kMyButtonCaption is a public constant of the Languages module.

I guess what I really want is a way to assign a Computed Property to an items caption at design time, without having to go through all of my controls Open events and write me.caption = #languages.cpMyButtonCaption

Any ideas???

- Tom



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>