canvas-lms/script
Jon Jensen 8192132c3e i18nliner-js (part I)
this swaps out our "parsing" with i18nliner-js

also remove localization abilities of I18n.beforeLabel, since it's not
worth the trouble to support. it can still be called to format a string.

notable changes/fixes in generated yml:
1. client_apps are picked up by i18n:rake so they'll get translated...
   due to the old short-circuiting logic (`rc = rc && ...`), it would
   stop processing scripts within a particular file after the first one
   it found without an I18n.t
2. we no longer incorrectly double-escape special chars in our js strings
   (e.g. newlines are actually newlines, not a literal "\n")

test plan:
1. verify string extraction:
   1. `rake js:generate i18n:generate` before and after this commit
   2. confirm `config/locales/generated/en.yml` is identical, except the
      notable changes/fixes listed above
2. verify js translation file generation:
   1. `rake i18n:generate_js` before and after this commit
   2. confirm the files in public/javascripts/translations are identical
3. verify client_app checker still works:
   1. `cd client_apps/canvas_quiz_statistics/`
   2. `grunt check_i18n`

Change-Id: Ic8ad058bee1c9476f42916f10b612c1c08863fe3
Reviewed-on: https://gerrit.instructure.com/42809
Reviewed-by: Michael Ziwisky <mziwisky@instructure.com>
Product-Review: Michael Ziwisky <mziwisky@instructure.com>
QA-Review: Michael Ziwisky <mziwisky@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2014-10-30 06:25:36 +00:00
..
performance add File.expand_path for ruby version compatibility 2013-03-18 12:25:14 -06:00
process add File.expand_path for ruby version compatibility 2013-03-18 12:25:14 -06:00
about Initial commit. 2011-01-31 18:57:29 -07:00
autospec remove 1.8 compatibility shims 2013-05-03 01:43:52 +00:00
canvas_init oh whoops, bash might not always be the default shell 2011-02-11 12:33:24 -07:00
canvas_update fix canvas_update script sass compilation 2014-09-02 19:54:03 +00:00
compile-sass.js make sure compile-sass exists with non-zero exit code on fail 2014-08-15 18:27:40 +00:00
compile-sass_worker.js make sure compile-sass exists with non-zero exit code on fail 2014-08-15 18:27:40 +00:00
compress.js make rake canvas:compile_assets a TON faster 2014-04-17 19:47:17 +00:00
compress_worker.js make rake canvas:compile_assets a TON faster 2014-04-17 19:47:17 +00:00
delayed_job extract delayed_job plugin into separate gem 2014-10-24 20:46:00 +00:00
gem_npm i18nliner-js (part I) 2014-10-30 06:25:36 +00:00
migration_lint loosen up migration_lint for rails 3 2014-07-31 15:40:53 +00:00
process_incoming_emails extract incoming mail into gem 2014-04-25 23:06:02 +00:00
rails fix double requiring of application.rb 2014-09-09 00:42:50 +00:00
render_json_lint to_json unnecessary (and wrongish) in render :json 2013-10-02 18:05:22 +00:00
startup.bat start adding rails 3.0 support 2013-03-22 19:08:40 +00:00