class documentation
class JavaScriptCatalog(View): (source)
Known subclasses: django.views.i18n.JSONCatalog
Return the selected language catalog as a JavaScript library. Receive the list of packages to check for translations in the `packages` kwarg either from the extra dictionary passed to the path() function or as a plus-sign delimited string from the request. Default is 'django.conf'. You can override the gettext domain for this view, but usually you don't want to do that as JavaScript messages go to the djangojs domain. This might be needed if you deliver your JavaScript source from Django templates.
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | render |
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
:
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 |