Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#23984 closed Cleanup/optimization (fixed)

Document all available javascript_catalog's functions

Reported by: Baptiste Mispelon Owned by: Tim Graham <timograham@…>
Component: Documentation Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: yes UI/UX: no

Description

The documentation at https://docs.djangoproject.com/en/dev/topics/i18n/translation/#using-the-javascript-translation-catalog only mentions the existence of gettext, ngettext and interpolate.

There are however a few more functions that are available [1] and we should document them.

[1] https://github.com/django/django/blob/43041ee48c802418ec935a2ece59f876f5888c40/django/views/i18n.py#L164-L171

Change History (12)

comment:1 by Tim Graham, 10 years ago

Summary: Document all available js_catalog's functionsDocument all available javascript_catalog's functions
Triage Stage: UnreviewedAccepted

comment:2 by Asif Saifuddin Auvi, 10 years ago

Owner: changed from nobody to Asif Saifuddin Auvi
Status: newassigned

comment:3 by Tim Graham, 10 years ago

Owner: Asif Saifuddin Auvi removed
Status: assignednew

comment:4 by Matt Seymour, 10 years ago

Owner: set to Matt Seymour
Status: newassigned

comment:5 by Matt Seymour, 10 years ago

Owner: Matt Seymour removed
Status: assignednew

comment:6 by David Tran, 10 years ago

Owner: set to David Tran
Status: newassigned

comment:7 by daniellindsley, 10 years ago

I put together a basic description of each function (as well as some examples). I've pushed what I've got to https://github.com/django/django/pull/4509 for review/corrections/expansions.

comment:8 by David Tran, 10 years ago

Owner: David Tran removed
Status: assignednew

comment:9 by Tim Graham, 10 years ago

Has patch: set
Patch needs improvement: set

Left some cosmetic comments.

comment:10 by Tim Graham <timograham@…>, 10 years ago

Owner: set to Tim Graham <timograham@…>
Resolution: fixed
Status: newclosed

In 8ca9bc5:

Fixed #23984 -- Added Javascript i18n documentation

This fleshes out the documentation around all of the exported
Javascript functions available from the javascript_catalog
view.

comment:11 by Tim Graham <timograham@…>, 10 years ago

In bcb53600:

[1.7.x] Fixed #23984 -- Added Javascript i18n documentation

This fleshes out the documentation around all of the exported
Javascript functions available from the javascript_catalog
view.

Backport of 8ca9bc5ec326c0b01634dac264a9ba6f0857483e from master

comment:12 by Tim Graham <timograham@…>, 10 years ago

In 1e594b25:

[1.8.x] Fixed #23984 -- Added Javascript i18n documentation

This fleshes out the documentation around all of the exported
Javascript functions available from the javascript_catalog
view.

Backport of 8ca9bc5ec326c0b01634dac264a9ba6f0857483e from master

Note: See TracTickets for help on using tickets.
Back to Top