diff --git a/fix-translations b/fix-translations new file mode 100755 index 00000000..7402fe04 --- /dev/null +++ b/fix-translations @@ -0,0 +1,10 @@ +#!/bin/bash -x + +# Fix TypographyEllipsis programmatically +sed -i 's/\.\.\./…/g' res/values*/*.xml + +# Replace "--" with an "em dash" character +sed -i 's,\(\>[^\<]*\)--\([^\>]\),\1—\2,g' res/values*/*.xml + +# make sure apostrophes in strings are escaped +sed -i "s,\(>[^<]*[^\\]\)',\1\\\\',gp" res/values*/*.xml