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

前端 未结 14 1169
星月不相逢
星月不相逢 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:14

    Finally, my solution was (rudimentary but effective) copy the previous translations and paste them in the a new file created by unchecking and checking the Localization language box.

    This would be useful in some cases like mine when you have to change only one or two texts.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题