From 691041c7e78fc3c868d93c853b48c02e6b562eaa Mon Sep 17 00:00:00 2001 From: dbs Date: Tue, 9 Sep 2008 13:47:06 +0000 Subject: [PATCH] This is the new automake world, so get rid of the old Makefile git-svn-id: svn://svn.open-ils.org/ILS/trunk@10564 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- build/i18n/Makefile | 130 ------------------------------------------------- build/i18n/Makefile.in | 1 + 2 files changed, 1 insertion(+), 130 deletions(-) delete mode 100644 build/i18n/Makefile diff --git a/build/i18n/Makefile b/build/i18n/Makefile deleted file mode 100644 index 30d2e687c8..0000000000 --- a/build/i18n/Makefile +++ /dev/null @@ -1,130 +0,0 @@ -POTSRC=po/en-US -POOUTDIR=po -POINDIR=po -PROJECT=locale -LOCALE=fr-CA -DTDDIR=../../Open-ILS/web/opac/locale -CHROME_PROPSDIR=../../Open-ILS/xul/staff_client/chrome/locale -SERVER_PROPSDIR=../../Open-ILS/xul/staff_client/server/locale -FMIDLSRC=../../Open-ILS/examples/fm_IDL.xml -FMIDLOUT=fm_IDL.pot -FMIDLENT=fm_IDL.xml -FMIDLENTITY=fm_IDL.xml.ent -FMIDLPO=fm_IDL.po -EVTSRC=../../Open-ILS/src/extras/ils_events.xml -EVTOUT=ils_events.xml.pot -EVTPO=ils_events.xml.po -EVTXML=ils_events.xml -SQLSRC=../../Open-ILS/src/sql/Pg/950.data.seed-values.sql -SQLPOT=db.seed.pot -SQLPO=db.seed.po -SQLOUT=950.data.seed-values.sql -PROGRESS=--progress none - -# This Makefile can be used to generate and update PO files for Evergreen, -# as well as generate updated SQL, fieldmapper IDL, DTD and JavaScript -# property files from the PO. -# -# Usage: -# -# To create a new set of untranslated PO files for locale ll-LL: -# make LOCALE=ll-LL newpo -# -# To create a new set of POT files from the en-US source: -# make LOCALE=ll-LL newpot -# -# To update a set of translated PO files with new or changed en-US strings: -# make LOCALE=ll-LL updatepo -# -# To create a set of translated project files (DTDs, JavaScript message catalogs): -# make LOCALE=ll-LL project -# -# To install a set of translated project files: -# make LOCALE=ll-LL install - -# Generate PO files from all POT files in POOUTDIR for locale LOCALE -newpo: - @pot2po $(PROGRESS) -i $(POTSRC) -o $(POOUTDIR)/$(LOCALE) - @echo "Generated new PO files for locale $(LOCALE)" - -# Generate a new set of POT files and entityized fieldmapper IDL -newpot: dtds2pot fmidl2pot fmidl2fmidlent ils2pot props2pot sql2pot - @echo "Generated new POT files" - -# Generate DTD, JavaScript message catalogs, fieldmapper IDL, -# and SQL insert files from PO for locale LOCALE -project: po2dtds po2props po2sql fmidlpo2entity po2ils - @echo "Generated project files for locale $(LOCALE)" - -# Update PO files with new and changed strings from POT files -updatepo: - pot2po $(PROGRESS) -o $(POOUTDIR)/$(LOCALE) -i $(POTSRC) -t $(POOUTDIR)/$(LOCALE) 2>&1 - @echo "Updated PO files for locale $(LOCALE)" - -# Update PO files with new and changed strings from POT files -updateopac: - @msgmerge -U $(POOUTDIR)/$(LOCALE)/opac.dtd.po $(POTSRC)/opac.dtd.pot 2>&1 - @echo "Updated PO file opac.dtd.po for locale $(LOCALE)" - -dtds2po: - @moz2po $(PROGRESS) -o $(POOUTDIR)/$(LOCALE) -i $(DTDDIR)/en-US/ 2>&1 - -props2po: - @moz2po $(PROGRESS) -o $(POOUTDIR)/$(LOCALE) -i $(CHROME_PROPSDIR)/en-US/ 2>&1 - @moz2po $(PROGRESS) -o $(POOUTDIR)/$(LOCALE) -i $(SERVER_PROPSDIR)/en-US/ 2>&1 - -dtds2pot: - @moz2po -P $(PROGRESS) -o $(POTSRC) -i $(DTDDIR)/en-US/ 2>&1 - -ils2pot: - @scripts/ils_events.py --pot $(EVTSRC) --output $(POTSRC)/$(EVTOUT) - -po2ils: - @scripts/ils_events.py --create $(POINDIR)/$(LOCALE)/$(EVTPO) --locale $(LOCALE) --output $(PROJECT)/$(LOCALE)/$(EVTXML) - -props2pot: - @moz2po -P $(PROGRESS) -o $(POTSRC) -i $(CHROME_PROPSDIR)/en-US/ 2>&1 - @moz2po -P $(PROGRESS) -o $(POTSRC) -i $(SERVER_PROPSDIR)/en-US/ 2>&1 - -po2dtds: - @po2moz $(PROGRESS) -o $(PROJECT)/$(LOCALE) -t $(DTDDIR)/en-US/ -i $(POINDIR)/$(LOCALE) 2>&1 - -po2props: - @po2moz $(PROGRESS) -o $(PROJECT)/$(LOCALE) -t $(CHROME_PROPSDIR)/en-US/ -i $(POINDIR)/$(LOCALE) 2>&1 - @po2moz $(PROGRESS) -o $(PROJECT)/$(LOCALE) -t $(SERVER_PROPSDIR)/en-US/ -i $(POINDIR)/$(LOCALE) 2>&1 - -sql2pot: - @scripts/db-seed-i18n.py --pot $(SQLSRC) --output $(POTSRC)/$(SQLPOT) - -po2sql: - scripts/db-seed-i18n.py --sql $(POINDIR)/$(LOCALE)/$(SQLPO) --locale $(LOCALE) --output $(PROJECT)/$(LOCALE)/$(SQLOUT) - -# Generate a fieldmapper IDL file that uses entities instead of hard-coded strings -fmidl2fmidlent: - @scripts/fieldmapper.py --convert $(FMIDLSRC) --output $(POOUTDIR)/$(FMIDLENT) - -# Generate a POT file for translating the entity values -fmidl2pot: - @scripts/fieldmapper.py --pot $(FMIDLSRC) --output $(POTSRC)/$(FMIDLOUT) - -# Generate a set of entity declarations from a PO file -fmidlpo2entity: - @scripts/fieldmapper.py --entity $(POINDIR)/$(LOCALE)/$(FMIDLPO) --output $(PROJECT)/$(LOCALE)/$(FMIDLENTITY) - -# Install updated project files to their corresponding location in the source tree -install: updatepo project - mkdir -p $(CHROME_PROPSDIR)/$(LOCALE) - cp $(PROJECT)/$(LOCALE)/auth.properties $(CHROME_PROPSDIR)/$(LOCALE)/. - cp $(PROJECT)/$(LOCALE)/offline.properties $(CHROME_PROPSDIR)/$(LOCALE)/. - mkdir -p $(SERVER_PROPSDIR)/$(LOCALE) - cp $(PROJECT)/$(LOCALE)/admin.properties $(SERVER_PROPSDIR)/$(LOCALE)/. - cp $(PROJECT)/$(LOCALE)/cat.properties $(SERVER_PROPSDIR)/$(LOCALE)/. - cp $(PROJECT)/$(LOCALE)/circ.properties $(SERVER_PROPSDIR)/$(LOCALE)/. - cp $(PROJECT)/$(LOCALE)/common.properties $(SERVER_PROPSDIR)/$(LOCALE)/. - cp $(PROJECT)/$(LOCALE)/multiclass_search_help.html $(SERVER_PROPSDIR)/$(LOCALE)/. - cp $(PROJECT)/$(LOCALE)/patron.properties $(SERVER_PROPSDIR)/$(LOCALE)/. - mkdir -p $(DTDDIR)/$(LOCALE) - cp $(PROJECT)/$(LOCALE)/lang.dtd $(CHROME_PROPSDIR)/$(LOCALE)/ - cp $(PROJECT)/$(LOCALE)/lang.dtd $(DTDDIR)/$(LOCALE)/ - cp $(PROJECT)/$(LOCALE)/opac.dtd $(DTDDIR)/$(LOCALE)/ - diff --git a/build/i18n/Makefile.in b/build/i18n/Makefile.in index 30e176e78e..30d2e687c8 100644 --- a/build/i18n/Makefile.in +++ b/build/i18n/Makefile.in @@ -124,6 +124,7 @@ install: updatepo project cp $(PROJECT)/$(LOCALE)/multiclass_search_help.html $(SERVER_PROPSDIR)/$(LOCALE)/. cp $(PROJECT)/$(LOCALE)/patron.properties $(SERVER_PROPSDIR)/$(LOCALE)/. mkdir -p $(DTDDIR)/$(LOCALE) + cp $(PROJECT)/$(LOCALE)/lang.dtd $(CHROME_PROPSDIR)/$(LOCALE)/ cp $(PROJECT)/$(LOCALE)/lang.dtd $(DTDDIR)/$(LOCALE)/ cp $(PROJECT)/$(LOCALE)/opac.dtd $(DTDDIR)/$(LOCALE)/ -- 2.11.0