summaryrefslogtreecommitdiff
path: root/image-converter
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-02-07 21:49:22 +0100
committerraveit65 <[email protected]>2021-02-08 21:23:34 +0100
commita8d98cb5572363804ffabd771055959826b32f99 (patch)
treea571b63a981e000fddb80ceac1013cee91bfec66 /image-converter
parent546660e4c8668f6f94c5d672499d253f70e4fa78 (diff)
downloadcaja-extensions-a8d98cb5572363804ffabd771055959826b32f99.tar.bz2
caja-extensions-a8d98cb5572363804ffabd771055959826b32f99.tar.xz
build: allow users to disable gettext support (--disable-nls)
Diffstat (limited to 'image-converter')
-rw-r--r--image-converter/Makefile.am4
-rw-r--r--image-converter/caja-image-resizer.c2
-rw-r--r--image-converter/caja-image-rotator.c2
3 files changed, 8 insertions, 0 deletions
diff --git a/image-converter/Makefile.am b/image-converter/Makefile.am
index 5a9b21e..82c01c0 100644
--- a/image-converter/Makefile.am
+++ b/image-converter/Makefile.am
@@ -47,7 +47,11 @@ extensiondir = $(datadir)/caja/extensions
extension_in_files = libcaja-image-converter.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 = \
caja-image-resize.ui \
diff --git a/image-converter/caja-image-resizer.c b/image-converter/caja-image-resizer.c
index d8c6221..02484c1 100644
--- a/image-converter/caja-image-resizer.c
+++ b/image-converter/caja-image-resizer.c
@@ -338,7 +338,9 @@ caja_image_resizer_init (CajaImageResizer *resizer)
GtkBuilder *builder;
builder = gtk_builder_new_from_resource ("/org/mate/caja/extensions/imageconverter/caja-image-resize.ui");
+#ifdef ENABLE_NLS
gtk_builder_set_translation_domain (builder, GETTEXT_PACKAGE);
+#endif /* ENABLE_NLS */
/* Grab some widgets */
resizer->resize_dialog = GTK_DIALOG (gtk_builder_get_object (builder, "resize_dialog"));
diff --git a/image-converter/caja-image-rotator.c b/image-converter/caja-image-rotator.c
index 83e76b0..a46901b 100644
--- a/image-converter/caja-image-rotator.c
+++ b/image-converter/caja-image-rotator.c
@@ -340,7 +340,9 @@ caja_image_rotator_init (CajaImageRotator *rotator)
GtkBuilder *builder;
builder = gtk_builder_new_from_resource ("/org/mate/caja/extensions/imageconverter/caja-image-rotate.ui");
+#ifdef ENABLE_NLS
gtk_builder_set_translation_domain (builder, GETTEXT_PACKAGE);
+#endif /* ENABLE_NLS */
/* Grab some widgets */
rotator->rotate_dialog = GTK_DIALOG (gtk_builder_get_object (builder, "rotate_dialog"));