Marking some XIB/Storyboard strings as not localizable

后端 未结 3 827
孤城傲影
孤城傲影 2020-12-03 14:13

I am using Base Internationalization for XIB/Storyboard files and the \"Export for Localization\" method using XLIFF files for translators.

I have some labels, butto

3条回答
  •  孤街浪徒
    2020-12-03 14:44

    It turns out the localization export from Xcode ignores attributed strings in the storyboard.

    So just set the type of text for every label/button you want to exclude to Attributed in the Attributes Inspector.

    This will give you an attributed string rather than a plain string, which as far as I know has no implications, apart from the (empty) list of attributes that has to be kept in memory now.

提交回复
热议问题