[zanata-bugs] [Bug 831887] New: RFE: List Translation Details for a Document

bugzilla at redhat.com bugzilla at redhat.com
Thu Jun 14 02:26:54 UTC 2012


https://bugzilla.redhat.com/show_bug.cgi?id=831887

            Bug ID: 831887
        QA Contact: dchen at redhat.com
          Severity: unspecified
           Version: unspecified
          Priority: unspecified
                CC: mcaspers at redhat.com, sflaniga at redhat.com,
                    zanata-bugs at redhat.com
          Assignee: runab at redhat.com
           Summary: RFE: List Translation Details for a Document
        Regression: ---
      Story Points: ---
    Classification: Community
                OS: Unspecified
          Reporter: lnewson at redhat.com
              Type: Bug
     Documentation: ---
          Hardware: Unspecified
        Mount Type: ---
            Status: NEW
         Component: Component-Logic
           Product: Zanata

Separated from Bug #759983 request number 3.

Currently via the REST API there is no way to find what translations exist for
a Source Document. As such you need to send a request for each translation to
see if it exists. eg.

http://zanatatest.usersys.redhat.com/rest/projects/p/skynet/iterations/i/1/r/4767-48873/translations/pt-BR

Sean mentioned he believed the ITranslationResources.getResource() function
would do this but it only makes a call to the URL above. So if you don't know
what translations exist for each document then you are just sending requests
that are going to return a 404 response or a 403 response if the locale isn't
setup. eg.

404 response:
http://zanatatest.usersys.redhat.com/rest/projects/p/skynet/iterations/i/1/r/8816-134374/translations/pt-BR

403 response:
http://zanatatest.usersys.redhat.com/rest/projects/p/skynet/iterations/i/1/r/8816-134374/translations/ar

Currently using the ITranslationResources service and the Source Document all
you can do is get the Translation Strings for that Document. eg.

http://zanatatest.usersys.redhat.com/rest/projects/p/skynet/iterations/i/1/r/8816-134374/

As such it would be handy and something that would save a number of requests,
is if you could do a rest query to find out information about each Source
Document or Translated Document. eg. What translations exist for the document,
when it was last modified, etc..

An example query to list the available translations maybe something like:

http://zanatatest.usersys.redhat.com/rest/projects/p/skynet/iterations/i/1/r/8816-134374/translations

If anything is unclear let me know and I'll clear it up.

-- 
You are receiving this mail because:
You are on the CC list for the bug.




More information about the zanata-bugs mailing list