[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: KMail -> "Folder" untranslateable
From:       Nicolas Goutte <nicolasg () snafu ! de>
Date:       2006-01-17 10:10:53
Message-ID: 200601171110.54595.nicolasg () snafu ! de
[Download RAW message or body]

On Monday 16 January 2006 15:34, Thomas Reitelbach wrote:
> On Monday 16 January 2006 08:49, Nicolas Goutte wrote:
> > On Sunday 15 January 2006 14:49, Thomas Reitelbach wrote:
> > > On Saturday 14 January 2006 17:45, Thomas Reitelbach wrote:
> > > > tr:/src/branches/KDE/3.5/kdepim$ make -f admin/Makefile.common
> > > > package-messages
> > > > ./kmail
> > > > xgettext: Non-ASCII string at aboutdata.cpp:191.
> > > >           Please specify the source encoding through --from-code.
> > > > make exit code: 2
> > > >
> > > > At aboutdata.cpp:191 and 202 there are special unicode characters:
> > > > "\xC3\x84gypten" which means "Ägypten". For testing i replaced this
> > > > string with "Aegypten" and now the messages get extracted correctly.
> > > > But that's of course not the way to go.
> > >
> > > I have used this patch:
> > > Index: kmail/Makefile.am
> > > ===================================================================
> > > --- kmail/Makefile.am   (Revision 498045)
> > > +++ kmail/Makefile.am   (Arbeitskopie)
> > > @@ -193,7 +193,7 @@
> > >  messages: rc.cpp
> > >         rm -f tips.cpp
> > >         $(PREPARETIPS) > tips.cpp
> > > -       $(XGETTEXT) -ktranslate *.cpp *.h -o $(podir)/kmail.pot
> > > +       $(XGETTEXT) --from-code=UTF-8 -ktranslate *.cpp *.h -o
> > > $(podir)/kmail.pot
> > >         rm -f tips.cpp
> >
> > No, Scripty's xgettext does not know --from-code
>
> And it doesn't seem to stumble on the multi-byte chars.

The old xgettext does not care about the encoding. It is in the 
post-processing that the generated POT files are declared to be UTF-8.

> The problem has
> been fixed by David's commit. Many thanks to Stefan Asserhall for the good
> catch :)

Nice to hear that!

>
> Bye,
> Thomas


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic