Re: Button width should accomodate localized string
On Mon, November 30, 2009 2:53:08 PM, Ricky Sharp rsh...@mac.com wrote: On Nov 29, 2009, at 9:52 AM, glenn andreas wrote: On Nov 29, 2009, at 9:38 AM, Symadept wrote: How can I scale my button or Label to be able to accomodate the localized string? That's the whole purpose of being able to localize the nib/xib... Exactly. It's not possible to create a single nib such that its layout and control sizes will be appropriate for every language. Beyond control sizes being different, I've also found the following things to consider between flavors of your nibs: * Font size and/or style may need to change. * Directionality would need to change (if localizing to right-to-left languages) There really isn't a better way to deal with changes to sizes of controls and other factors that must change from one language to another just because of the sometimes vast differences between languages that might affect string lengths, writing direction, cultural perceptions, and other things. It simply *has* to be a separate nib for each language. Thing is, though, that means it's best to localize after everything else has been done, just before releasing the app. Otherwise you end up spending countless hours tweaking the same things in a million different nibs. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Button width should accomodate localized string
On Nov 29, 2009, at 9:52 AM, glenn andreas wrote: On Nov 29, 2009, at 9:38 AM, Symadept wrote: How can I scale my button or Label to be able to accomodate the localized string? That's the whole purpose of being able to localize the nib/xib... Exactly. It's not possible to create a single nib such that its layout and control sizes will be appropriate for every language. Beyond control sizes being different, I've also found the following things to consider between flavors of your nibs: * Font size and/or style may need to change. * Directionality would need to change (if localizing to right-to-left languages) ___ Ricky A. Sharp mailto:rsh...@instantinteractive.com Instant Interactive(tm) http://www.instantinteractive.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Button width should accomodate localized string
On Nov 30, 2009, at 2:53 PM, Ricky Sharp wrote: Exactly. It's not possible to create a single nib such that its layout and control sizes will be appropriate for every language. It's not impossible, it's just that it requires a very different approach, which in turn makes it a lot harder to create good-looking layouts. Overall I think Cocoa's approach is the right one. For example, Java's AWT/Swing frameworks lay out views on the fly using LayoutManagers, taking into account text and other metrics. (I think they got the approach from Motif.) It's a primary reason why Java user interfaces usually look so ugly; and also why designing them is so difficult. —Jens___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Button width should accomodate localized string
Hi, How can I scale my button or Label to be able to accomodate the localized string? Any clues. Regards symadept ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Button width should accomodate localized string
On 2009 Nov 29, at 07:38, Symadept wrote: How can I scale my button or Label to be able to accomodate the localized string? -[NSControl sizeToFit] However, to my eye the result you get from that, in a regular rounded button, looks a little cramped. So I use my own method which invokes that one but then adds a few 6 pixels to the width. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Button width should accomodate localized string
On Nov 29, 2009, at 9:38 AM, Symadept wrote: Hi, How can I scale my button or Label to be able to accomodate the localized string? Any clues. Regards symadept That's the whole purpose of being able to localize the nib/xib... Glenn Andreas gandr...@gandreas.com http://www.gandreas.com/ wicked fun! Mad, Bad, and Dangerous to Know ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com