Re: [PATCH] make default string for sample text of font selector localizable
- From: Vlad Harchev <hvv hippo ru>
- To: Mathieu Lacage <mathieu gnu org>
- Cc: gtk-devel-list gnome org
- Subject: Re: [PATCH] make default string for sample text of font selector localizable
- Date: Tue, 27 Feb 2001 20:00:49 +0400 (SAMT)
On Tue, 27 Feb 2001, Vlad Harchev wrote:
> On 27 Feb 2001, Mathieu Lacage wrote:
>
> > Le 27 Feb 2001 17:26:31 +0400, Vlad Harchev a Иcrit :
> > > Hi,
> > >
> > > I think it would be nice to make the string "abcdefghijk ABCDEFGHIJK" used
> > > as default string in gtk font selection widget internationalizable. Here is a
> > > patch for it.
> > >
> > > I had to remove macro PREVIEW_TEXT (and turn it into variable), since if it's
> > > defined as
> > > #define PREVIEW_TEXT _("abcdefghijk ABCDEFGHIJK")
> >
> >
> > Perhaps the correct way to do it is:
> > #define PREVIEW_TEXT N_("abcdefghijk ABCDEFGHIJK")
> > which will mark the string as translatable and will put it in the po
> > files.
> > Also, in the code using the PREVIEW_TEXT macro, you should do:
> > _(PREVIEW_TEXT)
>
> No, xgettext I have (0.10.35 - the one that comes with RH6.0) won't mark that
> string as translatable either. Example:
>
> $cat > 1.c
> #define BLAH _("M1")
> #define BLAH N_("M2")
>
> char* foo = _("V1");
> char* foo = _("V2");
Of course this should be char* foo = N_("V2"); for sake of completeness. But
messages.po will contain the same 2 strings.
Best regards,
-Vlad
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]