Add tools/fix-apostrophes.sh and run it

Este commit está contenido en:
Daniel Martí 2015-03-05 14:11:33 +01:00
padre f062de9092
commit 911b95dc87
Se han modificado 2 ficheros con 6 adiciones y 1 borrados

Ver fichero

@ -10,6 +10,6 @@
<string-array name="themeNames">
<item>Sombre</item>
<item>Clair</item>
<item>Clair (avec barre d'action sombre)</item>
<item>Clair (avec barre d\'action sombre)</item>
</string-array>
</resources>

5
F-Droid/tools/fix-apostrophes.sh Archivo ejecutable
Ver fichero

@ -0,0 +1,5 @@
#!/bin/bash -x
# Fix apostrophes in strings not preceded by a backslash
sed -i "/\\(item\\|string\\)/s/\\([^\\]\\)'/\\1\\\\'/g" res/values*/{strings,array}.xml