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

List:       kde-devel
Subject:    extracting mime type comments for i18n
From:       Robby Stephenson <robby () periapsis ! org>
Date:       2012-01-16 3:39:55
Message-ID: CACFDV67z63oOuHk1kPvbHvxGacgV3ENRiQfsW7uXKgq-pzjksw () mail ! gmail ! com
[Download RAW message or body]

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?

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 <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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