> Are there any tools or JAVA API in the okaptools
> framework which would help with export/import of
> translation units from SQL database tables to
> XLIFF and import it back in.
I did start a Database Filter a couple months ago, but have not had time to get it to a level it's useable yet. Hopefully this is something that can be done in the coming months.
> Any suggestions or pointers how how to
> approach this are greatly appreciated?
Meanwhile, an alternative would be to export to some kind of CSV or tab-delimited format and use that format with the Table Filter. Or, if the database allows it, it export to some XML-based format and use the XML Filter or the XML Stream Filter. The second would be a good solution if the content of some of your fields is in HTML or other format.
Hope this helps,
Yahoo! Groups Links
__._,_.___Messages in this topic (2)Recent Activity:
One way to translate a DB would be to export it to some CSV format and translate that, then import it back again.
It’s obviously not as efficient but often doable.
As for creating a new filter: Yes, the main thing is to implement the IFilter interface, and likely IFilterWriter to put the translation back.
Most of the mechanism is likely to go in hasNext() and next() to get the TextUnit one after the other.
With a DB you would not have skeleton parts to deal with as the merging back would likely just re-inject the translation.
Now, extracting text from a DB is relatively simple, but most likely the text itself can be more than plain-text. Often there is HTML, JSON, or other layer of format. So you would probably want to implement some sub-filtering capability, or chain several filters. That part is more tricky. Dealing with inline codes is often one of the most challenging part of a filter.
For the configuration/parameters I suppose you would have some information on what to extract, column name, even SQL statements, whatever allows you to be more flexible on how to deciding what to extract/merge.
There is some documentation about filters and the internal workings of Okapi in the dev docs here: https://okapiframework.org/devguide/index.html. It’s a bit outdated, but still mostly valid information.
You received this message because you are subscribed to the Google Groups "okapi-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to okapi-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/okapi-users/CABm46bap8TTgYt%3DywJ8LHwbkQNkTPe8m0UT5-SfBH_PU9D-29A%40mail.gmail.com.