在XCode 4中硬编码的本地化文件路径-在项目移动到新文件夹时消失

在XCode 4中硬编码的本地化文件路径-在项目移动到新文件夹时消失,xcode,xcode4,localization,localizable.strings,Xcode,Xcode4,Localization,Localizable.strings,最近,我们使用Xcode将一个项目本地化为15种语言,但我注意到,当我把项目带回家时,一些本地化文件的路径都硬编码到我工作mac的完整路径 Also the LOCATION drop down was set to ABSOLUTE PATH for the missing files but is DISABLED so cant change it to RELATIVE TO GROUP. 我们只本地化了两个文件: InfoPlist.strings Localizable.stri

最近,我们使用Xcode将一个项目本地化为15种语言,但我注意到,当我把项目带回家时,一些本地化文件的路径都硬编码到我工作mac的完整路径

Also the LOCATION drop down was set to ABSOLUTE PATH for the missing files 
but is DISABLED so cant change it to RELATIVE TO GROUP.
我们只本地化了两个文件:

InfoPlist.strings
Localizable.strings
我们使用Xcode进行本地化,如下所示

We added the 15 languages to the whole project.
Then clicked on Localizable.string and in 
File Inspector > Localisation > + 
    clicking + we added it to the 15 languages we set up for the whole project.

Localizable.strings then moved into
en.lproj/Localizable.strings
fr.lproj/Localizable.strings
etc.
我们派 en.lproj/Localizable.strings 对于翻译人员,每次返回时,我们都会替换每个翻译文件夹中的文件

这是通过Finder完成的,而不是将文件拖到XCode中(我想,这是很久以前的事了)

为了赶上最后期限,我把项目带回家,但当我打开它时,除了英语以外的所有本地化文件都在XCode中显示为红色,好像文件丢失了一样

在finder中,他们在那里,但我检查了文件检查器/完整路径,并将其硬编码到我的工作mac的路径

Also the LOCATION drop down was set to ABSOLUTE PATH for the missing files 
but is DISABLED so cant change it to RELATIVE TO GROUP.
我注意到路径包含一个带有空格的文件夹,所以我想这可能是问题所在,尽管项目中的每个文件都应该有问题

Only way to fix it was tob back up using Finder/Duplicate on each .strings file using Finder.
Then click on Localizable.strings in Xcode (top level/ not individual localization)
Then in File Inspector delete the missing Localizations and re-add it.
This will ask you to replace the existing file (it copies the en.lproj version over it, thats why you need to back up with Duplicate) 
so after you need to go back into Finder and put the Duplicate back.
知道为什么会这样吗? 或者如何轻松更改(位置下拉菜单已禁用)。 知道为什么相对于组设置文件的下拉菜单被禁用了吗(我认为是因为XCode管理本地化)

干杯