I’m trying to find a manageable way to translate every visible string in an iPhone application. The official apple documentation says to use .strings files for programmatic strings, while using the built in ‘add localized file’ option in xcode to localize nib files.
The problem i see with this is that if the UI needs to change after localization happens, then we would need to update the nibs for each language individually which is less than optimal. Is there a simpler way to perhaps tie strings displayed in nib files to relevant values in a .strings file? or would i have to programmatically have to set those strings for each ui element (which is slightly better but still annoying)?
The best you can do is recursively loop through each view and then set the text on them:
Warning: You may of have to check other sets of selectors to catch everything. This is not a best-practice, but it seems like much less work