From f27396ea12def4620870539f745ad131ad84db2c Mon Sep 17 00:00:00 2001 From: Mika Bostrom Date: Sun, 29 Aug 2010 20:18:01 +0300 Subject: [PATCH] Generalise .po file updates This should catch all future translations too --- pyfpdb/locale/update-po-files.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pyfpdb/locale/update-po-files.sh b/pyfpdb/locale/update-po-files.sh index f39b143d..0b6956e6 100755 --- a/pyfpdb/locale/update-po-files.sh +++ b/pyfpdb/locale/update-po-files.sh @@ -1,3 +1,12 @@ -msgmerge --update fpdb-hu_HU.po fpdb-en_GB.po -msgmerge --update fpdb-de_DE.po fpdb-en_GB.po +#!/bin/sh + +# Our master file +REFERENCE_PO=fpdb-en_GB.po + +# Update all .po files +for po in *.po; do + if [ ${po} != ${REFERENCE_PO} ]; then + msgmerge --update ${po} ${REFERENCE_PO} + fi +done