class documentation
class JSONCatalog(JavaScriptCatalog): (source)
Return the selected language catalog as a JSON object. Receive the same parameters as JavaScriptCatalog and return a response with a JSON object of the following format: { "catalog": { # Translations catalog }, "formats": { # Language formats for date, time, etc. }, "plural": '...' # Expression for plural forms, or null. }
Method | render |
Undocumented |
Inherited from JavaScriptCatalog
:
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Class Variable | domain |
Undocumented |
Class Variable | packages |
Undocumented |
Instance Variable | translation |
Undocumented |
Property | _num |
Return the number of plurals for this catalog language, or 2 if no plural string is available. |
Property | _plural |
Return the plural string (including nplurals) for this catalog language, or None if no plural string is available. |
Inherited from View
(via JavaScriptCatalog
):
Method | __init__ |
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things. |
Method | as |
Main entry point for a request-response process. |
Method | dispatch |
Undocumented |
Method | http |
Undocumented |
Method | options |
Handle responding to requests for the OPTIONS HTTP verb. |
Method | setup |
Initialize attributes shared by all view methods. |
Class Variable | http |
Undocumented |
Instance Variable | args |
Undocumented |
Instance Variable | head |
Undocumented |
Instance Variable | kwargs |
Undocumented |
Instance Variable | request |
Undocumented |
Property | view |
Undocumented |
Method | _allowed |
Undocumented |