# # # patch "Makefile.am" # from [23042d639341651b95124cf74a3748101fdcdde7] # to [a32244599f7db2a319f556076bf43d70778c9c1a] # ============================================================ --- Makefile.am 23042d639341651b95124cf74a3748101fdcdde7 +++ Makefile.am a32244599f7db2a319f556076bf43d70778c9c1a @@ -403,8 +403,10 @@ if ENABLE_NLS # i18n support if ENABLE_NLS -LINGUAS=$(wildcard $(srcdir)/po/*.po) -LINGUA_RESULTS=$(addsuffix .gmo,$(basename $(LINGUAS))) +LINGUAS=$(basename $(notdir $(wildcard $(srcdir)/po/*.po))) +LINGUA_FORMAT=.mo +LINGUA_DOMAIN=monotone +LINGUA_RESULTS=$(addprefix po/,$(addsuffix $(LINGUA_FORMAT),$(LINGUAS))) %.mo: %.po msgfmt -o $@ $< @@ -412,6 +414,13 @@ LINGUA_RESULTS=$(addsuffix .gmo,$(basena %.gmo: %.po msgfmt -o $@ $< +install-data-local: $(LINGUA_RESULTS) + for lang in $(LINGUAS); do \ + target=$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \ + $(mkinstalldirs) $$target; \ + $(INSTALL_DATA) po/$$lang$(LINGUA_FORMAT) $$target/$(LINGUA_DOMAIN)$(LINGUA_FORMAT); \ + done + endif datadir = @datadir@