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

List:       kde-devel
Subject:    Re: tr and Qt Linguistic in a KDE application
From:       Nicolas Goutte <nicolasg () snafu ! de>
Date:       2003-09-01 20:04:02
[Download RAW message or body]

I do not know if it can help you but I have programmed a quick&dirty template 
to convert .ts to .po. However I have the problem that I cannot add quotes at 
each line. (Other problems may be there too.) So perhaps you should pass the 
result to a (Perl?) script to add the missing quotes.

To call the template:
xsltproc ts2po source.ts > destination.po

Have a nice day!

On Monday 01 September 2003 18:15, Pupeno wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> El Sábado Agosto 30 2003 08:24, Stephan Kulow escribió:
> > Am Saturday 30 August 2003 00:58 schrieb Pupeno:
> > > Please, don't ask my why... but...
> > > Is it posible to use tr and generate the files for Qt Linguistic and so
> > > on in KDE application (generated with KDevelop 3.0).
> > > Thanks.
> >
> > You can use tr, but you can't use Qt file format
>
> Really ? oh :( It seems I have to use qmake after all :(
> There's no posible work arround to generate Qt files for translation (and
> make my application read them).
> Thank you.
> - --
> Pupeno: pupeno@pupeno.com
> http://www.pupeno.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.2 (GNU/Linux)
>
> iD8DBQE/U3CgLr8z5XzmSDQRApb6AKC8EP3XxBeao44hwjDqSogBYYo3GACgpm1A
> 5EMOz7YIwZGYEiHxrFvlWqo=
> =Zgdq
> -----END PGP SIGNATURE-----
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<

["ts2po.xslt" (text/x-xslt)]

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" type="text/plain" encoding="UTF-8"/>
<xsl:template match="/">
  <xsl:for-each select="/TS/context">
#  <xsl:value-of select="name"/>
   <xsl:for-each select="message">
msgid &quot;<xsl:value-of select="source"/>&quot;
msgstr &quot;<xsl:value-of select="translation"/>&quot;
   </xsl:for-each>
  </xsl:for-each>
</xsl:template>
</xsl:stylesheet>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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