[orbot/master] ./fix-translations script to fix common problems in the strings.xml

25 Jun
2015
25 Jun
'15
2:59 p.m.
commit d55c7b7eaf7856a6be1bb118559b2ae880892b31 Author: Hans-Christoph Steiner <hans@eds.org> Date: Wed Jun 3 18:00:28 2015 -0400 ./fix-translations script to fix common problems in the strings.xml --- fix-translations | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/fix-translations b/fix-translations new file mode 100755 index 0000000..7402fe0 --- /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
3628
Age (days ago)
3628
Last active (days ago)
0 comments
1 participants
participants (1)
-
n8fr8@torproject.org