Xcode 6 localization. export .xliff file will cut the string when the string is like “this is sample \”text\“”

前端 未结 2 1826
忘掉有多难
忘掉有多难 2021-02-15 16:40

This is the Objective-C code:

NSString *text = NSLocalizedString(@\"Test \\\"this is a sample text\\\"\", @\"Test \\\"this is a sample text\\\"\");
相关标签:
2条回答
  • 2021-02-15 17:26

    Seems to be a bug in the way Xcode handles the .strings -> .xliff conversions, and so on. You'll have to wait for Apple to fix it.

    May I suggest using curly quotes in the meantime?

    @"Text “this is a sample text”"

    It seems to export to XLIFF properly.

    0 讨论(0)
  • 2021-02-15 17:45

    It seems Xcode 6.3 fixed this bug.

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