Updated fr translation

Change-Id: I3e879ba10d1dc48cd84b36715be2fea14bb4f309
Updated pl translation

Change-Id: I9e68c1c5758b27cf2518724695a89c1d7556074e
Updated pt-BR translation

Change-Id: I6672b1f4c0501117142fe1e1bcecd94ac32e1380
add conditional feature flag on quiz stats

closes CNVS-14678
This commit allows the quiz stats feature flag to be registered only when
within the beta environment (or development or test). It should not be available in production.

Test plan
- Deploy normally to your QA portal.  The 'quiz stats' feature flag should
  be available and operational.
- Remove the testcluster.yml file from your config/ directory (or move
  / back it up to a safe place)
- Restart your QA portal.
- The quiz stats feature flag should not be available or visible.

Change-Id: If51af6bae18b31fed8f7b2d666f59562ad0fb18e
Reviewed-on: https://gerrit.instructure.com/39330
Reviewed-by: Derek DeVries <ddevries@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Josh Simpson <jsimpson@instructure.com>
fix i18n scope inference in views, fixes CNVS-14815

this broke with the rails 3 upgrade

1. `render :collection` was not getting the correct scope (it just kept
   the parent's)
2. `render :partial` was not getting the correct scope if the partial was
   in the same directory as the main template, e.g.
   `render :partial => 'courses_right_side'` would have courses_right_side
   as its scope instead of the correct accounts.courses_right_side

test plan:
1. run canvas with RAILS_LOAD_ALL_LOCALES=true
2. change your language from english
3. go to the accounts show page
4. behold the translated strings (in particular the right sidebar, and the
   various counts/stats for each course in the main content area)
5. confirm that i18n is working elsewhere
6. note: if you're regression testing i18n everywhere, you'll also need to
   compile assets and run canvas with USE_OPTIMIZED_JS=true to get
   translations working in javascript land. that's technically not needed
   to verify this commit, but it'll eliminate any false positives

Change-Id: I594a403f7d4611e74c76ff05e9fb7542c6d3a80d
Reviewed-on: https://gerrit.instructure.com/39399
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>

Conflicts:
	config/initializers/i18n.rb
rails3: fix posting to the sis import api without a content-type

fixes CNVS-14808

test plan:

Post a zip file to the sis import API, without specifying the content-type:

   curl --data-binary "@zip_file_.zip" -H "Authorization: ..." 'http://canvas.dev/api/v1/accounts/self/sis_imports.json?import_type=instructure_csv'

The post should succeed, and the CSVs inside the zip should SIS process without error.

Change-Id: Ib97c3ba7475543fd03089400df4747b644645ca7
Reviewed-on: https://gerrit.instructure.com/39410
Reviewed-by: Cody Cutrer <cody@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
Tested-by: Brian Palmer <brianp@instructure.com>
rails3: fix posting to the sis import api without a content-type

fixes CNVS-14808

test plan:

Post a zip file to the sis import API, without specifying the content-type:

   curl --data-binary "@zip_file_.zip" -H "Authorization: ..." 'http://canvas.dev/api/v1/accounts/self/sis_imports.json?import_type=instructure_csv'

The post should succeed, and the CSVs inside the zip should SIS process without error.

Change-Id: Ib97c3ba7475543fd03089400df4747b644645ca7
Reviewed-on: https://gerrit.instructure.com/39410
Reviewed-by: Cody Cutrer <cody@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
Tested-by: Brian Palmer <brianp@instructure.com>

Conflicts:
	config/application.rb
pin the ims-lti gem

Change-Id: Ice371b54b6aa4781af2d7ef77201dfb201987cd2
Reviewed-on: https://gerrit.instructure.com/39421
Reviewed-by: Bryan Madsen <bryan@instructure.com>
Product-Review: Bryan Madsen <bryan@instructure.com>
QA-Review: Bryan Madsen <bryan@instructure.com>
Tested-by: Bryan Madsen <bryan@instructure.com>
enable Audit log search

refs: CNVS-14114
refs: CNVS-13987

Test Plan:

Reference: g/37503

Message in admin tools should be gone and drop down should be visible.
The funcionality should behave as it was before it was disabled.

Hit an Audit log api call and it should work as it was before we
disabled it.

Change-Id: I13eac39aece25dff28b403eb733060e8b3a7f338
Reviewed-on: https://gerrit.instructure.com/37541
Reviewed-by: Jacob Fugal <jacob@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Nick Cloward <ncloward@instructure.com>
fix audit records as they are queried

refs: CNVS-13987

Adds a parameter to event stream that allows us to add in a method to fix the
data before the event stream pulls the records.  Once the fixup is complete we
should remove these changes.

Requres g/37541.

Test Plan:

  - Corrupt some Audit log data for authentications, grade changes, and course
    changes.
  - Do not run the data fixup.
  - Use the UI or API endpoints to query the corrupted records.
  - Should fix the corrupted indexes for the corrupted records.
  - Should return corrupted event type records in results just as if the data
    fixup has ran on the records.
  - Should behave normally on records that are not corrupted or have never been
    corrupted.

Reference g/37605 for setting up corrupted event data.

Change-Id: Id0e1278c7d377ef836866e2e146e2b52887fdc68
Reviewed-on: https://gerrit.instructure.com/39089
Reviewed-by: Jacob Fugal <jacob@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Nick Cloward <ncloward@instructure.com>
I18n JS parser: support precompiled assets

This patch makes `i18n:check` and `i18n:generate_js` able to parse
source files that may contain more than one AMD module. Usage is
described in the gem's (newly added) README.md file.

Closes CNVS-14691

TEST PLAN
---- ----

  - make sure `i18n:generate` and `i18n:check` rake tasks work

Change-Id: Ic1280c0b31fd274da2529ebeac7f72f72934f1ab
Reviewed-on: https://gerrit.instructure.com/39014
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
Preview quiz: show the correct points possible

Closes CNVS-3856

TEST PLAN
---- ----

  - create a quiz with 3 questions with points possible: 0.42, 0.23, 1
  - preview the quiz and get all the questions correctly
    - verify you see "1.65 out of 1.65"
  - retry with failing some questions
    - verify you get the correct score shown

Change-Id: Ib7e830adce26b2c2346eb3a4149e4bc0406a9d35
Reviewed-on: https://gerrit.instructure.com/39295
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Ryan Taylor <rtaylor@instructure.com>
Reviewed-by: Josh Simpson <jsimpson@instructure.com>
Product-Review: Ahmad Amireh <ahmad@instructure.com>
Updated es translation

Change-Id: I60f14b81c5dd622f3806c318688dfe0e66bb2b60
Updated pt translation

Change-Id: I94c9fcf242a919da3c613c71cfbaa732d04bb816
Updated nb translation

Change-Id: I88ba4e39363696034558e3b366af9172d8eb584f
Updated en-GB translation

Change-Id: I9046968b06d46efe1efc6b2b48caaf432b6bfbd1
Updated tr translation

Change-Id: I5f83bb1e8b85197fc3473e276eea05f982224bfc
Updated es translation

Change-Id: I404238977482a65abf6fae366d754746239ded60
Updated tr translation

Change-Id: I975939a0decc1684bb7d36971310eb72e0edef6a
revert DA grading to fix grade calc performance regression

this reverts part of b4840c75cc2902159fc7fa826facc43921d2ac2b

fixes CNVS-14840

test plan:
- with differentiated assignments off, grading should work correctly
- in a course with many assignments, you should be able to download the
  gradebook csv
- with differentiated assignments on, grading will not work correctly, this is
  intentional.

Change-Id: Id910ff28763ba13c529a21d4c125a164e094aeac
Reviewed-on: https://gerrit.instructure.com/39436
Reviewed-by: Mike Nomitch <mnomitch@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>