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

List:       koffice-devel
Subject:    Re: i18n of templates
From:       David Faure <david () mandrakesoft ! com>
Date:       2002-09-03 9:20:18
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 03 September 2002 11:10, Thomas Zander wrote:
> On Tuesday 03 September 2002 10:55, David Faure wrote:
> > On Tuesday 03 September 2002 09:02, Ariya Hidayat wrote:
> > > > That's how I thought about it, too (possibly with an i18n context
> > > > string, or with a .po file for each template..... or at least one for
> > > > all templates.... we don't want this to mix with the app's own
> > > > messages, where the context can be quite different).
> > >
> > > How to add context into text inside the XML file ? Or is it done with the
> > > processing script ?
> >
> > The script would simply generate i18n("Template","Hello world"),
> > and the app would use i18n("Template",theText) after reading theText from
> > the template.
> 
> I'm not intemitely known with the translation methods, but it seems like a 
> better idea to generate .po files directly from the .kwd template files. 
> (instead of creating a source file with the i18n statements which can then be 
> mined again with the usual software)
> Just a different way of extracting the strings to a .po ...

What difference does it make, given that it's all scripted (no manual work) ?
We don't want to duplicate the work xgettext does, and the current method
works fine.
Extract from kword/Makefile.am:
        perl ../kspread/extracti18n expression/*.xml > xml_doc.cc
        $(EXTRACTRC) mailmerge/sql/*.ui >> rc.cpp
        $(XGETTEXT) rc.cpp *.cc mailmerge/*.cc mailmerge/sql/*.cc kwaboutdata.h -o $(podir)/kword.pot

The first two lines are 2 different perl scripts that extract messages from XML
and generate i18n statements from that.

- -- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2-rc1 is out. ftp://ftp.kde.org/pub/kde/unstable/koffice-1.2-rc1/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9dH7S72KcVAmwbhARAgsuAKCS2ULclV7VCqZ13TrHuPwBASATsQCcDvyN
osqybqp91q8VUitBTQmCPiE=
=u9mt
-----END PGP SIGNATURE-----

_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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