From 58d3dd9362ede7b0644242dce55b413a49034949 Mon Sep 17 00:00:00 2001 From: Alexandre Rostovtsev Date: Tue, 14 Feb 2012 05:07:58 -0500 Subject: [PATCH] datetime: respect LINGUAS for timezone translations https://bugzilla.gnome.org/show_bug.cgi?id=670051 --- panels/datetime/po-timezones/Makefile.am | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/panels/datetime/po-timezones/Makefile.am b/panels/datetime/po-timezones/Makefile.am index 0845a51..33fd5e0 100644 --- a/panels/datetime/po-timezones/Makefile.am +++ b/panels/datetime/po-timezones/Makefile.am @@ -1,4 +1,12 @@ -CATALOGS = $(patsubst %.po,%.mo,$(wildcard *.po)) +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) @@ -20,6 +28,6 @@ install: $(CATALOGS) EXTRA_DIST=$(wildcard *.po) -CLEANFILES = $(CATALOGS) +CLEANFILES = $(ALL_CATALOGS) -include $(top_srcdir)/git.mk -- 1.7.8.4