root/alternc-changepass/branches/r1/updatepot.sh
| Revision 1088, 1.1 kB (checked in by anonymous, 4 years ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | # |
| 3 | # Met a jour les fichiers pot. |
| 4 | # |
| 5 | |
| 6 | xgettext *.php -dchangepass -plocales/ -Lphp -k_ -k__ --from-code=iso-8859-1 --msgid-bugs-address="i18n@alternc.org" |
| 7 | YEAR=`date +%Y` |
| 8 | FULLDATE=`date +"%Y-%m-%d %H:%M %Z"` |
| 9 | cat locales/changepass.po | sed -e "s/# SOME DESCRIPTIVE TITLE./# AlternC's Translation/" | sed -e "s/YEAR THE PACKAGE'S COPYRIGHT HOLDER/$YEAR AlternC's translation team <i18n@alternc.org>/" | 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 <EMAIL@ADDRESS>, YEAR./AlternC's translation team <i18n@alternc.org>/" | 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 <LL@li.org>/Language-Team: Team AlternC <i18n@alternc.org>/" | sed -e 's/Content-Type: text\/plain; charset=CHARSET/Content-Type: text\/plain; charset=ISO-8859-1/' | sed -e 's/Last-Translator: FULL NAME <EMAIL@ADDRESS>/Last-Translator: Team AlternC <i18n@alternc.org>/' >locales/changepass.po |
| 10 | rm locales/changepass_tmp.po |
| 11 | |
| 12 |
Note: See TracBrowser for help on using the browser.
