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

tfry at users.sourceforge.net tfry at users.sourceforge.net
Mon Nov 19 15:34:00 UTC 2007


Revision: 2250
          http://rkward.svn.sourceforge.net/rkward/?rev=2250&view=rev
Author:   tfry
Date:     2007-11-19 07:33:59 -0800 (Mon, 19 Nov 2007)

Log Message:
-----------
check .po files, and add strings for KAboutData

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

Modified: branches/KDE4_port/po/CMakeLists.txt
===================================================================
--- branches/KDE4_port/po/CMakeLists.txt	2007-11-19 15:24:26 UTC (rev 2249)
+++ branches/KDE4_port/po/CMakeLists.txt	2007-11-19 15:33:59 UTC (rev 2250)
@@ -15,7 +15,7 @@
 		GET_FILENAME_COMPONENT(_lang ${_poFile} NAME_WE)
 		SET(_gmoFile ${CMAKE_CURRENT_BINARY_DIR}/${_lang}.gmo)
 		ADD_CUSTOM_COMMAND(TARGET translations
-			COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o ${_gmoFile} ${_poFile}
+			COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} --check -o ${_gmoFile} ${_poFile}
 			DEPENDS ${_poFile})
 		INSTALL(FILES ${_gmoFile} DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES/ RENAME rkward.mo)
 	ENDFOREACH(_poFile ${PO_FILES})

Modified: branches/KDE4_port/po/Messages.sh
===================================================================
--- branches/KDE4_port/po/Messages.sh	2007-11-19 15:24:26 UTC (rev 2249)
+++ branches/KDE4_port/po/Messages.sh	2007-11-19 15:33:59 UTC (rev 2250)
@@ -1,6 +1,7 @@
 #!/bin/sh
 BASEDIR="../rkward/"	# root of translatable sources
 PROJECT="rkward"	# project name
+BUGADDR="http://sourceforge.net/tracker/?group_id=50231&atid=459007"	# MSGID-Bugs
 WDIR=`pwd`		# working dir
 
 
@@ -9,6 +10,9 @@
 # we use simple sorting to make sure the lines don't jump around too much from system to system
 find . -name '*.rc' -o -name '*.ui' -o -name '*.kcfg' | sort > ${WDIR}/rcfiles.list
 xargs --arg-file=${WDIR}/rcfiles.list extractrc > ${WDIR}/extractedrc.cpp
+# additional string for KAboutData
+echo 'i18nc("NAME OF TRANSLATORS","Your names");' >> ${WDIR}/extractedrc.cpp
+echo 'i18nc("EMAIL OF TRANSLATORS","Your emails");' >> ${WDIR}/extractedrc.cpp
 cd ${WDIR}
 echo "Done preparing rc files"
 
@@ -21,7 +25,7 @@
 cd ${WDIR}
 xgettext --from-code=UTF-8 -C --kde -ci18n -ki18n:1 -ki18nc:1c,2 -ki18np:1,2 -ki18ncp:1c,2,3 -ktr2i18n:1 \
 	-kI18N_NOOP:1 -kI18N_NOOP2:1c,2 -kaliasLocale -kki18n:1 -kki18nc:1c,2 -kki18np:1,2 -kki18ncp:1c,2,3 \
-	--msgid-bugs-address="http://sourceforge.net/tracker/?group_id=50231&atid=459007" \
+	--msgid-bugs-address="${BUGADDR}" \
 	--files-from=infiles.list -D ${BASEDIR} -D ${WDIR} -o ${PROJECT}.pot || { echo "error while calling xgettext. aborting."; exit 1; }
 echo "Done extracting messages"
 


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