gnokii-users
[Top][All Lists]
Advanced

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

Re: missing files in dist


From: Bastien Nocera
Subject: Re: missing files in dist
Date: Mon, 14 Jan 2008 16:20:03 +0000

On Sat, 2008-01-12 at 17:27 +0100, Daniele Forsi wrote:
> On Saturday 12 January 2008, 14:47:07, Pawel wrote:
> 
> > As the other note: should we split translation into gnokii/xgnokii/smsd?
> 
> also mgnokiidev has translated strings :)
> 
> another option would be splitting the library (about 200 strings) from the 
> apps (gnokii and xgnoikii have about 500 strings each of which only 20 are in 
> common), but when we merge the changes from the devel branch some strings 
> will be moved from the apps to the libs (those related to enums), so better 
> decide about splitting translations after we have decided about code changes?
> 
> BTW to support translations when installing with a prefix different from /usr 
> we need to add a bindtextdomain() call with the same directory that 
> po/Makefile will use for install, $(DESTDIR)$(itlocaledir) or $(itlocaledir)? 
> How to proceed? Have configure put a define in config.h like SBINDIR?

Add this to the AM_CFLAGS in Makefile.am for the directories that need
it:
-DLOCALEDIR=\""$(datadir)/locale"\"

and call:
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
in your main, before anything else.

I'm pretty sure that the gnokii code is more broken than that i18n-wise,
because there's no calls to dgettext, just gettext. So gnokii, xgnokii,
etc.'s translations work because they share the same translation
catalog.

For example, I'm pretty sure libgnokii's strings aren't translated
properly in gnocky.

There's also no calls to bindtextdomain anywhere in libgnokii.

But before trying to fix i18n in gnokii, I think you guys should review
the strings to translate, and make sure only the user-visible ones are
translated. There's a lot of techno-babble that's translated currently,
and both translators and users will have a hard time understanding what
it means.

Cheers





reply via email to

[Prev in Thread] Current Thread [Next in Thread]