Re: Button width should accomodate localized string
Re: Button width should accomodate localized string
- Subject: Re: Button width should accomodate localized string
- From: Oftenwrong Soong <email@hidden>
- Date: Tue, 16 Mar 2010 08:47:55 -0700 (PDT)
On Mon, November 30, 2009 2:53:08 PM, Ricky Sharp <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden