I added localization in xcode, deleted it, and now my storyboard is gone

So, I wanted to try to localize my application. In my project folder I had one coloring Storyboard.storyboard.

  • I checked the "Use basic internationalization" checkbox and then xcode did something with my files.
  • I added a second localization
  • Xcode told me that it cannot create some .plist because it already exists.
  • In the end, I had two storyboards ("Base" and "English" grouped together), which was very strange, as the documentation clearly states that I just need to deal with one set of storyboards (when using basic intertalization) and that others languages โ€‹โ€‹would be the line files:

    Basic internationalization, a feature introduced in Xcode 4.5, frees localizers (i.e. translators) from having to change storyboards and nib files for each language supported by the application. Instead, there is only one set of storyboard or nib files in the application that are localized in the default language; these storyboards and tips are called basic internationalization. When you add localization to an application, Xcode generates a line file for all the text that appears in each storyboard or nib file or includes an accessibility label or a tooltip. Xcode gives the file the name of the storyboard and extension line. Therefore, if you have a storyboard called MyStoryboard.storyboard, the generated string file is called MyStoryboard.strings.

  • I deleted the newly created localization (English) because it was not what I expected
  • Now all the storyboards have disappeared, although I deleted only one localization

Now I have two storyboards in my basket (one is a storyboard. Page and one of them is a storyboard.), But I have no idea 1) which one should I use, and 2) should it be in some kind of subfolders now, since I checked the option of "basic internationalization"? What about .plists? I read about things on this page , but he did a better job of telling me where to click than telling me about the goals of different files, so I have no idea how to undo this correctly.

Update:

Now it looks like this when I restart xcode: Two base localizations, what does that mean?

I have no idea where to go from here ...

+6
source share
1 answer

For the storyboards in the basket, I tried to open them and see what was right. And to use .strings files instead of localizing the entire storyboard, when using basic internationalization, you have the option. You can change it by changing the parameter here during localization (this is under the left panel when you open the storyboard) enter image description here

Change the parameter from the interface builder to localizable strings, and you do not need to use the storyboard. The difference in the interface will build one, you will have to edit all the labels and everything that you want to localize, as you would edit any other storyboard, which can be tedious. The line file simplifies the job, basically giving you a list of any text that you have on the entire storyboard, and allows you to change what they say by translating the text, rather than editing the entire storyboard file.

+9
source

All Articles