4 DTDDIR=../../Open-ILS/web/opac/locale
5 PROPSDIR=../../Open-ILS/xul/staff_client/chrome/locale
6 PROGRESS=--progress none
8 # This Makefile can be used to generate and update PO files for Evergreen,
9 # as well as generate updated DTD and JavaScript property files from the PO.
13 # To create a new set of untranslated PO files for locale ll-LL:
14 # make LOCALE=ll-LL newpo
16 # To create a new set of POT files from the en-US source:
17 # make LOCALE=ll-LL newpot
19 # To update a set of translated PO files with new or changed en-US strings:
20 # make LOCALE=ll-LL updatepo
22 newpo: dtds2po props2po
23 @echo "Generated new PO files for locale $(LOCALE)"
25 newpot: dtds2pot props2pot
26 @echo "Generated new POT files"
28 newproject: po2dtds po2props
29 @echo "Generated newly translated project files for locale $(LOCALE)"
31 updatepo: update_po_dtds update_po_props
32 @echo "Updated PO files for locale $(LOCALE)"
34 updateproject: update_moz_dtds update_moz_props
35 @echo "Updated translated project files for locale $(LOCALE)"
38 @moz2po $(PROGRESS) -o $(POOUTDIR)/$(LOCALE) -i $(DTDDIR)/en-US/ 2>&1
41 @moz2po $(PROGRESS) -o $(POOUTDIR)/$(LOCALE) -i $(PROPSDIR)/en-US/ 2>&1
44 @moz2po -P $(PROGRESS) -o $(POOUTDIR) -i $(DTDDIR)/en-US/ 2>&1
47 @moz2po -P $(PROGRESS) -o $(POOUTDIR) -i $(PROPSDIR)/en-US/ 2>&1
51 @moz2po $(PROGRESS) -o $(POOUTDIR)/$(LOCALE) -t $(DTDDIR)/en-US/ -i $(DTDDIR)/$(LOCALE)/ 2>&1
54 @moz2po $(PROGRESS) -o $(POOUTDIR)/$(LOCALE) -t $(PROPSDIR)/en-US/ -i $(PROPSDIR)/$(LOCALE)/ 2>&1
57 @po2moz $(PROGRESS) -o locale/$(LOCALE) -t $(DTDDIR)/en-US/ -i $(POINDIR)/$(LOCALE) 2>&1
60 @po2moz $(PROGRESS) -o locale/$(LOCALE) -t $(PROPSDIR)/en-US/ -i $(POINDIR)/$(LOCALE) 2>&1
63 @po2moz $(PROGRESS) -o locale/$(LOCALE) -t $(DTDDIR)/en-US/ -i $(POINDIR)/$(LOCALE) 2>&1
66 @po2moz $(PROGRESS) -o locale/$(LOCALE) -t $(PROPSDIR)/en-US/ -i $(POINDIR)/$(LOCALE) 2>&1