From: Tomáš Chvátal Date: Sun, 25 Oct 2009 22:30:17 +0000 (+0100) Subject: Update README and updater even bit more. X-Git-Tag: 0.6-beta1~199 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=61df0585d3b0e958738b833c844341f72c27182c Update README and updater even bit more. --- diff --git a/i18n/README.Translations b/i18n/README.Translations index 40429623..be8cb785 100644 --- a/i18n/README.Translations +++ b/i18n/README.Translations @@ -13,6 +13,8 @@ You can open translation files with poedit for example and add/edit translated s The *.po files can and should be kept in sync with the source code by running update.sh regularly (existing translations won't be removed). +NOTE: Remember to remove X-Virgin-Header line if you want to preserve your header. + Qt itself does not use the *.po files, but a compact binary format (*.qm). These files will automatically be generated at build time. By default, all languages will be built. To select languages, add -DLINGUAS="" diff --git a/i18n/update.sh b/i18n/update.sh index 0b4575b8..8bfb9acd 100755 --- a/i18n/update.sh +++ b/i18n/update.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh if [ ! $# -eq 1 ]; then exec >&2 echo "Usage: $0 " @@ -7,12 +7,13 @@ if [ ! $# -eq 1 ]; then fi CONV=lconvert -BASE=quassel_${1} -PO=${BASE}.po -TS=${BASE}.ts +BASE=quassel_$1 +PO=$BASE.po +TS=$BASE.ts + +$CONV -i $PO -o $TS && + lupdate ../src -ts $TS && + $CONV -i $TS -o $PO -$CONV -i ${PO} -o ${TS} && - lupdate ../src -ts ${TS} && - $CONV -i ${TS} -o ${PO} # remove cruft rm ${TS}