From b766e9c4d8b8400104c8ff99c2d20aea5c5354d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Mon, 4 Jun 2007 14:58:12 +0000 Subject: [PATCH] Add navqueue.c to POTFILES.in. Add revision time to the output. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1597 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 6 ++++++ po/ChangeLog | 2 +- po/POTFILES.in | 1 + po/intl_stats.sh | 34 +++++++++++++++++++++++++++------- 4 files changed, 35 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index c7edbbc1..0444ecfa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-06-04 Enrico Tröger + + * po/POTFILES.in: Add navqueue.c. + * po/intl_stats.sh: Add revision time to the output. + + 2007-06-04 Enrico Tröger * src/main.c: Add rpl_malloc() for better compatibility with non-GNU diff --git a/po/ChangeLog b/po/ChangeLog index 9ab36b79..a9262fbb 100644 --- a/po/ChangeLog +++ b/po/ChangeLog @@ -1,6 +1,6 @@ 2007-06-03 Frank Lanitz - * ChageLog: Update of ChangeLog + * ChangeLog: Update of ChangeLog 2007-05-31 Clytie Siddall diff --git a/po/POTFILES.in b/po/POTFILES.in index b81ce096..7f6b92ab 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -15,6 +15,7 @@ src/keybindings.c src/keyfile.c src/main.c src/msgwindow.c +src/navqueue.c src/notebook.c src/prefs.c src/project.c diff --git a/po/intl_stats.sh b/po/intl_stats.sh index 6f534a46..bbb1cdbf 100755 --- a/po/intl_stats.sh +++ b/po/intl_stats.sh @@ -2,7 +2,10 @@ # Little shell script to display some basic statistics about Geany's translation # files. It also checks the menu accelerators. - +# +# Copyright 2007 Enrico Tröger +# Copyright 2007 Frank Lanitz +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or @@ -63,18 +66,35 @@ done -# if no languages where specified on the command line, take all mentioned languages in LINGUAS +# if no languages where specified on the command line, take all listed languages in LINGUAS if [ -z "$linguas" ] then linguas=`sed -e '/^#/d' LINGUAS` fi +# dash and zsh don't need the -e switch to echo, bash does +# maybe there is a better way to detect whether we are running on a bash +eswitch="" +if [ "$BASH" ] +then + eswitch="-e" +fi # do the work -for lang in $linguas -do - echo -n $lang": " - msgfmt --check --statistics $check_accelerators $lang.po; -done +if [ $check_accelerators ] +then + for lang in $linguas + do + msgfmt --check --statistics $check_accelerators $lang.po; + done +else + for lang in $linguas + do + # maybe the regexp can be optimized, regexps are not my best friends + creationdate=`grep "PO-Revision-Date:" $lang.po | sed 's/.*: \([0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}[+|-][0-9]\{4\}\).*/\1/'` + echo -n $eswitch $lang"\t("$creationdate"):\t" + msgfmt --check --statistics $lang.po; + done +fi