Scripts and results to help determine the number of translations strings touched by all children of https://www.drupal.org/node/2506427
Tested on OSX10.10 only
Usage notes from scripts
-
iterateLanguages.sh
This script iterates through a set of languages and finds strings in the translation files.
Usage: ./iterateLanguages.sh searchFile download
Example: ./iterateLanguages.sh translated-strings-original.txt true -
translationSearch.sh
Searches input translation file for parsed strings from above script
Usage: ./translateSearch.sh searchTerms translationFile outputFile
Example: ./translateSearch.sh helpPatchStrip.txt drupal-8.0.0-beta14.uk.po ukrainianSearch.txt
Where translationFile is downloaded from https://localize.drupal.org/translate/languages/uk (for example)
Additionally,
stripHelpPatch.sh
This script strips a patch to only show the lines that are removed and in t()
Usage: ./stripHelpPatch.sh input output
Example: ./stripHelpPatch.sh 2560783-83.patch helpPatchStrip.txt
input is the patch file, output will be used in following script (searchTerms)
Updated 09/05/2015:
Added wholePatchStrip.txt, which is a parsed version of the larger patch where the hook_help originated.