#!/bin/sh # # Met a jour les fichiers pot. # cd bureau for i in `find ../modules -maxdepth 1 -type f \! -name "*~" -printf "%f "` do xgettext -f../modules/$i -d${i}_tmp -plocales/ -Lphp -k_ -k__ --from-code=iso-8859-1 --msgid-bugs-address="i18n@alternc.org" YEAR=`date +%Y` FULLDATE=`date +"%Y-%m-%d %H:%M %Z"` cat locales/${i}_tmp.po | sed -e "s/# SOME DESCRIPTIVE TITLE./# AlternC's Translation/" | sed -e "s/YEAR THE PACKAGE'S COPYRIGHT HOLDER/$YEAR AlternC's translation team /" | sed -e "s/This file is distributed under the same license as the PACKAGE package./This file is distributed under the same license as the AlternC's package./" | sed -e "s/FIRST AUTHOR , YEAR./AlternC's translation team /" | sed -e 's/Project-Id-Version: PACKAGE VERSION/$id$/' | sed -e "s/PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE/PO-Revision-Date: $FULLDATE/" | sed -e "s/Language-Team: LANGUAGE /Language-Team: Team AlternC /" | sed -e 's/Content-Type: text\/plain; charset=CHARSET/Content-Type: text\/plain; charset=ISO-8859-1/' | sed -e 's/Last-Translator: FULL NAME /Last-Translator: Team AlternC /' >locales/${i}.po rm locales/${i}_tmp.po done