[Tracker] Localization support for tracker



Following my email on desktop-devel list, here is the updated patch to
add support for translation in tracker.

As Jamie said on desktop-devel list, there are 2 requests to match: 
      * the only component that need l10n is the search tool 
      * the tracker daemon is fd.o project and should not depend on
        GNOME stuff.

But 'cause tracker yet depends on glib (and glib needs intltool), there
no issues to use intltool. Note that intltool is yet used by other fd.o
project as hal and shared mime info.

So we can move the auto* macros in configure.in outside of the
HAVE_GNOME conditional with no fear. BTW we have to do it, unless the
configure script itself will fail trying to generate stuff in po/
directory when HAVE_GNOME is false. We can't disable configure stuff in
po/ directory at configure time, we have only one AC_OUTPUT...

We can minimize the intltool version request (0.22.0) using the
ALL_LINGUAS macro inside the configure script instead the LINGUAS file
in po/ directory. This is the same configuration of shared-mime-info and
hal.

We can also skip to run `make` and `make install` in po/ directory when
HAVE_GNOME is false. Simply we can remove this directory from
SUBDIRECTORY variable in Makefile.am and add it conditionally when
HAVE_GNOME is true (see the attached patch). Note that I've no idea if
this is bad for distro packages, but it's the same behavior currently
used for tracker.

I'm not an auto* tools guru, so I don't know if the patch works fine on
older system. It works on my jhbuild gnome-2-18 sandbox and it should
work on other systems matching the minimum requests.

So, if someone here is playing with tracker and old GTK/GNOME, please
test this patch before I'll commit on cvs, thanks. You have to run
autogen.sh and make, checking for failures. You should also try to
configure it with and without GNOME libs (you could temporary remote the
gnome-desktop.pc file from $prefix/lib/pkgconfig/). Without GNOME libs,
`make` should ignore po/ and src/tracker-search-tool directories.

Cheers, Luca.

PS there are also some cosmetic changes to other checking statements in
configure, now it's more readable, IMHO.

PPS it seems that intltool will put in PO files all messages in source,
even messages inside comments :-( I'll test if the C style comments (/*
*/)are needed.


Attachment: tracker-l10n.diff
Description: Text Data



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