summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/Makefile.am4
-rw-r--r--share/caja-share.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/share/Makefile.am b/share/Makefile.am
index 18e6475..9fa4381 100644
--- a/share/Makefile.am
+++ b/share/Makefile.am
@@ -41,7 +41,11 @@ extensiondir = $(datadir)/caja/extensions
extension_in_files = libcaja-share.caja-extension.desktop.in
extension_DATA = $(extension_in_files:.caja-extension.desktop.in=.caja-extension)
$(extension_DATA): $(extension_in_files)
+if USE_NLS
$(AM_V_GEN) $(MSGFMT) --desktop --keyword= --keyword=Copyright --keyword=Name --keyword=Description --template $< -d $(top_srcdir)/po -o $@
+else
+ $(AM_V_GEN) cp $< $@
+endif
EXTRA_DIST = share-dialog.ui
diff --git a/share/caja-share.c b/share/caja-share.c
index e6b4897..c23c3f0 100644
--- a/share/caja-share.c
+++ b/share/caja-share.c
@@ -694,7 +694,9 @@ create_property_page (CajaFileInfo *fileinfo)
page->ui = gtk_builder_new ();
+#ifdef ENABLE_NLS
gtk_builder_set_translation_domain (page->ui, GETTEXT_PACKAGE);
+#endif /* ENABLE_NLS */
g_assert (gtk_builder_add_from_file (page->ui,
INTERFACES_DIR"/share-dialog.ui", &error));