diff options
author | rbuj <[email protected]> | 2021-02-18 12:25:55 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-02-24 16:29:19 +0100 |
commit | 59ce19333e004c55645951beb850dc5a3abd5444 (patch) | |
tree | 9678914f86d8463a1d50e66ebe284dcce7986053 /data | |
parent | d8d3f21b1a6e1cc9a4e82ff9c9a6e2aded0394bd (diff) | |
download | mate-notification-daemon-59ce19333e004c55645951beb850dc5a3abd5444.tar.bz2 mate-notification-daemon-59ce19333e004c55645951beb850dc5a3abd5444.tar.xz |
build: allow users to disable gettext support (--disable-nls)
Diffstat (limited to 'data')
-rw-r--r-- | data/Makefile.am | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index be9a8b7..a666d7a 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -21,14 +21,22 @@ applet_DATA = org.mate.applets.MateNotificationApplet.mate-panel-applet applet_in_files = $(applet_DATA:.mate-panel-applet=.desktop.in) $(applet_DATA): $(applet_in_files) +if USE_NLS $(AM_V_GEN) $(MSGFMT) --desktop --keyword=Name --keyword=Description --template $< -d $(top_srcdir)/po -o $@ +else + $(AM_V_GEN) cp -f $< $@ +endif desktopdir = $(datadir)/applications desktop_DATA = mate-notification-properties.desktop desktop_in_files = $(desktop_DATA:.desktop=.desktop.in) $(desktop_DATA): $(desktop_in_files) +if USE_NLS $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ +else + $(AM_V_GEN) sed '/^# Translators/d' < $< > $@ +endif gsettings_SCHEMAS = org.mate.NotificationDaemon.gschema.xml gsettingsschema_in_files = $(gsettings_SCHEMAS:=.in) |