diff options
Diffstat (limited to 'image-converter')
-rw-r--r-- | image-converter/Makefile.am | 4 | ||||
-rw-r--r-- | image-converter/caja-image-resizer.c | 2 | ||||
-rw-r--r-- | image-converter/caja-image-rotator.c | 2 |
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")); |