문제

I know how to generate my Localizable.strings file from all the source (*.m) files of the project (if anyone wonders, see this).

Then, since I'm using XCode 4, I add new languages in the Identity tab of the right panel. Then I successfully edit the files for the new languages. So far, so good.

I also use some localizable strings whose keys are not strings literals, but variables, so I have to append them manually to the end of each file. I'm fine with that, no problem.

But now I'm making some changes in my code, and new localized strings are appearing. Is there a way to add those new strings to the Localizable.strings file (ideally for every language), without loosing the previous translated strings?

TIA

도움이 되었습니까?

해결책

I had the same issue and found a nice little python script to do the job ! As the source is no longer available, take a look at this blog post : http://www.stevestreeting.com/2010/05/18/os-x-localisation-incremental-genstrings-and-utf-8-files/, which basically do the same
Hope that helps !

다른 팁

I use a simple app called Localizable Strings Merge, available on the Mac App Store. Does one thing and does it well. A true time saver.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top