[GRASS-SVN] r44355 - grass/branches/develbranch_6/locale
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Nov 18 09:47:48 EST 2010
Author: marisn
Date: 2010-11-18 06:47:48 -0800 (Thu, 18 Nov 2010)
New Revision: 44355
Modified:
grass/branches/develbranch_6/locale/Makefile
Log:
Extract NVIZ messages to separate message catalog
Modified: grass/branches/develbranch_6/locale/Makefile
===================================================================
--- grass/branches/develbranch_6/locale/Makefile 2010-11-18 14:41:45 UTC (rev 44354)
+++ grass/branches/develbranch_6/locale/Makefile 2010-11-18 14:47:48 UTC (rev 44355)
@@ -21,6 +21,7 @@
# Directory for installing tcl .msg files:
MSG_DIR = $(ARCH_DISTDIR)/etc/msgs
+NVIZ_DIR = $(ARCH_DISTDIR)/etc/nviz2.2/msgs
MO_DIR = $(ARCH_DISTDIR)/locale
PO_DIR = po
@@ -28,12 +29,14 @@
LIBDOMAIN = grasslibs
MODDOMAIN = grassmods
TCLDOMAIN = grasstcl
+NVIZDOMAIN = grassnviz
WXPYDOMAIN = grasswxpy
DOMAINS = $(LIBDOMAIN) $(MODDOMAIN) $(TCLDOMAIN) $(WXPYDOMAIN)
LIB_POTFILES = find ../lib -name '*.c' | xargs grep -l "_(\""
MOD_POTFILES = find ../ -name '*.c' | grep -v '../lib' | xargs grep -l "_(\""
-TCL_POTFILES = find ../ -name '*.tcl' | grep -v '../dist' | xargs grep -l "\\[_ \|\\[G_msg"
+TCL_POTFILES = find ../ -name '*.tcl' ! -path '../dist*' ! -path '../visualization/nviz/*' | xargs grep -l "\\[_ \|\\[G_msg"
+NVIZTCL_POTFILES = find ../visualization/nviz/scripts \( ! -regex '.*/\..*' \) | xargs grep -l "\\[_ \|\\[G_msg"
WXPY_POTFILES = find ../gui/wxpython -name '*.py' | xargs grep -l "_(\""
#The xgettext utility is used to automate the creation of
@@ -49,6 +52,8 @@
xgettext -k_ -o ./templates/$(MODDOMAIN).pot `$(MOD_POTFILES)`
@echo "Generating $(TCLDOMAIN)..."
xgettext -k_ --keyword=G_msg -o ./templates/$(TCLDOMAIN).pot `$(TCL_POTFILES)`
+ @echo "Generating $(NVIZDOMAIN)..."
+ xgettext -k_ --keyword=G_msg -L Tcl -o ./templates/$(NVIZDOMAIN).pot `$(NVIZTCL_POTFILES)`
@echo "Generating $(WXPYDOMAIN)..."
xgettext -k_ -o ./templates/$(WXPYDOMAIN).pot `$(WXPY_POTFILES)`
@@ -89,7 +94,13 @@
MSGFILES := $(patsubst po/grasstcl_%.po,$(MSG_DIR)/%.msg,$(wildcard po/grasstcl_*.po))
+$(NVIZ_DIR)/%.msg: po/grassnviz_%.po
+ @ [ -d $(NVIZ_DIR) ] || $(MKDIR) $(NVIZ_DIR)
+ msgfmt --statistics --tcl -l $* -d $(NVIZ_DIR)/ $<
+
+NVIZFILES := $(patsubst po/grassnviz_%.po,$(NVIZ_DIR)/%.msg,$(wildcard po/grassnviz_*.po))
+
#create binary messages files
-mo: $(libs_FILES) $(mods_FILES) $(wxpy_FILES) $(MSGFILES)
+mo: $(libs_FILES) $(mods_FILES) $(wxpy_FILES) $(MSGFILES) $(NVIZFILES)
.PHONY: mo
More information about the grass-commit
mailing list