I currently have a semi-automated way to localize my views. However, today I found an interesting section in IB, which seems to suggest that I can localize my views from within Interface Builder.
So in IB you can define runtime attributes for a selected object in the Identity Inspector. So for my UILabel
I can set the text
keypath of my label to the String Hello World
.
However, when I choose the Type = Localized String
and then the name of a key in my Localized.strings
I don't get a translated string but rather just the value (hence the key) which I entered in IB.
I don't understand, how this mechanism is supposed to work. I would love to be able to translate my views like this, any ideas?