Is it possible to update a localized storyboard's strings?

前端 未结 14 1374
星月不相逢
星月不相逢 2020-11-28 00:13

I localized a part of my application with creating a base.lproj storyboard and 3 string files for it. It was a month ago and after that I added new view controller to app, b

14条回答
  •  北荒
    北荒 (楼主)
    2020-11-28 01:15

    I think the best way is by using built-in export/import Localizations:

    1. In Project Navigator choose you project folder
    2. Choose Editor > Export For Localization,
    3. All translations left on their places and XCode add missed strings automatically. Additionally, before import, you can edit .xliff in XLIFF Editor (for example, online - http://xliff.brightec.co.uk) and then you don't need to do this in XCode.
    4. then Editor > Import Localizations and choose saved .xliff file.

    P.S. If you don't want to edit in XLIFF Editor and have skipped step 3, XCode can didn't save new strings. In this case open .xliff in XLIFF Editor, re-save without changes and import new file.

提交回复
热议问题