Xcode 6本地化。当字符串类似于“this is sample \”text.\\""时,导出.xliff文件将剪切字符串。 [英] Xcode 6 localization. export .xliff file will cut the string when the string is like "this is sample \"text\""

查看:120
本文介绍了Xcode 6本地化。当字符串类似于“this is sample \”text.\\""时,导出.xliff文件将剪切字符串。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是Objective-C代码:

This is the Objective-C code:

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

这是.xliff文件中的结果:

and this is the result in .xliff file:

所以如您所见,缺少 id 来源。任何人都能解决这个问题?或者它是Xcode错误?

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

推荐答案

似乎Xcode 6.3修复了这个错误。

It seems Xcode 6.3 fixed this bug.

这篇关于Xcode 6本地化。当字符串类似于“this is sample \”text.\\""时,导出.xliff文件将剪切字符串。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆