Changeset 3328


Ignore:
Timestamp:
Oct 8, 2007, 3:37:33 PM (15 years ago)
Author:
charles
Message:

make the gtk translation files play nicely with autoconf

Location:
trunk
Files:
2 added
1 deleted
5 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.am

    r2796 r3328  
    22
    33if WITH_GTK
    4   GTK_DIR = gtk
     4  GTK_DIR = gtk po
    55endif
    66if HAVE_BEOS
     
    2424 LICENSE \
    2525 README \
    26  third-party
     26 third-party \
     27 intltool-extract.in intltool-merge.in intltool-update.in
  • trunk/autogen.sh

    r2804 r3328  
    11#!/bin/sh
     2
     3GETTEXTIZE="glib-gettextize"
     4$GETTEXTIZE --version < /dev/null > /dev/null 2>&1
     5if test $? -ne 0; then
     6    GETTEXTIZE=""
     7fi
    28
    39LIBTOOLIZE=libtoolize
     
    915
    1016autoreconf -fi -I m4
     17
     18if test "$GETTEXTIZE"; then
     19  echo "Creating aclocal.m4 ..."
     20  test -r aclocal.m4 || touch aclocal.m4
     21  echo "Running $GETTEXTIZE...  Ignore non-fatal messages."
     22  echo "no" | $GETTEXTIZE --force --copy
     23  echo "Making aclocal.m4 writable ..."
     24  test -r aclocal.m4 && chmod u+w aclocal.m4
     25  echo "Running intltoolize..."
     26  intltoolize --copy --force --automake
     27fi
     28
  • trunk/configure.ac

    r3003 r3328  
    1 AC_INIT([Transmission],[0.82+],[http://transmission.m0k.org/trac/newticket])
     1AC_INIT([transmission],[0.82+],[http://transmission.m0k.org/trac/newticket])
    22PEERID_PREFIX="-TR082Z-"
    33USERAGENT_PREFIX="0.82+"
     
    2929AC_PROG_RANLIB
    3030ACX_PTHREAD
    31 
    32 dnl AC_PROG_INTLTOOL([0.23],[no-xml])
    33 GETTEXT_PACKAGE=transmission
    34 AC_SUBST(GETTEXT_PACKAGE)
    35 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
    36 ALL_LINGUAS="bg es fi fr it pl ro ru sk sv"
    37 AM_GLIB_GNU_GETTEXT
    38 transmissionlocaledir='${prefix}/${DATADIRNAME}/locale'
    3931
    4032AC_CHECK_LIB([crypto],[CRYPTO_new_ex_data])
     
    7769AC_SUBST(GTK_CFLAGS)
    7870
     71if test "x$use_gtk" = "xyes"; then
     72    AC_PROG_INTLTOOL([0.23],[no-xml])
     73    GETTEXT_PACKAGE=transmission
     74    AC_SUBST(GETTEXT_PACKAGE)
     75    AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
     76    AM_GLIB_GNU_GETTEXT
     77    transmissionlocaledir='${prefix}/${DATADIRNAME}/locale'
     78    AC_SUBST(transmissionlocaledir)
     79fi
    7980
    8081dnl ----------------------------------------------------------------------------
     
    191192
    192193
    193 
    194194dnl ----------------------------------------------------------------------------
    195195dnl
     
    207207                 macosx/Makefile
    208208                 wx/Makefile
    209                  wx/images/Makefile])
     209                 wx/images/Makefile
     210                 po/Makefile.in])
    210211
    211212ac_configure_args="$ac_configure_args --enable-static --disable-shared -q"
  • trunk/gtk/Makefile.am

    r3155 r3328  
    33    $(LIBEVENT_CPPFLAGS) \
    44    $(GTK_CFLAGS) \
    5     -DLOCALEDIR=\""$(transmissionlocaledir)"\"
     5    -DTRANSMISSIONLOCALEDIR=\""$(transmissionlocaledir)"\"
    66
    77AM_CFLAGS = $(PTHREAD_CFLAGS)
     
    5353    $(GTK_LIBS) \
    5454    $(PTHREAD_LIBS) -lm
     55
     56Productivitydir = $(datadir)/applications
     57Productivity_DATA = $(DESKTOP_FILES)
     58
     59icon_DATA = transmission.png
     60icondir = $(datadir)/pixmaps
  • trunk/gtk/main.c

    r3209 r3328  
    363363{
    364364
    365     bindtextdomain( "transmission-gtk", LOCALEDIR );
    366     bind_textdomain_codeset( "transmission-gtk", "UTF-8" );
    367     textdomain( "transmission-gtk" );
     365    bindtextdomain( "transmission", TRANSMISSIONLOCALEDIR );
     366    bind_textdomain_codeset( "transmission", "UTF-8" );
     367    textdomain( "transmission" );
    368368
    369369    g_set_application_name( _("Transmission") );
  • trunk/gtk/transmission.desktop.in

    r3327 r3328  
    11[Desktop Entry]
    22Encoding=UTF-8
    3 Version=1.0
    4 Name=Transmission BitTorrent Client
     3_Name=Transmission BitTorrent Client
     4_Comment=A free, lightweight BitTorrent client with a simple, intuitive interface
     5Exec=transmission %F
     6Icon=transmission.png
     7Terminal=false
     8TryExec=transmission
    59Type=Application
    6 Comment=A free, lightweight BitTorrent client with a simple, intuitive interface
    7 Comment[bg]=СвПбПЎеМ, лек BitTorrent клОеМт с прПст, ОМтуОтОвеМ ОМтерфейс
    8 Comment[es]=Un cliente libre, ligero de BitTorrent con una interfaz simple e intuitiva
    9 Comment[fi]=Ilmainen, kevytkÀyttöinen BitTorrent ohjelma jossa on helppokÀyttöinen kÀyttöliittymÀ
    10 Comment[fr]=Un client BitTorrent léger, libre, avec une interface simple et intuitive
    11 Comment[it]=Un client BitTorrent libero e leggero con un'interfaccia semplice ed intuitiva
    12 Comment[pl]=Darmowy, lekki klient BitTorrent z prostym, intuicyjnym interfejscem
    13 Comment[ro]=Un client BitTorrent liber, neîncărcat, cu o interfaţă simplă şi intuitivă
    14 Comment[ru]=СвПбПЎМый, легкПвесМый BitTorrent клОеМт с прПстыЌ, ОМтуОтОвМыЌ ОМтерфейсПЌ
    15 Comment[sv]=En fri, lÀttviktig BitTorrent-klient med ett enkelt och intuitivt grÀnssnitt
    16 Exec=transmission %F
    17 TryExec=transmission
    18 Icon=transmission.png
    1910MimeType=application/x-bittorrent;
    2011Categories=Network;FileTransfer;P2P;GTK;
Note: See TracChangeset for help on using the changeset viewer.