genstrings_swift icon indicating copy to clipboard operation
genstrings_swift copied to clipboard

Script improvement

Open jifang opened this issue 10 years ago • 1 comments

  1. Update the python script for generating the string file from swift source. Now, it supports generating string from multiple inputs. The usage is similar to the Apple's genstrings tool. Usage: find /path/to/source -iname "*.swift" | xargs python ./genstrings_swift.py -o ./App/en.lproj/ ./App/Source/LocalizationConstants.swift
  2. Fix the bug in python script for merging the string file. When the string value contains escaped double quotes, it will be excluded from the string file. For example, following lines will be striped from the final output /* String with quotes */ "EscapedQuotes" = ""String with quotes"";

jifang avatar Feb 02 '16 01:02 jifang

Thank you. We try to look into it this week.

philippb avatar Feb 02 '16 02:02 philippb