deep-linking-sample/Apps/Wikipedia/scripts/fix-reverse-dollar-signs.sh

12 lines
304 B
Bash
Executable File

#! /bin/sh
# fixes incorrect string format specifiers in localizations
set -e
if [[ `uname -s` != "Darwin" ]]; then
echo "Only supported on OS X"
exit 1
fi
find Wikipedia/Localizations -iname '*.strings' -print0 | xargs -0 sed -E -i '' 's:\%([1-9]+)\$:$\1:g;s:([1-9]+)\$:$\1:g;s:\%([1-9]+):$\1:g'