Commit | Line | Data |
---|---|---|
1d634451 SS |
1 | This patch modifies Transmission so it honors the "localedir" option |
2 | passed to its configure script, allowing GTK-specific localization | |
3 | data to be placed in the package's "gui" output. | |
4 | ||
5 | Without this patch, localization of transmission-gtk can break as the | |
6 | application will expect to find this data in the package's default | |
7 | output (as a result of the call to bindtextdomain in gtk/main.c). | |
8 | ||
9 | diff --git a/configure b/configure | |
10 | index a29e24f..3ae8ef4 100755 | |
11 | --- a/configure | |
12 | +++ b/configure | |
13 | @@ -21305,7 +21305,7 @@ $as_echo "$LINGUAS" >&6; } | |
14 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
15 | < $srcdir/po/POTFILES.in > po/POTFILES | |
16 | ||
17 | - transmissionlocaledir='${prefix}/${DATADIRNAME}/locale' | |
18 | + transmissionlocaledir='${localedir}' | |
19 | ||
20 | fi | |
21 | ||
22 | diff --git a/configure.ac b/configure.ac | |
23 | index 57d3cae..ab62093 100644 | |
24 | --- a/configure.ac | |
25 | +++ b/configure.ac | |
26 | @@ -563,7 +563,7 @@ if test "x$enable_nls" = "xyes" ; then | |
27 | AC_SUBST(GETTEXT_PACKAGE) | |
28 | AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package]) | |
29 | AM_GLIB_GNU_GETTEXT | |
30 | - transmissionlocaledir='${prefix}/${DATADIRNAME}/locale' | |
31 | + transmissionlocaledir='${localedir}' | |
32 | AC_SUBST(transmissionlocaledir) | |
33 | fi | |
34 | AC_SUBST(INTLLIBS) |