summaryrefslogtreecommitdiff
path: root/capplets/display/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'capplets/display/Makefile.am')
-rw-r--r--capplets/display/Makefile.am8
1 files changed, 8 insertions, 0 deletions
diff --git a/capplets/display/Makefile.am b/capplets/display/Makefile.am
index 7ca1180f..d25940b3 100644
--- a/capplets/display/Makefile.am
+++ b/capplets/display/Makefile.am
@@ -38,14 +38,22 @@ dist_polkit_policy_DATA = \
org.mate.randr.policy
%.policy: %.policy.in
+if USE_NLS
$(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
+else
+ $(AM_V_GEN) cp -f $< $@
+endif
desktopdir = $(datadir)/applications
Desktop_in_files = mate-display-properties.desktop.in
desktop_DATA = $(Desktop_in_files:.desktop.in=.desktop)
$(desktop_DATA): $(Desktop_in_files)
+if USE_NLS
$(AM_V_GEN) $(MSGFMT) --desktop --keyword= --keyword=Name --keyword=Comment --keyword=Keywords --template $< -d $(top_srcdir)/po -o $@
+else
+ $(AM_V_GEN) sed '/^# Translators/d' < $< > $@
+endif
AM_CPPFLAGS = \
$(WARN_CFLAGS) \