----- Forwarded message from Max Horn <[EMAIL PROTECTED]> -----
Date: Thu, 30 Sep 2004 09:32:47 +0200
From: Max Horn <[EMAIL PROTECTED]>
Subject: Re: [Tuxpaint-dev] Mac OS X issues for Tux Paint 0.9.14 CVS
To: Bill Kendrick <[EMAIL PROTECTED]>
Cc: Tux Paint <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
First off, sorry, but I am out of time currently, which is why I didn't
pursue the TuxPaint build anymore.
Am 30.09.2004 um 07:52 schrieb Bill Kendrick:
>Whoops! I forgot two things:
>
>First, one more 'issue' I noticed. I played with the Mac's language
>setting ("System Preferences" -> "International" -> "Language"),
>but Tux Paint seemed to ignore them. Do Macs use a different way
>(not $LANG or $LANGUAGE environment variable) to tell applications what
>language to display in? If so, I'm more than happy to add code to
>Tux Paint (and do "#ifdef __APPLE__"/"#endif" around it) to get it
>working.
While languages/localization/i18n are handled differently over here,
LANG is setup correctly. The problem is another: paths: i used a crude
hack to hard code the paths to TuxPaints directories, namely, I assumed
that CWD (current working directory) is set to the location
TuxPaint.app is in. That in turn is a bundle wrapper, i.e. directory
with a special structure in it. And then I had to set the compiled data
paths to things like "TuxPaint.app/Content/Resources/fonts" etc. *very
bad*, because it breaks if CWD is different, and also when the app is
renamed.
The problem here is that hard coding the data paths as you currently do
is very limited. If you replace that with a more flexible system
(something more sophisticated than just a bunch of hardcoded paths
using #define, I mean ;-)), it would be no problem to insert code which
properly finds these "resources", no matter what the CWD is or which
name the application has (so the user can rename it).
Anyway, under certain circumstances, when I launch TuxPaint I get
localization (to german in my case) and also proper mouse cursors. In
others, it shows garbled cursor and is in english. I am pretty sure
this is due to different CWD values.
Bye,
Max
----- End forwarded message -----
--
[EMAIL PROTECTED] New Breed Software
http://www.newbreedsoftware.com/ Tux Paint 0.9.14 -- Coming soon!
_______________________________________________
Tuxpaint-dev mailing list
[EMAIL PROTECTED]
http://tux4kids.net/mailman/listinfo/tuxpaint-dev