diff --git a/Makefile b/Makefile index 33003140..6596ded6 100644 --- a/Makefile +++ b/Makefile @@ -96,7 +96,7 @@ TEMPLATES=default april bxlug codelutin.org cuisine easter-eggs entrouvert.com e RPM_PACKAGE_NAME=python$(PYTHON_VERSION)-tal python$(PYTHON_VERSION)-imaging python$(PYTHON_VERSION)-docutils -.PHONY: help archive clean data-archive dist dist-clean install-create-dir install-glasnost install-data install-extensions install-gtk install-locale install-log install-python-libs install-scripts install-servers install-templates install-web install mo po glasnost.spec rpm rpm-depend uninstall config +.PHONY: help archive clean data-archive dist dist-clean install-create-dir install-glasnost install-data install-extensions install-gtk install-locale install-log install-python-libs install-scripts install-servers install-templates install-web install mo po profiles-xml glasnost.spec rpm rpm-depend uninstall help: @echo @@ -196,13 +196,12 @@ infos-xml: do \ intltool-merge -x po/glasnost-web/ $$F `dirname $$F`/`basename $$F .in`; \ done - + install-create-dir: -mkdir -p "$(DESTDIR)/$(BIN_DIR)" -mkdir -p "$(DESTDIR)/$(DATA_DIR)" -mkdir -p "$(DESTDIR)/$(GLASNOST_DIR)" -mkdir -p "$(DESTDIR)/$(ETC_DIR)" - -mkdir -p "$(DESTDIR)/etc/init.d" -mkdir -p "$(DESTDIR)/$(EXTENSIONS_DIR)" -mkdir -p "$(DESTDIR)/$(LIBS_DIR)" -mkdir -p "$(DESTDIR)/$(LOCALE_DIR)" @@ -214,9 +213,9 @@ install-create-dir: -mkdir -p "$(DESTDIR)/$(TEMPLATES_DIR)" -mkdir -p "$(DESTDIR)/$(WEB_DIR)" -install-glasnost: config +install-glasnost: config profiles-xml @mkdir -p "$(DESTDIR)/$(GLASNOST_DIR)" - -cp $^ "$(DESTDIR)/$(GLASNOST_DIR)"/ + -cp config "$(DESTDIR)/$(GLASNOST_DIR)"/ @if test -e "$(DESTDIR)/$(SBIN_DIR)/$(GLASNOST)"; then \ rm -f "$(DESTDIR)/$(SBIN_DIR)/$(GLASNOST)"; \ else :; fi @@ -234,6 +233,8 @@ install-glasnost: config test ! -e "$(DESTDIR)/$(ETC_DIR)/config" || \ cp "$(DESTDIR)/$(ETC_DIR)/config" "$(DESTDIR)/$(ETC_DIR)/config.save" test -e "$(DESTDIR)/$(ETC_DIR)/config" || cp config "$(DESTDIR)/$(ETC_DIR)/config" + test -d "$(DESTDIR)/$(ETC_DIR)/profiles" || mkdir "$(DESTDIR)/$(ETC_DIR)/profiles" + cp profiles/*.xml "$(DESTDIR)/$(ETC_DIR)/profiles" install-data: @if ! test -e "$(DESTDIR)/$(DATA_DIR)"; then \ @@ -309,7 +310,7 @@ install-templates: infos-xml -mkdir -p "$(DESTDIR)/$(TEMPLATES_DIR)" for F in $(TEMPLATES); \ do \ - (cd templates && tar c --exclude CVS --exclude '*.in' --exclude '*.in.h' $$F) | (cd "$(DESTDIR)/$(TEMPLATES_DIR)" && tar x); \ + (cd templates && $(TAR) c --exclude CVS --exclude '*.in' --exclude '*.in.h' $$F) | (cd "$(DESTDIR)/$(TEMPLATES_DIR)" && $(TAR) x); \ done install-web: @@ -356,6 +357,13 @@ mo: po/glasnost-web/de.po \ msgfmt --statistics -c -v -o locale/fr/LC_MESSAGES/glasnost-web.mo po/glasnost-web/fr.po msgfmt --statistics -c -v -o locale/sv/LC_MESSAGES/glasnost-web.mo po/glasnost-web/sv.po +profiles-xml: + for F in `$(FIND) profiles/ -type f -name '*.xml.in'`; \ + do \ + intltool-merge -x po/glasnost-web/ $$F `dirname $$F`/`basename $$F .in`; \ + done + + talTranslations.py: templates/ ./talGettext.py templates/ > talTranslations.py @@ -372,12 +380,12 @@ po: glasnost-web/ \ cp po/glasnost-web/fi.po po/glasnost-web/fi.pox cp po/glasnost-web/fr.po po/glasnost-web/fr.pox cp po/glasnost-web/sv.po po/glasnost-web/sv.pox - for F in `$(FIND) templates/ -type f -name '*.xml.in'`; \ + for F in `$(FIND) profiles/ templates/ -type f -name '*.xml.in'`; \ do \ intltool-extract --type=gettext/xml $$F; \ done $(GETTEXT) -d po/glasnost-web/messages -k N_ `$(FIND) $^ -type f -name "*.py"` \ - `$(FIND) templates/ -type f -name '*.xml.in.h'` + `$(FIND) profiles/ templates/ -type f -name '*.xml.in.h'` msgmerge -o po/glasnost-web/de.po -D po/glasnost-web de.pox messages.pot msgmerge -o po/glasnost-web/es.po -D po/glasnost-web es.pox messages.pot msgmerge -o po/glasnost-web/fi.po -D po/glasnost-web fi.pox messages.pot diff --git a/README.config b/README.config index a331af25..bc2586d7 100644 --- a/README.config +++ b/README.config @@ -37,9 +37,6 @@ UseBalloonHelp = true # Cache files? (boolean, default: false) CacheFiles = false -# Domains to use for translations going through gettext (don't change) -GettextDomains = glasnost-web - Per dispatcher options ---------------------- @@ -80,9 +77,6 @@ Debug: DisableSpellchecking: Disable spellchecking (used in