Source files of fsfe.org, pdfreaders.org, freeyourandroid.org, ilovefs.org, drm.info, and test.fsfe.org. Contribute: https://fsfe.org/contribute/web/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

check-translation-status.sh 782B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. A=$(echo $1 | sed 's/\.[a-z][a-z]\.xhtml//')
  3. originaldate=`git log --pretty="%cd" --date=raw -1 $A.en.xhtml|cut -d' ' -f1`
  4. EN=$A.en.xhtml
  5. trdate=`git log --pretty="%cd" --date=raw -1 $EN|cut -d' ' -f1`
  6. ymd=`date +"%Y-%m-%d" --date="@$trdate"`
  7. echo "Basefile: $EN ( $ymd )"
  8. echo " STATUS LANG DATE"
  9. echo " -------- ---- ----------"
  10. for i in $A.[a-z][a-z].xhtml; do
  11. if [[ $i != *".en."* ]]; then
  12. trdate=`git log --pretty="%cd" --date=raw -1 $i|cut -d' ' -f1`
  13. ymd=`date +"%Y-%m-%d" --date="@$trdate"`
  14. diff=$((trdate-originaldate))
  15. lang=`echo $i|sed 's/.*\.\([a-z][a-z]\)\.xhtml/\1/'`
  16. if [[ $diff -lt -3600 ]]; then
  17. echo " OUTDATED $lang $ymd"
  18. else
  19. echo " Up-to-date $lang $ymd"
  20. fi
  21. fi
  22. done | sort