Re: Localization question
Re: Localization question
- Subject: Re: Localization question
- From: Chris Hanson <email@hidden>
- Date: Fri, 2 Jan 2004 16:51:25 -0600
On Jan 2, 2004, at 5:15 AM, Florent Pillet wrote:
This would be much less annoying than having to manually set the
localized contents of each UI item in your code (this is a crazy
idea!)
Another thing you can do -- but which it may be too late for in your
case -- is to use the GNUstep Renaissance framework to define your
interface rather than nib files.
With Renaissance, you create an XML "gsmarkup" file instead of a nib
file to define an interface. Outlets and actions are of course
supported, as is absolute positioning, and gsmarkup files are loaded
very similarly to nib files. The cool thing about Renaissance is that
it also supports "layout managers" so you don't have to use absolute
positioning in your layout. Instead, you can just let the Renaissance
layout engine handle creating controls of the right size for the
constraints and hierarchy you specify.
This makes it much easier to localize an application; you don't have to
worry about whether your buttons or text fields need to be adjusted in
order to accommodate German text, for example; they'll automatically be
adjusted. And when you load Foo.gsmarkup, Renaissance will also load
Foo.strings (if available) from the appropriate localization
automatically.
The only thing Renaissance is really missing is Panther support
including support for bindings & NSController. Of course, since it's
LGPL you can add that yourself if you need it.
Check it out.
-- Chris
--
Chris Hanson <email@hidden>
bDistributed.com, Inc.
Outsourcing Vendor Evaluation
Custom Mac OS X Development
Cocoa Developer Training
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.