System Language

2003-09-10 Thread Mathewson
Dear RunRev afficionados,
  I have just uploaded to my website an incredibly goofy
little stack that tells you the weekday strings stored in
your operating system: totally ripped-off from Terry
Vogelaar - Thanks Terry.

It's called DAYS OF THE WEEK (noted for my obscure
titling policy).

Love, Richmond

__
See Mathewson's software at:

http://members.maclaunch.com/richmond/default.htmland
http://www.runrev.com/Revolution1/developercentral/usercontributions.html
__
---
Great Macintosh Products 
 The MacLaunch Store! http://www.maclaunch.com/cgi-launch/store/agora.cgi
---
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: System language

2003-09-09 Thread Terry Vogelaar
I must admit I didn't really follow this thread, but I know a silly way 
to find out (maybe it is not mentioned before):

get the system weekdaynames
if sunday is among the words of it then put English into the SysLang
if zondag is among the words of it then put Dutch into the SysLang
Don't expect sunday to always be the first line; Australian systems 
sometimes start with saturday.

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: System Language

2002-12-10 Thread Monte Goulding

Thanks Alex for clearing up the issue. I'm actually expecting Raney will
chime in at some point and tell us that it's a bug in OS X not anything with
Australians being a day ahead of the pack ;-)

Cheers  beers from down under

Monte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



RE: System Language

2002-12-09 Thread Monte Goulding

Maybe it's another setting that's changed? Actually I think that for some
reason the engine thinks my system is en_us even though I have the little
Australian flag in the menubar.

 My Australian XP and OS X systems both have Sunday as the first
 line of the
 weekdayNames

 Hi Again, Monte,

 Since I don't have an Australian OS, I asked Igor Couto in Sydney to
 test this with system weekDayNames.  His response(s):

 It returns:

 Saturday
 Sunday
 Monday
 Tuesday
 Wednesday
 Thursday
 Friday

 Odd, why is Saturday the first day? I'll switch system languages, and
 see if the same happens with them...

 and

 I am using MacOS X, 10.2. I tried switching the system language to
 Brazilian Portuguese, Australian English and Esperanto, and the
 result of weeDayNames is always the same list - always starting with
 'Saturday', and always in English...

 There is definitely something amiss somewhere.
 --

 Rob Cozens
 CCW, Serendipity Software Company
 http://www.oenolog.com/who.htm

 And I, which was two fooles, do so grow three;
 Who are a little wise, the best fooles bee.

 from The Triple Foole by John Donne (1572-1631)
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



RE: System Language

2002-12-04 Thread Rob Cozens
My Australian XP and OS X systems both have Sunday as the first line of the
weekdayNames


Hi Monte,

From Matt Denton on March 29th:


On my OSX System, 10.1.3

put the system WeekdayNames

returns:

	Saturday
	Sunday
	Monday
	Tuesday
	Wednesday
	Thursday
	Friday

and

put the WeekdayNames

returns:

	Sunday
	Monday
	Tuesday
	Wednesday
	Thursday
	Friday
	Saturday



--

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.com/who.htm

And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee.

from The Triple Foole by John Donne (1572-1631)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: System Language

2002-12-03 Thread Scott Rossi
Recently, Monte Goulding  wrote:

 I just found this gem from Scott Rossi on the list archives:
 http://lists.runrev.com/pipermail/metacard/2002-August/002245.html
 
 Does anyone know how to get this data for Mac systems?

I've asked several developer colleagues about this without success, and
wound up pursuing a contact at Apple to see if there is anything like the
above available on the Mac.  I have yet to get a response, but if I hear
anything I'll pass it on to the list.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



RE: System Language

2002-12-03 Thread Monte Goulding
Thanks Scott

I actually think it's something that should be a built in function.
Particularly for MacOS as the engine does not hide the language menu. But if
there is an applescript/file based or shell solution then I'm eager to hear
it.

Cheers

Monte

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Scott Rossi
 Sent: Wednesday, 4 December 2002 5:58 AM
 To: [EMAIL PROTECTED]
 Subject: Re: System Language


 Recently, Monte Goulding  wrote:

  I just found this gem from Scott Rossi on the list archives:
  http://lists.runrev.com/pipermail/metacard/2002-August/002245.html
 
  Does anyone know how to get this data for Mac systems?

 I've asked several developer colleagues about this without success, and
 wound up pursuing a contact at Apple to see if there is anything like the
 above available on the Mac.  I have yet to get a response, but if I hear
 anything I'll pass it on to the list.

 Regards,

 Scott Rossi
 Creative Director
 Tactile Media, Multimedia  Design
 -
 E: [EMAIL PROTECTED]
 W: http://www.tactilemedia.com

 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: System Language

2002-12-03 Thread Terry Vogelaar
 Does anyone know how to get this data for Mac systems?

A silly but maybe useful workaround could be to ask the system weekDayNames.
But that is only useful to choose between a few languages. If it contains
Saturday it is English, Zaterdag is Dutch, etc.

Don't expect Sunday to be the first day of the list everyware. Australian
systems start with Saturday for example.

Terry

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



RE: System Language

2002-12-03 Thread Monte Goulding
My Australian XP and OS X systems both have Sunday as the first line of the
weekdayNames

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Terry
 Vogelaar
 Sent: Wednesday, 4 December 2002 12:59 PM
 To: [EMAIL PROTECTED]
 Subject: Re: System Language


  Does anyone know how to get this data for Mac systems?

 A silly but maybe useful workaround could be to ask the system
 weekDayNames.
 But that is only useful to choose between a few languages. If it contains
 Saturday it is English, Zaterdag is Dutch, etc.

 Don't expect Sunday to be the first day of the list everyware. Australian
 systems start with Saturday for example.

 Terry

 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: System Language (and user defaults in mac os x)

2002-12-03 Thread Alex Rice

On Tuesday, December 3, 2002, at 07:12  PM, Monte Goulding wrote:


I actually think it's something that should be a built in function.
Particularly for MacOS as the engine does not hide the language menu. 
But if
there is an applescript/file based or shell solution then I'm eager to 
hear
it.

In OS X, the user's language preferences are accessible via the 
UserDefaults system, which you can access via the shell. Or via my 
Cocoa-Revolution bridging external which doesn't exist yet ;-)

However, from the shell type the command:

defaults read NSGlobalDomain

You will see an AppleLanguages array in the listing.

AppleLanguages = (
English,
German,
French,
Dutch,
Italian,
Japanese,
Spanish,
etc...
);

This array is the preferred order for languages as set in the 
International | Language system preferences pane. Note that it's an 
ordered preference; so the Finder, System, etc will use the 1st 
languages, but your applications will be localized depending if they 
support any of the prioritized languages. Other fancy stuff:

defaults read NSGlobalDomain  global-defs.plist
open global-defs.plist

OR to browse all of your user defaults for all of your apps:

defaults read  defs.plist
open defs.plist

The open command opens the Apple PropertyList Editor with the plist 
in an outline view. From there you can save it out as XML. Or just 
browse it.

The new UserDefaults system is very good and I highly recommend 
developers to start using it once Revolution can hook into it; or even 
use if from the shell via the defaults command. Compliant apps save 
their user defaults under a domain named tld.domain.AppName e.g. 
com.mindlube.Slacker.

Although if you are going for more cross-platform ease then using a rev 
stack or text file for saving user defaults probably makes more sense.

Alex Rice, Software Developer
Architectural Research Consultants, Inc.
[EMAIL PROTECTED]
[EMAIL PROTECTED]



___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: System Language (and user defaults in mac os x)

2002-12-03 Thread Monte Goulding
Great!

 AppleLanguages = (
  English,
  German,
  French,
  Dutch,
  Italian,
  Japanese,
  Spanish,
  etc...
 );

I'll parse that. Just need something for OS 9 and my apps can check and load
correct language at startup. COOL!!!

Cheers

Monte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution