Open rozek opened 2 years ago
Hi @rozek ,
Guten Abend, Deutschland. Grüße aus Chicago.
First, in case others run into this problem, you can execute ./gradlew generateBundle -x test
to build the distributable with executing the unit tests.
You're quite right about the locale issue: I made no attempt to handle internationalization in the project. I think the right answer is that HyperTalk should respect the system's locale when parsing or producing both dates and numbers. Of course, this means that scripts are effectively non-portable between locales. Hmm...
Do you happen to know how HyperCard addressed this?
Good morning!
Trying both
put "Sonntag, April 24, 2022" is a date
andput "Sunday, April 24, 2022" is a date
in the message box of HyperCard 2.4.1 running within an Infinite Mac (macOS 8) gave true
in both cases (I even changed "Date Formats" and "Time Formats" to "German" using the "Date & Time" control panel).
Although I haven't made systematic tests it seems as if HyperCard could handle dates and times in the english format regardless of the current locale...
First of all: thank you very much for this marvelous project!
I just started playing around with it:
gradlew run
worked out-of-the-box - very well done!gradlew generateBundle
failed because of two failing testsboth are related to "long date" formats, e.g.
and
Long dates don't seem to be recognized.
I did not find the time to further investigate the problem, though, and, thus, may also be wrong.My system is a Mac with german locale...
With greetings from Germany,
Andreas Rozek