Reputation: 1479
I have a second .nib file that is a localized version of the main one in my Cocoa project.
I want to be able to perform some kind of 'update', as in, if I want to add new elements to the original, I want to be able to update it to the localized one. A solution can be deleting and re creating the localization, however the problem that I am facing is that if I have elements which I have changed from the second nib file (e.g. increase size of a label), this is then lost.
How can I do this 'update'?
Thanks
Upvotes: 1
Views: 183
Reputation: 21383
I use the free Localization Suite for managing localizations of my app. It can synchronize changes in your main localization into the other localized NIBs/XIBs, without breaking layout/sizing adjustments you've made in the localized version. It handles the whole localization process pretty well. There are other tools and approaches to this problem, but this is the one I like.
For a completely different approach, see Wil Shipley's blog post on the subject. The flaw in his approach is that it doesn't adjust sizing for localized versions. He addresses this by always making UI elements wide enough to fit the longest localization.
Upvotes: 2