[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5275 - in trunk: gnue-appserver/po gnue-common gnue-common/doc/technote
From: |
reinhard |
Subject: |
r5275 - in trunk: gnue-appserver/po gnue-common gnue-common/doc/technotes gnue-common/po gnue-common/src/setup gnue-designer/po gnue-forms/po gnue-navigator/po gnue-reports/po |
Date: |
Tue, 9 Mar 2004 01:56:01 -0600 (CST) |
Author: reinhard
Date: 2004-03-09 01:55:58 -0600 (Tue, 09 Mar 2004)
New Revision: 5275
Modified:
trunk/gnue-appserver/po/Makefile
trunk/gnue-common/doc/technotes/00002.txt
trunk/gnue-common/po/Makefile
trunk/gnue-common/setup-cvs.py
trunk/gnue-common/setup.py
trunk/gnue-common/src/setup/GSetup.py
trunk/gnue-designer/po/Makefile
trunk/gnue-forms/po/Makefile
trunk/gnue-navigator/po/Makefile
trunk/gnue-reports/po/Makefile
Log:
Regenerate .po files only on special request.
Modified: trunk/gnue-appserver/po/Makefile
===================================================================
--- trunk/gnue-appserver/po/Makefile 2004-03-09 07:12:54 UTC (rev 5274)
+++ trunk/gnue-appserver/po/Makefile 2004-03-09 07:55:58 UTC (rev 5275)
@@ -10,10 +10,11 @@
.SUFFIXES:
.SUFFIXES: .po .gmo
-all: clean $(POFILES) $(GMOFILES)
+gmo: $(GMOFILES)
-clean:
+update-po:
rm -f STATISTICS $(POTFILE) $(GMOFILES)
+ make $(POFILES)
$(POTFILE):
cd ../src; $(XGETTEXT) --output=../po/$(POTFILE) `find * -name '*.py'`
@@ -21,8 +22,8 @@
%.po: $(POTFILE)
msgmerge address@hidden $@ $(POTFILE) && mv address@hidden $@
-.po.gmo:
+%.gmo:
echo -n "$*: " >> STATISTICS
- (LANGUAGE=C msgfmt --statistics --output-file=$@ $< 2>&1) | grep
translated >> STATISTICS
+ (LANGUAGE=C msgfmt --statistics --output-file=$@ $*.po 2>&1) | grep
translated >> STATISTICS
-.PHONY: all clean
+.PHONY: gmo update-po
Modified: trunk/gnue-common/doc/technotes/00002.txt
===================================================================
--- trunk/gnue-common/doc/technotes/00002.txt 2004-03-09 07:12:54 UTC (rev
5274)
+++ trunk/gnue-common/doc/technotes/00002.txt 2004-03-09 07:55:58 UTC (rev
5275)
@@ -34,13 +34,13 @@
That's how it works:
* Install the gettext package.
- * Enter the po/ directory and type "make".
+ * Enter the po/ directory and type "make update-po".
* For language with existing translations, you will find a file named
<language>.po which will be updated from the current sources. Fill in the
missing translations.
* For languages with no existing translations, copy the file *.pot to
<language.po>. Fill in the translations there.
- * If your .po files are done, re-run "make" to update the .gmo files. They
+ * If your .po files are done, run "make gmo" to update the .gmo files. They
get installed on "setup.py install" or on "setup-cvs.py".
Modified: trunk/gnue-common/po/Makefile
===================================================================
--- trunk/gnue-common/po/Makefile 2004-03-09 07:12:54 UTC (rev 5274)
+++ trunk/gnue-common/po/Makefile 2004-03-09 07:55:58 UTC (rev 5275)
@@ -10,10 +10,11 @@
.SUFFIXES:
.SUFFIXES: .po .gmo
-all: clean $(POFILES) $(GMOFILES)
+gmo: $(GMOFILES)
-clean:
+update-po:
rm -f STATISTICS $(POTFILE) $(GMOFILES)
+ make $(POFILES)
$(POTFILE):
cd ../src; $(XGETTEXT) --output=../po/$(POTFILE) `find * -name '*.py'`
@@ -21,8 +22,8 @@
%.po: $(POTFILE)
msgmerge address@hidden $@ $(POTFILE) && mv address@hidden $@
-.po.gmo:
+%.gmo:
echo -n "$*: " >> STATISTICS
- (LANGUAGE=C msgfmt --statistics --output-file=$@ $< 2>&1) | grep
translated >> STATISTICS
+ (LANGUAGE=C msgfmt --statistics --output-file=$@ $*.po 2>&1) | grep
translated >> STATISTICS
-.PHONY: all clean
+.PHONY: gmo update-po
Modified: trunk/gnue-common/setup-cvs.py
===================================================================
--- trunk/gnue-common/setup-cvs.py 2004-03-09 07:12:54 UTC (rev 5274)
+++ trunk/gnue-common/setup-cvs.py 2004-03-09 07:55:58 UTC (rev 5275)
@@ -431,12 +431,12 @@
rm -f sample.*
ln -f -s %(CVSDIR)s/gnue-common/etc/sample.* .
- rm -rf %(CONFDIR)s/share/locale
+ rm -rf %(CONFDIR)s/share/locale/*
cd %(CONFDIR)s/share/locale
for i in %(CVSDIR)s/*; do
package=`basename $i`
if [ -d $i/po ]; then
- (cd $i/po; make)
+ (cd $i/po; make -s gmo)
for j in $i/po/*.gmo; do
language=`basename $j .gmo`
mkdir -p %(CONFDIR)s/share/locale/${language}/LC_MESSAGES
Modified: trunk/gnue-common/setup.py
===================================================================
--- trunk/gnue-common/setup.py 2004-03-09 07:12:54 UTC (rev 5274)
+++ trunk/gnue-common/setup.py 2004-03-09 07:55:58 UTC (rev 5275)
@@ -123,7 +123,7 @@
# build translations
if os.path.isdir ('po'):
print "building translations"
- if os.system ("cd po && make") != 0:
+ if os.system ("cd po && make update-po gmo") != 0:
sys.exit (1)
# -----------------------------------------------------------------------------
Modified: trunk/gnue-common/src/setup/GSetup.py
===================================================================
--- trunk/gnue-common/src/setup/GSetup.py 2004-03-09 07:12:54 UTC (rev
5274)
+++ trunk/gnue-common/src/setup/GSetup.py 2004-03-09 07:55:58 UTC (rev
5275)
@@ -196,7 +196,7 @@
# build translations
if os.path.isdir ('po'):
print "building translations"
- if os.system ("cd po && make") != 0:
+ if os.system ("cd po && make update-po gmo") != 0:
sys.exit (1)
# -------------------------------------------------------------------------
Modified: trunk/gnue-designer/po/Makefile
===================================================================
--- trunk/gnue-designer/po/Makefile 2004-03-09 07:12:54 UTC (rev 5274)
+++ trunk/gnue-designer/po/Makefile 2004-03-09 07:55:58 UTC (rev 5275)
@@ -10,10 +10,11 @@
.SUFFIXES:
.SUFFIXES: .po .gmo
-all: clean $(POFILES) $(GMOFILES)
+gmo: $(GMOFILES)
-clean:
+update-po:
rm -f STATISTICS $(POTFILE) $(GMOFILES)
+ make $(POFILES)
$(POTFILE):
cd ../src; $(XGETTEXT) --output=../po/$(POTFILE) `find * -name '*.py'`
@@ -21,8 +22,8 @@
%.po: $(POTFILE)
msgmerge address@hidden $@ $(POTFILE) && mv address@hidden $@
-.po.gmo:
+%.gmo:
echo -n "$*: " >> STATISTICS
- (LANGUAGE=C msgfmt --statistics --output-file=$@ $< 2>&1) | grep
translated >> STATISTICS
+ (LANGUAGE=C msgfmt --statistics --output-file=$@ $*.po 2>&1) | grep
translated >> STATISTICS
-.PHONY: all clean
+.PHONY: gmo update-po
Modified: trunk/gnue-forms/po/Makefile
===================================================================
--- trunk/gnue-forms/po/Makefile 2004-03-09 07:12:54 UTC (rev 5274)
+++ trunk/gnue-forms/po/Makefile 2004-03-09 07:55:58 UTC (rev 5275)
@@ -10,10 +10,11 @@
.SUFFIXES:
.SUFFIXES: .po .gmo
-all: clean $(POFILES) $(GMOFILES)
+gmo: $(GMOFILES)
-clean:
+update-po:
rm -f STATISTICS $(POTFILE) $(GMOFILES)
+ make $(POFILES)
$(POTFILE):
cd ../src; $(XGETTEXT) --output=../po/$(POTFILE) `find * -name '*.py'`
@@ -21,8 +22,8 @@
%.po: $(POTFILE)
msgmerge address@hidden $@ $(POTFILE) && mv address@hidden $@
-.po.gmo:
+%.gmo:
echo -n "$*: " >> STATISTICS
- (LANGUAGE=C msgfmt --statistics --output-file=$@ $< 2>&1) | grep
translated >> STATISTICS
+ (LANGUAGE=C msgfmt --statistics --output-file=$@ $*.po 2>&1) | grep
translated >> STATISTICS
-.PHONY: all clean
+.PHONY: gmo update-po
Modified: trunk/gnue-navigator/po/Makefile
===================================================================
--- trunk/gnue-navigator/po/Makefile 2004-03-09 07:12:54 UTC (rev 5274)
+++ trunk/gnue-navigator/po/Makefile 2004-03-09 07:55:58 UTC (rev 5275)
@@ -10,10 +10,11 @@
.SUFFIXES:
.SUFFIXES: .po .gmo
-all: clean $(POFILES) $(GMOFILES)
+gmo: $(GMOFILES)
-clean:
+update-po:
rm -f STATISTICS $(POTFILE) $(GMOFILES)
+ make $(POFILES)
$(POTFILE):
cd ../src; $(XGETTEXT) --output=../po/$(POTFILE) `find * -name '*.py'`
@@ -21,8 +22,8 @@
%.po: $(POTFILE)
msgmerge address@hidden $@ $(POTFILE) && mv address@hidden $@
-.po.gmo:
+%.gmo:
echo -n "$*: " >> STATISTICS
- (LANGUAGE=C msgfmt --statistics --output-file=$@ $< 2>&1) | grep
translated >> STATISTICS
+ (LANGUAGE=C msgfmt --statistics --output-file=$@ $*.po 2>&1) | grep
translated >> STATISTICS
-.PHONY: all clean
+.PHONY: gmo update-po
Modified: trunk/gnue-reports/po/Makefile
===================================================================
--- trunk/gnue-reports/po/Makefile 2004-03-09 07:12:54 UTC (rev 5274)
+++ trunk/gnue-reports/po/Makefile 2004-03-09 07:55:58 UTC (rev 5275)
@@ -10,10 +10,11 @@
.SUFFIXES:
.SUFFIXES: .po .gmo
-all: clean $(POFILES) $(GMOFILES)
+gmo: $(GMOFILES)
-clean:
+update-po:
rm -f STATISTICS $(POTFILE) $(GMOFILES)
+ make $(POFILES)
$(POTFILE):
cd ../src; $(XGETTEXT) --output=../po/$(POTFILE) `find * -name '*.py'`
@@ -21,8 +22,8 @@
%.po: $(POTFILE)
msgmerge address@hidden $@ $(POTFILE) && mv address@hidden $@
-.po.gmo:
+%.gmo:
echo -n "$*: " >> STATISTICS
- (LANGUAGE=C msgfmt --statistics --output-file=$@ $< 2>&1) | grep
translated >> STATISTICS
+ (LANGUAGE=C msgfmt --statistics --output-file=$@ $*.po 2>&1) | grep
translated >> STATISTICS
-.PHONY: all clean
+.PHONY: gmo update-po
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5275 - in trunk: gnue-appserver/po gnue-common gnue-common/doc/technotes gnue-common/po gnue-common/src/setup gnue-designer/po gnue-forms/po gnue-navigator/po gnue-reports/po,
reinhard <=