open-contracting / standard-maintenance-scripts

Scripts for maintaining all repositories, in particular the standard's documentation and extensions
https://open-contracting.github.io/standard-maintenance-scripts/
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Write Rake task to report the progress of Transifex translations and of local translations #82

Closed jpmckinney closed 5 years ago

jpmckinney commented 6 years ago

To more easily determine if there are missing translations, or if Transifex is out-of-sync.

Add to handbook documentation of translation process.

jpmckinney commented 5 years ago

For local translations, to count translated strings, run e.g.:

sphinx-intl stat -d locale -l es | tail +2 | cut -d' ' -f2 | paste -sd+ - | bc

To count untranslated:

sphinx-intl stat -d locale -l es | tail +2 | cut -d' ' -f6 | paste -sd+ - | bc

See also pocount

jpmckinney commented 5 years ago

pocount makes this really easy, so closing.