#PerlSetVar OILSWebMediaPrefix "static.example.com/media"
#PerlSetVar OILSWebMediaPrefix "http://static.example.com/media"
- # Locale messages files
+ # Locale messages files:
+ #
+ # These appear in pairs; the first represents the user agent
+ # Accept-Language header locale, and the second represents
+ # the fully-qualified path for the corresponding PO file that
+ # contains the messages.
+ #
+ # If you enable two or more locales, then users will be able to
+ # select their preferred locale from a locale picker in the TPAC.
+ #
#PerlAddVar OILSWebLocale "en"
#PerlAddVar OILSWebLocale "/openils/var/data/locale/messages.en.po"
#PerlAddVar OILSWebLocale "en_ca"
- #PerlAddVar OILSWebLocale "/openils/var/data/locale/messages.en_ca.po"
+ #PerlAddVar OILSWebLocale "/openils/var/data/locale/en-CA.po"
#PerlAddVar OILSWebLocale "fr_ca"
- #PerlAddVar OILSWebLocale "/openils/var/data/locale/messages.fr_ca.po"
+ #PerlAddVar OILSWebLocale "/openils/var/data/locale/fr-CA.po"
# Templates will be loaded from the following paths in reverse order.
PerlAddVar OILSWebTemplatePath "/openils/var/templates"
SUBDIRS = $(OILSCORE_DIRS) $(OILSWEB_DIR) $(OILSPYTHON_DIR) $(OILSJAVA_DIR)
EXTRA_DIST = @srcdir@/perlmods \
+ @srcdir@/data \
@srcdir@/templates \
@top_srcdir@/Open-ILS/xsl \
@srcdir@/cgi-bin \
$(MKDIR_P) $(DESTDIR)$(TEMPLATEDIR)
@echo "Installing templates to $(DESTDIR)$(TEMPLATEDIR)"
cp -r @srcdir@/templates/* $(DESTDIR)$(TEMPLATEDIR)
+ $(MKDIR_P) $(DESTDIR)$(datadir)/locale/
+ @echo "Installing template data files to $(datadir)/locale/"
+ cp @srcdir@/data/locale/* $(datadir)/locale/
$(MKDIR_P) $(DESTDIR)$(datadir)/overdue/
sed -i 's|LOCALSTATEDIR|@localstatedir@|g' '$(DESTDIR)@sysconfdir@/oils_sip.xml.example'
sed -i 's|SYSCONFDIR|@sysconfdir@|g' '$(DESTDIR)@sysconfdir@/oils_sip.xml.example'
DTDDIR=../../Open-ILS/web/opac/locale
CHROME_PROPSDIR=../../Open-ILS/xul/staff_client/chrome/locale
SERVER_PROPSDIR=../../Open-ILS/xul/staff_client/server/locale
+TT2_DATA_DIR=../../Open-ILS/src/data/locale
DOJO_LOCALE := $(shell echo ${LOCALE} | tr '[:upper:]' '[:lower:]')
DOJO_ACQ_SRC=../../Open-ILS/web/js/dojo/openils/acq/nls
DOJO_ACTOR_SRC=../../Open-ILS/web/js/dojo/openils/actor/nls
cp $(PROJECT)/$(LOCALE)/Searcher.js $(DOJO_WIDGET_SRC)/$(DOJO_LOCALE)/Searcher.js
cp $(PROJECT)/$(LOCALE)/TranslatorPopup.js $(DOJO_WIDGET_SRC)/$(DOJO_LOCALE)/TranslatorPopup.js
cp $(PROJECT)/$(LOCALE)/XULTermLoader.js $(DOJO_WIDGET_SRC)/$(DOJO_LOCALE)/XULTermLoader.js
+ mkdir -p $(TT2_DATA_DIR)
+ cp $(PO)/tpac/$(LOCALE).po $(TT2_DATA_DIR)/.
install_all_locales: newpot
for i in `ls po/*/*po|grep -v en-US | cut -f3 -d'/' | cut -f1 -d. | sort | uniq`; \