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

List:       kde-devel
Subject:    Re: extracting mime type comments for i18n
From:       Albert Astals Cid <aacid () kde ! org>
Date:       2012-01-16 18:11:15
Message-ID: 2188048.ML8UiOmJZa () xps
[Download RAW message or body]

El Diumenge, 15 de gener de 2012, a les 19:39:55, Robby Stephenson va 
escriure:
> Hi,
> 
> As I understand it, the proper way to define a mimetype with the
> shared-mime-info framework is to use an XML file, and install it in
> the xdg mime directory. How do I set up my KDE application so scripty
> will pull out the mime type comments for translation? Anyone have a
> working example to point to?
> 
> My tellico.xml mime-type file has:
> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
>   <mime-type type="application/x-tellico">
>     <sub-class-of type="application/zip"/>
>     <comment>Tellico Data File</comment>
>     <comment xml:lang="cs">Datový soubor Tellico</comment>
>     <comment xml:lang="fr">Fichier Tellico</comment>
>     <comment xml:lang="ru">Файл Tellico</comment>
>     <glob pattern="*.tc"/>
>   </mime-type>
> </mime-info>
> 
> Obviously, some translators have already added translations, but I
> don't know if they did that on their own, or if somehow scripty was
> catching that.
> 
> I've looked over the KDE i18n documentation and haven't found
> anything. Do I need to add something to my Messages.sh file to get the
> comment extracted properly?

At the moment scripty does not support that (xml->po->xml), it's been on my 
todo for ages but never found enough time for it. If someone is interested in 
hacking in scripy i have some ideas on how to do it, just lack the time.

Albert

> 
> Tellico still has an old x-tellico.desktop file that I install in
> ${MIME_INSTALL_DIR}/application but I think that's deprecated, right?
> And krazy complains about that desktop file since it isn't in proper
> xdg format.
> 
> Thanks!
> Robby
> 
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<

>> 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