Well, there, you go. Kinda defeats the purpose of the language
selection in Build Options though, don't you think?? I hate controls
that have no purpose. When I get back to work after the holidays I'll
have a bit of a play with this.
- Tom
On 31/12/2006, at 11:50 AM, Ben Blake wrote:
G'Day Tom.
I just checked as I normally compile with the language set to
Default as that gives me all the resource files for all defined
languages. Well turns out if I set it to English I get the same
result! So I am not sure you can even build a single language
specific app anymore if you have dynamic constants defined...
cya
Ben
On Sun, 31 Dec 2006, at 11:38:57, Tom Benson wrote:
Correct me if I'm wrong Ben, but doesn't the resulting build only
include constant values for the language you select in build
options??
e.g. I select "English" in the build settings as my language, and
do a build. Only English is included in that build. If I move the
resulting app to a French system, then my app will not pick up the
French dynamic constants I defined at design time.
Or am I wrong??
- Tom
On 31/12/2006, at 11:13 AM, Ben Blake wrote:
G'Day Tom,
Any reason you are not using RB's dynamic constants? This works
fine for me, you just set the items caption to the constant and
the correct language is picked up. The only think I do have to do
is run an resizing method at runtime to fix up any issues with
longer text.
Otherwise I do not see a way for you to do this apart from
putting eveything into the Open event.
cya
Ben
On Sun, 31 Dec 2006, at 10:24:06, Tom Benson wrote:
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>
_______________________________________________
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>