Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orkoden/d9027cc6773ff8712d61 to your computer and use it in GitHub Desktop.
Save orkoden/d9027cc6773ff8712d61 to your computer and use it in GitHub Desktop.
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