silverstripe-australia/advancedworkflow — pull request #192 by madmatt (2014-08-07 23:32:30+00:00)
Title: FIX: Include i18n JS where it's required

Previously, the i18n JS was only included when going to the Workflows section of the CMS, which was fine when it was built. The translations are now also used by the EmbargoExpiry extension, so if went straight to the 'Pages' section of the CMS, the translations weren't being included by the CMS.

I didn't include fallback strings into each of the _t() calls, but I can do if you'd prefer? I wasn't sure if we should still be providing these or not - in this case it would have always used the fallback string, which wouldn't be much use in other languages.