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

tfry at users.sourceforge.net tfry at users.sourceforge.net
Mon Nov 19 15:24:26 UTC 2007


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

Log Message:
-----------
Some corrections

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 00:52:23 UTC (rev 2248)
+++ branches/KDE4_port/po/CMakeLists.txt	2007-11-19 15:24:26 UTC (rev 2249)
@@ -1,7 +1,10 @@
 FIND_PROGRAM(GETTEXT_MSGFMT_EXECUTABLE msgfmt)
 
 IF(NOT GETTEXT_MSGFMT_EXECUTABLE)
-	MESSAGE("msgfmt not found. Translations will *not* be installed")
+	MESSAGE(
+"------
+                 NOTE: msgfmt not found. Translations will *not* be installed
+------")
 ELSE(NOT GETTEXT_MSGFMT_EXECUTABLE)
 
 	ADD_CUSTOM_TARGET(translations ALL)
@@ -9,12 +12,12 @@
 	FILE(GLOB PO_FILES *.po)
 	
 	FOREACH(_poFile ${PO_FILES})
-		GET_FILENAME_COMPONENT(_basename ${_poFile} NAME_WE)
-		SET(_gmoFile ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.gmo)
+		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}
 			DEPENDS ${_poFile})
-		INSTALL(FILES ${_gmoFile} DESTINATION ${LOCALE_INSTALL_DIR}/${_basename}/LC_MESSAGES/ RENAME ${_basename}.mo)
+		INSTALL(FILES ${_gmoFile} DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES/ RENAME rkward.mo)
 	ENDFOREACH(_poFile ${PO_FILES})
 
-ENDIF(NOT GETTEXT_MSGFMT_EXECUTABLE)
\ No newline at end of file
+ENDIF(NOT GETTEXT_MSGFMT_EXECUTABLE)

Modified: branches/KDE4_port/po/Messages.sh
===================================================================
--- branches/KDE4_port/po/Messages.sh	2007-11-19 00:52:23 UTC (rev 2248)
+++ branches/KDE4_port/po/Messages.sh	2007-11-19 15:24:26 UTC (rev 2249)
@@ -19,10 +19,10 @@
 find . -name '*.cpp' -o -name '*.h' -o -name '*.c' | sort > ${WDIR}/infiles.list
 echo "extractedrc.cpp" >> ${WDIR}/infiles.list
 cd ${WDIR}
-xgettext --from-code=UTF-8 -C -ci18n -ki18n:1 -ki18nc:1c,2 -ki18np:1,2 -ki18ncp:1c,2,3 -ktr2i18n:1 \
+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" \
-	--files-from=infiles.list -D ${BASEDIR} -D ${WDIR} -o ${PROJECT}.pot
+	--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