Update README and updater even bit more.
authorTomáš Chvátal <scarabeus@gentoo.org>
Sun, 25 Oct 2009 22:30:17 +0000 (23:30 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 25 Oct 2009 22:37:02 +0000 (23:37 +0100)
i18n/README.Translations
i18n/update.sh

index 4042962..be8cb78 100644 (file)
@@ -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).
 
 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="<languages>"
 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="<languages>"
index 0b4575b..8bfb9ac 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/env sh
 if [ ! $# -eq 1 ]; then
   exec >&2
   echo "Usage: $0 <language>"
 if [ ! $# -eq 1 ]; then
   exec >&2
   echo "Usage: $0 <language>"
@@ -7,12 +7,13 @@ if [ ! $# -eq 1 ]; then
 fi
 
 CONV=lconvert
 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}
 # remove cruft
 rm ${TS}