X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=hacks%2Fi18nup;h=1942b45313f9c84f1101d7c32c5d1471da380f5c;hb=050a47be167ad4d48ea1a971f28291ba085ee58f;hp=fa65bdfa2ec574e805c905b2223dbcbb1905162f;hpb=7796fa9405b5e7766e88c39de7df71f74abe7edf;p=dcpomatic.git diff --git a/hacks/i18nup b/hacks/i18nup index fa65bdfa2..1942b4531 100644 --- a/hacks/i18nup +++ b/hacks/i18nup @@ -1,5 +1,5 @@ #!/bin/bash -changes=`git status -s | grep "^ M"` +changes=`git status -s | grep "^.*M"` check=`echo "$changes" | grep -v /po/` if [ "$check" != "" ]; then echo "Non i18n updates would be committed" @@ -45,31 +45,19 @@ elif [[ `echo $changes | grep pl_PL` != "" ]]; then elif [[ `echo $changes | grep it_IT` != "" ]]; then language="it_IT" translator="Riccardo Mantani" +elif [[ `echo $changes | grep sl_SI` != "" ]]; then + language="sl_SI" + translator="Martin Srebotnjak" +elif [[ `echo $changes | grep hu_HU` != "" ]]; then + language="hu_HU" + translator="Áron Németh" else echo "Unknown language" exit 1 fi -date=`date +%Y-%m-%d` - -tag="$date Carl Hetherington " msg="Updated $language translation from $translator." -echo "$tag" > /tmp/$$.changelog -echo "" >> /tmp/$$.changelog -echo -e "\t* $msg" >> /tmp/$$.changelog -echo "" >> /tmp/$$.changelog - -if [[ `head -n 1 ChangeLog` == "$tag" ]]; then - echo "Trimming!" - tail -n +3 ChangeLog > /tmp/$$.trimmed - mv /tmp/$$.trimmed ChangeLog -fi - -cat /tmp/$$.changelog | cat - ChangeLog > /tmp/$$.joined -rm /tmp/$$.changelog -mv /tmp/$$.joined ChangeLog - git diff echo "OK?"