Re: Rép: reading a property list item
Re: Rép: reading a property list item
- Subject: Re: Rép: reading a property list item
- From: "Mark J. Reed" <email@hidden>
- Date: Wed, 21 May 2008 00:32:31 -0400
if I might suggest a Perly partial solution, this will get you a list
of month and day names in any POSIX locale installed on your system:
set pourLocale to "nl_NL"
set nomsDesMois to paragraphs of (do shell script "LC_TIME=" & quoted
form of pourLocale & " perl -MPOSIX -le 'for ($m=0;$m<12;++$m) { print
strftime(\"%B\", 0, 0, 12, 15, $m, 100) }' ")
set nomsDesJours to paragraphs of (do shell script "LC_TIME=" & quoted
form of pourLocale & " perl -MPOSIX -le 'for ($d=0;$d<7;++$d) { print
strftime(\"%A\", 0, 0, 12, $d, 0, 101) }' ")
This will get you a list of the available locale names:
set locales to paragraphs of (do shell script "locale -a")
although that includes some that differ only in character set; you
probably don't care about those differences, so this gets you a
shorter list of just the simple locale names:
set locales to paragraphs of (do shell script "locale -a | grep -v '\\.'")
The names are all ab_XY where "ab" is the ISO 2-letter language code
and "XY" is the ISO 2-letter country code. es_ES is Spanish as she is
spoke in Spain; en_US is US English; fr_CA is Quebecois; etc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden