Is there an easy way to merge Localizable.strings files?
Asked Answered
W

6

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?

Whitewall answered 18/5, 2010 at 9:31 Comment(0)
N
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.

Newborn answered 28/4, 2011 at 13:35 Comment(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? @MartinWickmanAvocado
O
9

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

Ouidaouija answered 11/11, 2011 at 10:3 Comment(3)
For my latest project I switched to Linguan to manage several languages.Ouidaouija
As the future of Linguan is uncertained I took my pilgrim's stick and start to seek for others tool. This question list few tools. Traducto Pro has catch my eyes and videos on website gave me a very good feeling on it.Ouidaouija
The URL changed: products.delitestudio.com/app/localizable-strings-mergeFastback
N
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.

Newborn answered 28/4, 2011 at 13:35 Comment(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? @MartinWickmanAvocado
N
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.

Nattie answered 14/3, 2015 at 11:31 Comment(0)
C
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.

Could answered 18/5, 2010 at 11:44 Comment(0)
A
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

Abran answered 10/10, 2010 at 21:3 Comment(2)
Tried this, it is quite useless as it does just text diff, not considering localization file specifics.Certainly
I think is useful, you can choose left or right diff and do the mergeMassie
C
-4

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

Cudbear answered 23/5, 2010 at 5:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.