[rkward-cvs] SF.net SVN: rkward: [2241] branches/KDE4_port

tfry at users.sourceforge.net tfry at users.sourceforge.net
Sun Nov 18 21:56:42 UTC 2007


Revision: 2241
          http://rkward.svn.sourceforge.net/rkward/?rev=2241&view=rev
Author:   tfry
Date:     2007-11-18 13:56:42 -0800 (Sun, 18 Nov 2007)

Log Message:
-----------
More on message extraction.

Modified Paths:
--------------
    branches/KDE4_port/CMakeLists.txt
    branches/KDE4_port/Messages.sh

Modified: branches/KDE4_port/CMakeLists.txt
===================================================================
--- branches/KDE4_port/CMakeLists.txt	2007-11-18 21:10:08 UTC (rev 2240)
+++ branches/KDE4_port/CMakeLists.txt	2007-11-18 21:56:42 UTC (rev 2241)
@@ -16,7 +16,3 @@
 INCLUDE_DIRECTORIES( ${KDE4_INCLUDE_DIR} ${QT_INCLUDES}  )
 
 # TODO: figure out how to make source distributions (with REAMDE files, etc.)
-
-ADD_CUSTOM_TARGET(messages
-	WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/po/
-	COMMAND BASEDIR=${CMAKE_CURRENT_SOURCE_DIR}/rkward ${CMAKE_CURRENT_SOURCE_DIR}/Messages.sh)

Modified: branches/KDE4_port/Messages.sh
===================================================================
--- branches/KDE4_port/Messages.sh	2007-11-18 21:10:08 UTC (rev 2240)
+++ branches/KDE4_port/Messages.sh	2007-11-18 21:56:42 UTC (rev 2241)
@@ -1,6 +1,19 @@
 #!/bin/sh
+BASEDIR="../rkward/"
 DIR=`pwd`
+
+echo "Extracting messages"
+
 cd ${BASEDIR}
-find . -name '*.cpp' -o -name '*.h' -o -name '*.c' > ${DIR}/infiles.list
-cd $DIR
+find . -name '*.cpp' -o -name '*.h' -o -name '*.c' | sort > ${DIR}/infiles.list
+cd ${DIR}
 xgettext -C -ci18n -ki18n -ktr2i18n -kI18N_NOOP -kI18N_NOOP2 --files-from=infiles.list -D ${BASEDIR} -o rkward.pot
+rm infiles.list
+
+echo "Merging translations"
+
+catalogs=`find . -name '*.po'`
+for cat in $catalogs; do
+  msgmerge -o $cat.new $cat rkward.pot
+  mv $cat.new $cat
+done
\ No newline at end of file


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list