[GRASS-SVN] r70817 - grass/trunk/locale

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Apr 1 02:34:12 PDT 2017


Author: marisn
Date: 2017-04-01 02:34:12 -0700 (Sat, 01 Apr 2017)
New Revision: 70817

Modified:
   grass/trunk/locale/Makefile
Log:
Extract strings for translation from python script modules


Modified: grass/trunk/locale/Makefile
===================================================================
--- grass/trunk/locale/Makefile	2017-03-31 19:22:26 UTC (rev 70816)
+++ grass/trunk/locale/Makefile	2017-04-01 09:34:12 UTC (rev 70817)
@@ -34,6 +34,8 @@
 LIB_POTFILES = find ../lib \( -name "*.c" -o -name "*.py" \) | xargs grep -l "_(\"\|n_(\""
 MOD_POTFILES = find ../ -name '*.c' | grep -v '../lib' | xargs grep -l "_(\"\|n_(\""
 WXPY_POTFILES = find ../gui/wxpython -name '*.py' | xargs grep -l "_(\"\|n_(\""
+#For Python script module messages
+MOD_PYFILES = find ../scripts -name '*.py' | xargs grep -l "_(\"\|n_(\""
 
 define po_stats
 GISBASE="$(RUN_GISBASE)" $(PYTHON) ./grass_po_stats.py
@@ -51,6 +53,7 @@
 	xgettext --keyword=_ --keyword=n_:1,2 -cGTC -o ./templates/$(LIBDOMAIN).pot `$(LIB_POTFILES)`
 	@echo "Generating $(MODDOMAIN)..."
 	xgettext --keyword=_ --keyword=n_:1,2 -cGTC -o ./templates/$(MODDOMAIN).pot `$(MOD_POTFILES)`
+	xgettext -j --keyword=_ --keyword=n_:1,2 -cGTC -o ./templates/$(MODDOMAIN).pot `$(MOD_PYFILES)` 
 	@echo "Generating $(WXPYDOMAIN)..."
 	xgettext --keyword=_ --keyword=n_:1,2 -cGTC -o ./templates/$(WXPYDOMAIN).pot `$(WXPY_POTFILES)` 
 



More information about the grass-commit mailing list