[gnome-screenshot] Fix translations



commit 0ce87165777727516ff73f547c3b7fafe732a059
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Jun 21 17:48:25 2016 -0500

    Fix translations
    
    When I removed the use of AM_GLIB_GNU_GETTEXT, I didn't realize that it
    was needed for exactly one reason: to define the variable DATADIRNAME to
    "share". We are using it here to define GNOMELOCALEDIR to pass to
    bindtextdomain.
    
    Let's just use standard LOCALEDIR instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767913

 src/Makefile.am        |   10 +++++-----
 src/gnome-screenshot.c |    2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 3a14900..15f5170 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,10 +1,10 @@
 NULL =
 
-AM_CPPFLAGS =                                                  \
-       -I.                                                     \
-       -I$(srcdir)                                             \
-       -DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\"  \
-       -DUIDIR=\""$(uidir)"\"                                  \
+AM_CPPFLAGS =                                          \
+       -I.                                             \
+       -I$(srcdir)                                     \
+       -DLOCALEDIR=\"$(localedir)\"                    \
+       -DUIDIR=\"$(uidir)\"                            \
        $(NULL)
 
 bin_PROGRAMS = \
diff --git a/src/gnome-screenshot.c b/src/gnome-screenshot.c
index 1990a07..572ff30 100644
--- a/src/gnome-screenshot.c
+++ b/src/gnome-screenshot.c
@@ -39,7 +39,7 @@ main (int argc, char *argv[])
   ScreenshotApplication *app;
 
   setlocale (LC_ALL, "");
-  bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+  bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
   bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
   textdomain (GETTEXT_PACKAGE);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]