Changes between Initial Version and Version 1 of XmlRpcGetAvailableTranslations


Ignore:
Timestamp:
Sep 28, 2008, 12:03:13 PM (16 years ago)
Author:
guest
Comment:

Created this page [Majky]

Legend:

Unmodified
Added
Removed
Modified
  • XmlRpcGetAvailableTranslations

    v1 v1  
     1
     2[[PageOutline(3-4, Sections)]]
     3
     4== !GetAvailableTranslations ==
     5
     6=== Intro ===
     7
     8  get available translations for given program
     9
     10
     11----
     12=== Description ===
     13
     14  '''struct !GetAvailableTranslations(string $token, string $program)'''
     15 
     16  Returns a structure containing all available translations for a program ''program''.
     17 
     18  Currently supported programs are ''subdownloader'' and ''oscar''.
     19 
     20
     21----
     22=== Parameters ===
     23
     24  ''token (required)''::
     25    token string identifying user's session, taken from [wiki:XmlRpcLogIn LogIn] output structure.
     26  ''program''::
     27      * name of the program/client application you want translations for.
     28      * currently supported values: ''subdownloader'', ''oscar''
     29
     30
     31----
     32=== Return Values ===
     33
     34  Output is returned in this structure:
     35
     36{{{
     37struct(
     38  (string) [status],
     39  struct(
     40    struct(
     41      (string) [LastCreated],
     42      (string) [StringsNo]
     43    ) [<language ISO639 2-letter code>],
     44    struct(
     45    ), ... more languages go here ...
     46  ) [data],
     47  (string) [seconds]
     48)
     49}}}
     50
     51  and contains these elements:
     52    ''status''::
     53      function result code, see [wiki:XmlRpcStatusCode list of status codes]
     54    ''data''::
     55      structure of subtitle languages containing:
     56        * ''!LastCreated'': last date/time a translation was created/modified in this language
     57        * ''!StringsNo'': number of translated strings currently available in this translation         
     58    ''seconds''::
     59      time taken to execute this command on server
     60
     61
     62----
     63=== Implementations ===
     64
     65  There are currently no available sample implementations.
     66
     67
     68----
     69=== Changelog ===
     70
     71  Version 1: created this function
     72
     73
     74----
     75=== Examples ===
     76
     77
     78==== Input ====
     79 
     80{{{
     81#!xml
     82<methodCall>
     83 <methodName>GetAvailableTranslations</methodName>
     84 <params>
     85  <param>
     86   <value>
     87    <string>d5pnounn3ea5aja0nn4inqamf2</string>
     88   </value>
     89  </param>
     90  <param>
     91   <value><string>oscar</string></value>
     92  </param>
     93 </params>
     94</methodCall>
     95}}}
     96
     97 
     98==== Output ====
     99
     100{{{
     101#!xml
     102<methodResponse>
     103 <params>
     104  <param>
     105   <value>
     106    <struct>
     107     <member>
     108      <name>status</name>
     109      <value>
     110       <string>200 OK</string>
     111      </value>
     112     </member>
     113     <member>
     114      <name>data</name>
     115      <value>
     116       <struct>
     117        <member>
     118         <name>en</name>
     119         <value>
     120          <struct>
     121           <member>
     122            <name>LastCreated</name>
     123            <value><string>2007-10-19 12:44:00</string></value>
     124           </member>
     125           <member>
     126            <name>StringsNo</name>
     127            <value><string>266</string></value>
     128           </member>
     129          </struct>
     130         </value>
     131        </member>
     132       
     133        ...  more languages go here ...
     134
     135       </struct>
     136      </value>
     137     </member>
     138     <member>
     139      <name>seconds</name>
     140      <value><double>0.006</double></value>
     141     </member>
     142    </struct>
     143   </value>
     144  </param>
     145 </params>
     146</methodResponse>
     147}}}
     148
     149
     150----
     151=== Notes ===
     152
     153  none yet
     154
     155
     156----
     157=== See also ===
     158
     159  * [wiki:XmlRpcGetTranslation GetTranslation]
     160
     161
     162----
     163=== Comments ===
     164
     165        add your comments, hints and suggestions here if you like ...
     166
     167
     168--------
     169[Prev] [wiki:XmlRpcIntro Home] [wiki:XmlRpcGetTranslation Next (GetTranslation)]