From 61df0585d3b0e958738b833c844341f72c27182c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sun, 25 Oct 2009 23:30:17 +0100 Subject: [PATCH] Update README and updater even bit more. --- i18n/README.Translations | 2 ++ i18n/update.sh | 15 ++++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) 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} -- 2.20.1