[gnome-control-center] datetime: respect LINGUAS for timezone translations
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] datetime: respect LINGUAS for timezone translations
- Date: Tue, 14 Feb 2012 11:02:32 +0000 (UTC)
commit 824b3e70bcff5fedab2211d49fac4c0151fbe273
Author: Alexandre Rostovtsev <tetromino gentoo org>
Date: Tue Feb 14 05:07:58 2012 -0500
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]