collective/collective.contentlicensing — pull request #6 by erral (2012-05-08 07:57:12+00:00)
Title: Several changes and improvements: remove useless code, effectively translate dates in JS code and use existing Plone code

This pull request includes several changes I have made to improve the codebase. It's a huge pull-request, but I don't know how to split in several small pull-requests so sorry :)

1. Remove duplicated code in browser.__init__.py: There were a couple of classes in __init__.py that also lie in copyrightbyline.py, so I deleted the first ones.

2. Remove useless code in browser.__init__.py. There were 2 classes that weren't referenced from anywhere (FrontpageCopyrightBylineView and ExtendedCopyrightFieldForm), so I deleted them

3. Use Plone's safe_unicode instead of custom-made unicode_sanitize

4. Use Plone's toLocalizedTime to render localized date-formats instead of explicitly formatting date in a given format for cite pop-up

5. Use zope.i18n.translate to get translated strings for cite pop-up