This is the Objective-C code:
NSString *text = NSLocalizedString(@\"Test \\\"this is a sample text\\\"\", @\"Test \\\"this is a sample text\\\"\");
It seems Xcode 6.3 fixed this bug.