diff options
author | zhuyaliang <[email protected]> | 2019-06-10 15:05:51 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-06-14 12:05:04 +0200 |
commit | 72dabd15f2495ff92310b265c10f6b30f58589c7 (patch) | |
tree | 9fffe79fb41ae5af16b7d8ec21684c1c8f21b2ff /capplets/time-admin/po-timezones/Makefile.am | |
parent | 46d2a20a34d35a367571ad346fbbb8cf8ba94537 (diff) | |
download | mate-control-center-72dabd15f2495ff92310b265c10f6b30f58589c7.tar.bz2 mate-control-center-72dabd15f2495ff92310b265c10f6b30f58589c7.tar.xz |
add timezone translation files for time-admin
Diffstat (limited to 'capplets/time-admin/po-timezones/Makefile.am')
-rw-r--r-- | capplets/time-admin/po-timezones/Makefile.am | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/capplets/time-admin/po-timezones/Makefile.am b/capplets/time-admin/po-timezones/Makefile.am new file mode 100644 index 00000000..33fd5e0b --- /dev/null +++ b/capplets/time-admin/po-timezones/Makefile.am @@ -0,0 +1,33 @@ +PO_LINGUAS = $(subst .po,,$(wildcard *.po)) + +USER_LINGUAS = $(filter $(LINGUAS),$(PO_LINGUAS)) + +USE_LINGUAS = $(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else LLINGUAS="$(PO_LINGUAS)"; fi; for lang in $$LLINGUAS; do printf "$$lang "; done) + +ALL_CATALOGS = $(patsubst %.po,%.mo,$(wildcard *.po)) + +CATALOGS = $(USE_LINGUAS:%=%.mo) + +all: $(CATALOGS) + +NLSPACKAGE = $(GETTEXT_PACKAGE)-timezones + +%.mo: %.po + $(AM_V_GEN) msgfmt -o $@ $< + +install: $(CATALOGS) + @mkdir -p $(DESTDIR)$(localedir) + for n in $(CATALOGS); do \ + l=`basename $$n .mo`; \ + $(INSTALL) -m 755 -d $(DESTDIR)$(localedir)/$$l; \ + $(INSTALL) -m 755 -d $(DESTDIR)$(localedir)/$$l/LC_MESSAGES; \ + if [ -f $$n ]; then \ + $(INSTALL) -m 644 $$n $(DESTDIR)$(localedir)/$$l/LC_MESSAGES/$(NLSPACKAGE).mo; \ + fi; \ + done + +EXTRA_DIST=$(wildcard *.po) + +CLEANFILES = $(ALL_CATALOGS) + +-include $(top_srcdir)/git.mk |