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

前端 未结 2 1818
忘掉有多难
忘掉有多难 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.

提交回复
热议问题