Sha256: e18f7e734905aa6df07642952f0d08ba3fd0d959250bf7d9f0702a1fc322aaf8
Contents?: true
Size: 834 Bytes
Versions: 5
Compression:
Stored size: 834 Bytes
Contents
#!/bin/bash # # This script helps you to show missing translations. # # To run this you need rspec and i18n-spec gems installed # pushd config/locales REPODIR=$(pwd) UPSTEAM_CLONE=$(mktemp -d -q) trap "rm -rf $UPSTEAM_CLONE" EXIT echo "Cloning rails-i18n (will be deleted afterwards)" git clone git://github.com/svenfuchs/rails-i18n.git "$UPSTEAM_CLONE" for FILE in *yml; do echo -n "Comparing $FILE ... " if [ -f "$UPSTEAM_CLONE/rails/locale/$FILE" ]; then pushd "$UPSTEAM_CLONE" >/dev/null upstream=$(rake i18n-spec:completeness rails/locale/en.yml "rails/locale/$FILE" | grep MISSING | wc -l) here=$(rake i18n-spec:completeness rails/locale/en.yml "$REPODIR/$FILE" | grep MISSING | wc -l) popd >/dev/null echo "missing strings: here:$here upstream:$upstream" else echo missing upstream fi done popd
Version data entries
5 entries across 5 versions & 1 rubygems