X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=hacks%2Fi18nup;h=72ffd7941d6ca873ee4953b10410d977d28ab73a;hb=9704833bdfc8c8f104203200be27f714fa677506;hp=5d1e4806673361737e47b1932f9abcb87ff5eb61;hpb=26621c5a6368f056bfcf6a03d008e1f8fe622da1;p=dcpomatic.git diff --git a/hacks/i18nup b/hacks/i18nup index 5d1e48066..72ffd7941 100644 --- a/hacks/i18nup +++ b/hacks/i18nup @@ -15,31 +15,43 @@ elif [[ `echo $changes | grep nl_NL` != "" ]]; then elif [[ `echo $changes | grep es_ES` != "" ]]; then language="es_ES" translator="Manuel AC" +elif [[ `echo $changes | grep sv_SE` != "" ]]; then + language="sv_SE" + translator="Adam Klotblixt" +elif [[ `echo $changes | grep fr_FR` != "" ]]; then + language="fr_FR" + translator="Thierry Journet" +elif [[ `echo $changes | grep ru_RU` != "" ]]; then + language="ru_RU" + translator="Igor Voytovich" +elif [[ `echo $changes | grep uk_UA` != "" ]]; then + language="uk_UA" + translator="Igor Voytovich" +elif [[ `echo $changes | grep cs_CZ` != "" ]]; then + language="cs_CZ" + translator="Tomáš Begeni" +elif [[ `echo $changes | grep pt_BR` != "" ]]; then + language="pt_BR" + translator="Max M. Fuhlendorf" +elif [[ `echo $changes | grep zh_CN` != "" ]]; then + language="zh_CN" + translator="Rov (若文)" +elif [[ `echo $changes | grep da_DK` != "" ]]; then + language="da_DK" + translator="Anders Uhl Pedersen" +elif [[ `echo $changes | grep pl_PL` != "" ]]; then + language="pl_PL" + translator="Mike Mazur" +elif [[ `echo $changes | grep it_IT` != "" ]]; then + language="it_IT" + translator="Riccardo Mantani" 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?"