[fpc-pascal] SysLocale.PriLangID vs Mac OS X localization
Bent Normann Olsen
bent at earmaster.com
Mon Jun 23 10:41:13 CEST 2008
> > All I need is to retrieve a kind of ID for a users language setting,
> > in the
> > same way as we would do in Win32 environment with Syslocale and
> > PriLangID.
>
> It is usually a very bad idea to try to literally port APIs from one
> platform to another and disregarding platform conventions. It will
> make your program behave in unexpected ways for the users (e.g., many
> Mac OS X users expect to be able to ditch language support they don't
> care about X by simply getting info on your application bundle and
> deleting the language support from there).
>
> It will also give FPC/Lazarus a bad name if many apps written in it
> look and behave like "Windows applications with an Aqua skin" (just
> like Java apps generally have a bad name as far as the user interface
> is concerned).
>
> Jonas
Yup, I know, but it's a 1-1 port from Win32 to Mac, and it does have a
little Carbon feel and look, but the application applies its own dynamic
language structure based on a default language setting retrieved from
PriLangID.
Thanks,
Normann
More information about the fpc-pascal
mailing list