Red Hat Bugzilla – Bug 978072
RFE: Support roff as an uploadable format via the WebUI
Last modified: 2015-08-06 01:55:01 EDT
At the moment, manpage translation requires a tool like po4a on the translator's or maintainer's side. If Zanata could support roff natively, it would lower the barrier to engagement in translating manpages: Zanata would read the roff files and output PO files that would be packaged with the software.
Created attachment 765330 [details]
manpage for touch
Just looking at how we ship translated manpages; they're roff in the sources too, so it would make sense to be able to output roff rather than just PO.
Also attaching a sample roff file for Isaac :)
.roff format localization reference sites -
Some items to test:
1. Output from hook commands is shown by default.
2. Output from hook commands can be hidden if the attribute "quiet" is true.
3. "After" hooks can be run unconditionally if the attribute "always" is true, if a push/pull fails, or if a preceding hook fails.
4. Child process is terminated if the zanata client process is interrupted (eg Ctrl-C).
Help Documentation should be located in zanata,org and under the section that explain how to use client.
Added link from zanata.org client configuration instructions to command hook instructions on the Zanata wiki.
See paragraph near the end of http://zanata.org/help/cli/cli-configuration/
Reading through the description and comments, I don't believe this feature was delivered in the requested form. What was delivered seems to be a workaround. To elaborate:
* "manpage translation requires a tool like po4a on the translator's or maintainer's side"
This is still the case, the hook needs to be operated on the user's side.
* "...could support roff natively, it would lower the barrier to engagement in translating manpages"
Someone with enough understanding of the configuration would have worked this out for themselves. The point seems to be it's for the average user, to upload and download roff files as per any other file.
* "Zanata would read the roff files..."
It does not - this is done before Zanata gets it. See previous point.
Perhaps there's something I missed, a decision to not directly support .roff but to do so in a "upload hook" manner that has been neglected to detail here.
Ruedigner, do you think the command hook in zanata.xml is sufficient for your need. Or you still want native push/pull support. (That is, roff can be uploaded and downloaded through Web UI).
We can't implement native support for every file format under the sun directly in Zanata, for reasons of server security and development capacity, which is why we chose a more general solution which will allow Zanata client to work with any format which has command-line converters.
Command hooks provide a solution not just for roff, but for other file formats too. But perhaps we should have split it out into a separate RFE, and left this one alone.
The functionality of command hook in zanata.xml is now traced by Bug 1038449
So what's the status on this feature at this point?
(In reply to Akira TAGOH from comment #12)
> So what's the status on this feature at this point?
At the moment the command hook feature has been implemented as a workaround to prevent having to manually run roff conversion scripts (initial setup is still required), but there is no native support for roff. I do not know of any immediate plan to work on this in the next couple of months.
If we find a good java library that can parse roff format, I think this could be achieved without much effort, but if we have to write a roff parser ourselves we will have to wait until we have more available time.
This feature is no longer a priority for CCS; closing