linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] I18N of mediastreamer filter descriptions


From: Simon Morlat
Subject: Re: [Linphone-developers] I18N of mediastreamer filter descriptions
Date: Wed, 17 Dec 2008 22:41:03 +0100
User-agent: KMail/1.9.9

Hello Petr,

Thanks a lot , great patch !
I didn't know this gettext markup syntax.
It is now on svn tree.

Simon

Le Wednesday 17 December 2008 17:48:13 Petr Pisar, vous avez écrit :
> Hello,
>
> I have complied some time (years) ago that description of codecs in GTK
> interface (that shows as popup over the codec line in settings) is not
> localized. Simon replied its not possible because the strings are static
> strings in mediastreamer library.
>
> Despite it I managed to internationalize the filter descriptions and it
> works very well.
>
> It uses standard gettext apropach for such cases:
>
> Strings in mediastreamer modules are syntactically marked up with
> N_(String) makro which has void semantics. This allows to gather messages
> into gettext template.
>
> The real translation is done on-the-fly in coreapi/misc.c by
> gettext(String), where String is pointer to static string with description
> (its part of mediastreamer filter structure).
>
> I marked up all filters I met and I added them to po/POTFILES.in. (I'm not
> sure I discovered all of them.)
>
> Implementation is attached as gzipped patch against r206.
>
> -- Petr






reply via email to

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