projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Logistic Regression: Calculate the logs of the likelihood instead of the raw value.
[pspp]
/
po
/
automake.mk
diff --git
a/po/automake.mk
b/po/automake.mk
index e7b130963647ebf9e672570d381ae7d0b970269a..557206c429fc3efb3face3b3a362cb4064e4b2a9 100644
(file)
--- a/
po/automake.mk
+++ b/
po/automake.mk
@@
-4,7
+4,17
@@
XGETTEXT=xgettext
MSGMERGE=msgmerge
MSGFMT=msgfmt
MSGMERGE=msgmerge
MSGFMT=msgfmt
-POFILES=po/en_GB.po po/nl.po po/pt_BR.po
+POFILES = \
+ po/ca.po \
+ po/cs.po \
+ po/de.po \
+ po/en_GB.po \
+ po/es.po \
+ po/fr.po \
+ po/lt.po \
+ po/nl.po \
+ po/sl.po \
+ po/pt_BR.po
POTFILE=po/$(DOMAIN).pot
POTFILE=po/$(DOMAIN).pot
@@
-15,16
+25,23
@@
XGETTEXT_OPTIONS = \
--package-name=$(PACKAGE) \
--package-version=$(VERSION) \
--msgid-bugs-address=$(MSGID_BUGS_ADDRESS) \
--package-name=$(PACKAGE) \
--package-version=$(VERSION) \
--msgid-bugs-address=$(MSGID_BUGS_ADDRESS) \
+ --from-code=UTF-8 \
--add-comments='TRANSLATORS:'
--add-comments='TRANSLATORS:'
-$(POTFILE): $(TRANSLATABLE_FILES) $(UI_FILES)
+$(POTFILE): $(TRANSLATABLE_FILES) $(UI_FILES)
src/ui/gui/gen-dot-desktop.sh
@$(MKDIR_P) po
$(XGETTEXT) --directory=$(top_srcdir) $(XGETTEXT_OPTIONS) $(TRANSLATABLE_FILES) --language=C --keyword=_ --keyword=N_ -o $@
$(XGETTEXT) --directory=$(top_srcdir) $(XGETTEXT_OPTIONS) -j $(UI_FILES) --language=glade -o $@
@$(MKDIR_P) po
$(XGETTEXT) --directory=$(top_srcdir) $(XGETTEXT_OPTIONS) $(TRANSLATABLE_FILES) --language=C --keyword=_ --keyword=N_ -o $@
$(XGETTEXT) --directory=$(top_srcdir) $(XGETTEXT_OPTIONS) -j $(UI_FILES) --language=glade -o $@
+ $(XGETTEXT) --directory=$(top_srcdir) $(XGETTEXT_OPTIONS) -j src/ui/gui/gen-dot-desktop.sh --language=shell --keyword=TRANSLATE -o $@
$(POFILES): $(POTFILE)
$(MSGMERGE) $(top_srcdir)/$@ $? -o $@
$(POFILES): $(POTFILE)
$(MSGMERGE) $(top_srcdir)/$@ $? -o $@
+ if test -e $(top_srcdir)/$@,aux ; then \
+ touch $@ ; \
+ msgcat --use-first $(top_srcdir)/$@,aux $@ -o $@; \
+ fi ;
+
SUFFIXES += .po .gmo
SUFFIXES += .po .gmo
@@
-40,7
+57,8
@@
ALL_LOCAL += $(GMOFILES)
install-data-hook: $(GMOFILES)
for f in $(GMOFILES); do \
lang=`echo $$f | sed -e 's%po/\(.*\)\.gmo%\1%' ` ; \
install-data-hook: $(GMOFILES)
for f in $(GMOFILES); do \
lang=`echo $$f | sed -e 's%po/\(.*\)\.gmo%\1%' ` ; \
- $(INSTALL) -D $$f $(DESTDIR)$(prefix)/share/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo ; \
+ $(MKDIR_P) $(DESTDIR)$(prefix)/share/locale/$$lang/LC_MESSAGES; \
+ $(INSTALL_DATA) $$f $(DESTDIR)$(prefix)/share/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo ; \
done
uninstall-hook:
done
uninstall-hook:
@@
-52,5
+70,13
@@
uninstall-hook:
EXTRA_DIST += $(POFILES) $(POTFILE)
EXTRA_DIST += $(POFILES) $(POTFILE)
-CLEANFILES += $(
POFILES) $(
GMOFILES) $(POTFILE)
+CLEANFILES += $(GMOFILES) $(POTFILE)
+# Clean $(POFILES) from build directory but not if that's the same as
+# the source directory.
+po_CLEAN:
+ @if test "$(srcdir)" != .; then \
+ echo rm -f $(POFILES); \
+ rm -f $(POFILES); \
+ fi
+CLEAN_LOCAL += po_CLEAN