8

This is the Objective-C code:

NSString *text = NSLocalizedString(@"Test \"this is a sample text\"", @"Test \"this is a sample text\"");

and this is the result in .xliff file:

enter image description here

So as you can see, the id and source is missing. Can any one fix this? Or it is Xcode bug?

Vito Ziv
  • 1,631
  • 2
  • 11
  • 13

2 Answers2

2

It seems Xcode 6.3 fixed this bug.

Vito Ziv
  • 1,631
  • 2
  • 11
  • 13
  • Great, they fixed double quotes with Xcode 6.3 but 6.3 [broke apostrophes](http://stackoverflow.com/a/29623140/1693173)!? – progrmr Apr 23 '15 at 21:25
1

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.

Matt Mc
  • 8,882
  • 6
  • 53
  • 89