diff options
author | Cristian Gafton <gafton@redhat.com> | 2000-02-04 17:04:21 +0000 |
---|---|---|
committer | Cristian Gafton <gafton@redhat.com> | 2000-02-04 17:04:21 +0000 |
commit | b967ed6fdad2d9e84aff9779c6071a3877a054ea (patch) | |
tree | 48e13296c7269db6914a3cefecbf496d1219431f /po/Makefile | |
parent | 772f2240d32e1904a62bcadc5eec631c2adf4f40 (diff) | |
download | anaconda-b967ed6fdad2d9e84aff9779c6071a3877a054ea.tar.gz anaconda-b967ed6fdad2d9e84aff9779c6071a3877a054ea.tar.xz anaconda-b967ed6fdad2d9e84aff9779c6071a3877a054ea.zip |
Only merge long lines on asian laguages
Diffstat (limited to 'po/Makefile')
-rw-r--r-- | po/Makefile | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/po/Makefile b/po/Makefile index a5b34a892..9141e53b9 100644 --- a/po/Makefile +++ b/po/Makefile @@ -4,12 +4,14 @@ INSTALL_DATA= ${INSTALL} -m 644 PREFIX=$(DESTDIR)/ INSTALLNLSDIR=usr/share/locale -MSGMERGE = msgmerge -w 9999999 +MSGMERGE = msgmerge +LONG_MERGE = -w 9999999 NLSPACKAGE = anaconda -CATALOGS = $(shell ls *.po) -FMTCATALOGS = $(patsubst %.po,%.mo,$(CATALOGS)) +LONG_PO = ja.po ko.po zh.po +SHORT_PO = $(filter-out $(LONG_PO), $(wildcard *.po)) +FMTCATALOGS = $(patsubst %.po,%.mo,$(SHORT_PO) $(LONG_PO)) POTFILES = ../*.py ../iw/*.py ../textw/*.py \ ../libfdisk/*.c ../loader/*.c @@ -26,10 +28,10 @@ $(NLSPACKAGE).pot: $(POTFILES) fi -update-po: Makefile - $(MAKE) $(NLSPACKAGE).pot - catalogs='$(CATALOGS)'; \ - for cat in $$catalogs; do \ +update-po: Makefile $(NLSPACKAGE).pot refresh-po + +refresh-po: Makefile + for cat in $(SHORT_PO); do \ lang=`basename $$cat .po`; \ if $(MSGMERGE) $$lang.po $(NLSPACKAGE).pot > $$lang.pot ; then \ mv -f $$lang.pot $$lang.po ; \ @@ -39,16 +41,13 @@ update-po: Makefile rm -f $$lang.pot ; \ fi \ done - -refresh-po: Makefile - catalogs='$(CATALOGS)'; \ - for cat in $$catalogs; do \ + for cat in $(LONG_PO); do \ lang=`basename $$cat .po`; \ - if $(MSGMERGE) $$lang.po $(NLSPACKAGE).pot > $$lang.pot ; then \ + if $(MSGMERGE) $(LONG_MERGE) $$lang.po $(NLSPACKAGE).pot > $$lang.pot ; then \ mv -f $$lang.pot $$lang.po ; \ - echo "$(MSGMERGE) of $$lang succeeded" ; \ + echo "$(MSGMERGE) $(LONG_MERGE) of $$lang succeeded" ; \ else \ - echo "$(MSGMERGE) of $$lang failed" ; \ + echo "$(MSGMERGE) $(LONG_MERGE) of $$lang failed" ; \ rm -f $$lang.pot ; \ fi \ done |