16

Problem: Using genstrings to create Localizable.strings files from a project. A few weeks later, some things changed and I run genstrings again. 75% of the new file is already in the old file. How could I merge the new file with the old file, so that the old file contains all of those 25% new key-value-pairs?

dontWatchMyProfile
  • 45,440
  • 50
  • 177
  • 260

6 Answers6

9

I recommend Localizable Strings Merge too. I use it on my projects and it really a simple to use and powerful software.

Dominique Vial
  • 3,729
  • 2
  • 25
  • 45
  • For my latest project I switched to [Linguan](http://www.cocoanetics.com/apps/linguan/) to manage several languages. – Dominique Vial Jul 23 '13 at 12:59
  • As the future of [Linguan](http://www.cocoanetics.com/2013/12/linguan-acquisition-update/) is uncertained I took my pilgrim's stick and start to seek for others tool. This [question](http://stackoverflow.com/questions/16806682/ios-localization-updating-localizable-strings-with-just-new-strings) list few tools. [Traducto Pro](http://www.traductoapp.com) has catch my eyes and videos on website gave me a very good feeling on it. – Dominique Vial Dec 07 '13 at 11:01
  • 1
    The URL changed: https://products.delitestudio.com/app/localizable-strings-merge/ – Christian Beer Jun 23 '20 at 08:26
4

I just found the Localization Suite. Incredible powerful tool for free. I tried it on my project and it just works. Lacks documentation though.

Martin Wickman
  • 19,662
  • 12
  • 82
  • 106
  • 1
    I couldn't get this application to run on either Lion or SL. Is there some guide that I can follow? Are you still using this app? @MartinWickman – Schoob Jul 20 '11 at 10:32
1

I use a script to run genstrings with existing translations merged automatically when I build a project. Updated strings are detected by git or another source control you use. The script supports storyboard and xib localization too.

To run the script automatically, put the script into your project root directory, and add a Run Script phase with the following line to a target build phases in your project settings.

./mergegenstrings.py PathToSourceDir

My script is based on the script in this post. I modified it to support Swift and to add the arguments.

Yoichi Tagaya
  • 4,547
  • 2
  • 27
  • 38
0

What about 3rd party applications like BBEdit? After all Localizable.strings file is a text file. BBEdit has a find differences feature and you can merge from old to new or opposite.

Nava Carmon
  • 4,523
  • 3
  • 40
  • 74
0

If you install XCode, there is also a standard application installed to merge files called FileMerge.app, you can find it in /Developer/Applications/FileMerge.app

Jeroen de Leeuw
  • 907
  • 1
  • 9
  • 18
  • 1
    Tried this, it is quite useless as it does just text diff, not considering localization file specifics. – JaakL Oct 28 '12 at 18:12
  • I think is useful, you can choose left or right diff and do the merge – po5i Jan 31 '17 at 19:56
-4

I'm not sure but ReSharper may help you. teake a look at it.

Nasser Hadjloo
  • 12,312
  • 15
  • 69
  • 100