Opened 2 years ago

Closed 2 years ago

#33722 closed Cleanup/optimization (wontfix)

Change default domain in JavaScriptCatalog view from 'djangojs' to 'django'.

Reported by: Wim Feijen Owned by: nobody
Component: Internationalization Version: 4.0
Severity: Normal Keywords:
Cc: Claude Paroz Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi,

When using "makemessages -l nl" and "compilemessages -l nl" , Django creates "django.po" and "django.po" files by default.

However, when using JavaScriptCatalog view, it supposes that the default domain is "djangojs", which is different. I find this confusing.

My proposal is to change the default domain to "django" in Javascriptcatalog; or else to check for both "django" and "djangojs" files if no domain is given.

At the least, we could change the documentation and hint that you might want to change the default to "django":

Translation domain containing strings to add in the view output. Defaults to 'djangojs'. *You might want to change this to 'django'.*

Change History (1)

comment:1 by Mariusz Felisiak, 2 years ago

Cc: Claude Paroz added
Resolution: wontfix
Status: newclosed
Summary: proposal: change default domain in JavaScriptCatalog view from 'djangojs' to 'django' in order to match the default translation file namesChange default domain in JavaScriptCatalog view from 'djangojs' to 'django'.

Different domains are used on purpose as they allow distinguishing translation from JavaScript files and .py, .txt, .html files. Using the same domain would remove the option to procees them separately and would be backward incompatible.

If you don't agree, you can start a discussion on DevelopersMailingList, where you'll reach a wider audience and see what other think.

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