Opened 8 years ago

Closed 8 years ago

Last modified 8 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 Changed 8 years ago by Tim Graham

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

comment:2 Changed 8 years ago by Asif Saifuddin Auvi

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

comment:3 Changed 8 years ago by Tim Graham

Owner: Asif Saifuddin Auvi deleted
Status: assignednew

comment:4 Changed 8 years ago by Matt Seymour

Owner: set to Matt Seymour
Status: newassigned

comment:5 Changed 8 years ago by Matt Seymour

Owner: Matt Seymour deleted
Status: assignednew

comment:6 Changed 8 years ago by David Tran

Owner: set to David Tran
Status: newassigned

comment:7 Changed 8 years ago by daniellindsley

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 Changed 8 years ago by David Tran

Owner: David Tran deleted
Status: assignednew

comment:9 Changed 8 years ago by Tim Graham

Has patch: set
Patch needs improvement: set

Left some cosmetic comments.

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

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 Changed 8 years ago by Tim Graham <timograham@…>

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 Changed 8 years ago by Tim Graham <timograham@…>

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