Op Do, 2011-03-17 om 17:58 -0400 skryf Chris Leonard:
> Dear Pootleers,
> 
> Is there any element of the Translate Toolkit that would rapidly convert a
> downloaded OmegaT glossary (i.e. the Mozilla glossaries) into a PO file?
> 
> I can do the manipulation in MSExcel without too much trouble, but I thought
> there might be a trick to doing it via Translate Toolkit elements.  I'm
> looking to take the Mozilla Glossaries and use them to seed translation
> memory via the Terminology Project in Pootle.

Hi Chris

As far as I know there isn't an existing tool for exactly this task, but
I think we'll find a solution. Firstly, the Translate Toolkit can read
and write the OmegaT formats fine. You can maybe confirm with Virtaal
that can open these files. If they open fine, then we'll support it fine
elsewhere as well.

If you'd like to upload it to Pootle, you can add OmegaT glossaries as a
supported file type for Pootle in this file:
  local_apps/pootle_store/filetypes.py
with something like this

        from translate.storage.omegat import OmegaTFile
        formats.append(('utf8', _('OmegaT'), OmegaTFile, 'bilingual'))

(assuming .utf8 omegat files)

This way you should just be able to upload the file, even to a project
that is PO or of another file type. It will convert it to the database
format on import, which I guess is exactly what you want.

An alternative is to write a quick script using the Translate Toolkit.
If you use Linux, it will be easy to run this based on an installed
Translate Toolkit.

I hope that helps.
Friedel


--
Recently on my blog:
http://translate.org.za/blogs/friedel/en/content/better-lies-about-gnome-localisation


------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle

Reply via email to