[gthumb/ext] added a script to automatically generate POTFILES.in



commit 19e27f117532043d69f3cc53580d247bb351d52e
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Thu Sep 3 20:12:59 2009 +0200

    added a script to automatically generate POTFILES.in

 po/update-potfiles.sh |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/po/update-potfiles.sh b/po/update-potfiles.sh
new file mode 100644
index 0000000..0faabcc
--- /dev/null
+++ b/po/update-potfiles.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+echo "# DO NOT EDIT.  This file is automatically generated."
+echo "# List of source files which contain translatable strings."
+echo "# To update use: sh update-potfiles.sh > POTFILES.in"
+echo "[encoding: UTF-8]"
+files=`find .. \( -name '*.c' -o -name '*.h' -o -name '*.cpp' -o -name '*.ui' -o -name '*.schemas.in' -o -name '*.desktop.in.in' \) -printf "%P\n" | sort`
+for f in $files; do
+	case $f in
+	config.h) ;;
+	*.ui) echo "[type: gettext/glade]$f" ;;
+	*) echo $f
+	esac
+done



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]