Reputation: 3172
My storyboard has localization of Chinese(Simplified).
Initially, when the .strings file was generated, it contains every text of title/labels that I input on every scene. Like this:
/* Class = "UINavigationItem"; title = "灯光窗帘"; ObjectID = "03c-Su-3Ya"; */ "03c-Su-3Ya.title" = "灯光窗帘";
/* Class = "UIButton"; normalTitle = "Button"; ObjectID = "1dN-RP-fnm"; */ "1dN-RP-fnm.normalTitle" = "Button";
/* Class = "UIButton"; normalTitle = "写入"; ObjectID = "1yV-zN-VyH"; */ "1yV-zN-VyH.normalTitle" = "写入";
/* Class = "UIButton"; normalTitle = "通风"; ObjectID = "26S-O2-95j"; */ "26S-O2-95j.normalTitle" = "通风";
But when I add new view controllers and new texts into it. I notice that the .strings file is not updated automatically. Do I have to generate this file every time? Or there is a way to refresh its contents?
Please help. Thanks in advance!
Upvotes: 1
Views: 1964
Reputation: 35953
Yes. This is one of the million limitations of Xcode. I generally only do this localization as the last thing I do for an application.
As you add new elements, Xcode will not add these new elements to the localization file. You have to do it manually.
Upvotes: 5