summaryrefslogtreecommitdiff
path: root/mate-dictionary/data
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-01-27 18:03:29 +0100
committerraveit65 <[email protected]>2021-02-08 20:39:25 +0100
commit5af31646583faedf3d16746f19e4d7d679852ac4 (patch)
treefd63bcbdb1a45bc8dbe08ce4c772eaea0c6e49f8 /mate-dictionary/data
parent1397f530214fe111405d98687d4b50b4ad23da45 (diff)
downloadmate-utils-5af31646583faedf3d16746f19e4d7d679852ac4.tar.bz2
mate-utils-5af31646583faedf3d16746f19e4d7d679852ac4.tar.xz
build: allow users to disable gettext support (--disable-nls)
Diffstat (limited to 'mate-dictionary/data')
-rw-r--r--mate-dictionary/data/Makefile.am13
1 files changed, 13 insertions, 0 deletions
diff --git a/mate-dictionary/data/Makefile.am b/mate-dictionary/data/Makefile.am
index 167b2f35..f47069ba 100644
--- a/mate-dictionary/data/Makefile.am
+++ b/mate-dictionary/data/Makefile.am
@@ -33,7 +33,11 @@ dictsource_in_files = \
dictsource_DATA = $(dictsource_in_files:.desktop.in=.desktop)
%.desktop: %.desktop.in
+if USE_NLS
$(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
+else
+ $(AM_V_GEN) cp $< $@
+endif
builderdir = $(datadir)/mate-dictionary
builder_DATA = \
@@ -57,7 +61,11 @@ $(applet_in_files): $(applet_in_files).in Makefile
$< > $@
$(applet_DATA): $(applet_in_files) Makefile
+if USE_NLS
$(AM_V_GEN) $(MSGFMT) --desktop --keyword=Name --keyword=Description --template $< -d $(top_srcdir)/po -o $@
+else
+ $(AM_V_GEN) cp $< $@
+endif
servicedir = $(datadir)/dbus-1/services
service_in_files = org.mate.panel.applet.DictionaryAppletFactory.service.in
@@ -75,8 +83,13 @@ endif # BUILD_GDICT_APPLET
appdatadir = $(datadir)/metainfo
appdata_in_files = mate-dictionary.appdata.xml.in
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+
$(appdata_DATA): $(appdata_in_files)
+if USE_NLS
$(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
+else
+ $(AM_V_GEN) cp $< $@
+endif
gsettings_SCHEMAS = org.mate.dictionary.gschema.xml
@GSETTINGS_RULES@