[fpc-pascal] SysLocale.PriLangID vs Mac OS X localization
Jonas Maebe
jonas.maebe at elis.ugent.be
Sat Jun 21 12:16:22 CEST 2008
On 20 Jun 2008, at 14:13, Bent Normann Olsen wrote:
> I've been working with CFBundle unit to try and figure how to get
> information about language settings, and so far with no luck. I've
> read
> about how Mac OS X works with internationalization, which automates
> language
> processing, but this is "no can do" for me, or I just can't get the
> right
> information.
I guess you mean that you read this: http://developer.apple.com/documentation/Porting/Conceptual/win32porting/Articles/intern.html
?
> 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
More information about the fpc-pascal
mailing list