Bug 203935 - [NEW PORT] www/py-django-statici18n: Helper for generating Javascript catalog to static files
Summary: [NEW PORT] www/py-django-statici18n: Helper for generating Javascript catalog...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Martin Wilke
URL:
Keywords: feature, patch, patch-ready
Depends on:
Blocks:
 
Reported: 2015-10-21 15:17 UTC by Ultima
Modified: 2015-12-21 14:01 UTC (History)
0 users

See Also:
Ultima1252: maintainer-feedback+


Attachments
py-django-statici18n.diff (2.91 KB, patch)
2015-10-21 15:17 UTC, Ultima
no flags Details | Diff
py-django-statici18n.shar (1.66 KB, application/x-shar)
2015-10-21 15:21 UTC, Ultima
no flags Details
102amd64-poudriere.log (19.36 KB, text/x-log)
2015-10-21 20:27 UTC, Ultima
no flags Details
102i386-poudriere.log (19.41 KB, text/x-log)
2015-10-21 20:27 UTC, Ultima
no flags Details
93amd64-poudriere.log (19.47 KB, text/x-log)
2015-10-21 20:27 UTC, Ultima
no flags Details
93i386-poudriere.log (19.46 KB, text/x-log)
2015-10-21 20:27 UTC, Ultima
no flags Details
py-django-static18n.diff (3.33 KB, patch)
2015-10-30 12:11 UTC, Ultima
Ultima1252: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ultima 2015-10-21 15:17:35 UTC
Created attachment 162298 [details]
py-django-statici18n.diff

When dealing with internationalization in JavaScript code, Django provides
the javascript_catalog view which sends out a JavaScript code library with
functions that mimic the gettext interface, plus an array of translation
strings.

At first glance, it works well and everything is fine. But, because
javascript_catalog view is generating JavaScript catalog dynamically
on each request, it's adding an overhead that can be an issue with site
growth.

WWW: https://github.com/zyegfryed/django-statici18n

https://reviews.freebsd.org/D3946
Comment 1 Ultima 2015-10-21 15:21:28 UTC
Created attachment 162299 [details]
py-django-statici18n.shar
Comment 2 Ultima 2015-10-21 20:27:12 UTC
Created attachment 162328 [details]
102amd64-poudriere.log
Comment 3 Ultima 2015-10-21 20:27:24 UTC
Created attachment 162329 [details]
102i386-poudriere.log
Comment 4 Ultima 2015-10-21 20:27:37 UTC
Created attachment 162330 [details]
93amd64-poudriere.log
Comment 5 Ultima 2015-10-21 20:27:51 UTC
Created attachment 162331 [details]
93i386-poudriere.log
Comment 6 Ultima 2015-10-30 12:11:06 UTC
Created attachment 162597 [details]
py-django-static18n.diff
Comment 7 Martin Wilke freebsd_committer freebsd_triage 2015-11-26 16:08:43 UTC
Take.
Comment 8 Martin Wilke freebsd_committer freebsd_triage 2015-12-11 08:00:50 UTC
Please resubmit as a shar, not as a diff. 

Thanks.
Comment 9 commit-hook freebsd_committer freebsd_triage 2015-12-21 14:01:13 UTC
A commit references this bug:

Author: miwi
Date: Mon Dec 21 14:00:48 UTC 2015
New revision: 404101
URL: https://svnweb.freebsd.org/changeset/ports/404101

Log:
  When dealing with internationalization in JavaScript code, Django provides
  the javascript_catalog view which sends out a JavaScript code library with
  functions that mimic the gettext interface, plus an array of translation
  strings.

  At first glance, it works well and everything is fine. But, because
  javascript_catalog view is generating JavaScript catalog dynamically
  on each request, it's adding an overhead that can be an issue with site
  growth.

  WWW: https://github.com/zyegfryed/django-statici18n

  PR:		203935
  Submitted by:	Ultima
  Approved by:  mat (mentor)
  Differential Revision: D4641

Changes:
  head/www/Makefile
  head/www/py-django-statici18n/
  head/www/py-django-statici18n/Makefile
  head/www/py-django-statici18n/distinfo
  head/www/py-django-statici18n/pkg-descr