I wrote my own script in bash, which does the following:
- Extracts all strings from all xib files in the directory
- Converts it to the .strings format (expected by
NSLocalizableString
macro)."text to translate"="text to translate";
It can be used directly by your translator.Only right side, text in quotes after = needs to be edited. - Removes duplicates (I agree - sometimes it is not the best idea as translations may differ depending on context)
- Removes comments (leaves just the juice)
- Sorts alphabetically (optional)
- Saves result to the 1 output file (all merged and ready for translation)
Script is not perfect but it works quite well.
It has a bit too long to past it here (90 lines), so here is the direct GitHub link: