Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Incorrectly escaped string in my localized strings files: \\"%@\\" should have been \"%@\" as it should display as "foo".
find Resources/Localizable.strings -name "*.strings" -type f -exec gsed -i 's/\\\\\"%@\\\\\"/\\\"%@\\\"/g' {} ";" -exec plutil -lint {} ";"
# needs gnu-sed to be installed for -i parameter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.