class documentation

class JavaScriptCatalog(View): (source)

Known subclasses: django.views.i18n.JSONCatalog

View In Hierarchy

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_catalog Undocumented
Method get_context_data Undocumented
Method get_paths Undocumented
Method get_plural Undocumented
Method render_to_response Undocumented
Class Variable domain Undocumented
Class Variable packages Undocumented
Instance Variable translation Undocumented
Property _num_plurals Return the number of plurals for this catalog language, or 2 if no plural string is available.
Property _plural_string 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_view Main entry point for a request-response process.
Method dispatch Undocumented
Method http_method_not_allowed Undocumented
Method options Handle responding to requests for the OPTIONS HTTP verb.
Method setup Initialize attributes shared by all view methods.
Class Variable http_method_names Undocumented
Instance Variable args Undocumented
Instance Variable head Undocumented
Instance Variable kwargs Undocumented
Instance Variable request Undocumented
Property view_is_async Undocumented
Method _allowed_methods Undocumented
def get(self, request, *args, **kwargs): (source)

Undocumented

def get_catalog(self): (source)

Undocumented

def get_context_data(self, **kwargs): (source)

Undocumented

def get_paths(self, packages): (source)

Undocumented

def get_plural(self): (source)

Undocumented

def render_to_response(self, context, **response_kwargs): (source)

Undocumented

Undocumented

packages = (source)

Undocumented

translation = (source)

Undocumented

@property
_num_plurals = (source)

Return the number of plurals for this catalog language, or 2 if no plural string is available.

@property
_plural_string = (source)

Return the plural string (including nplurals) for this catalog language, or None if no plural string is available.