fix i18n scope inference in views, fixes CNVS-14815
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

grahamb/canvas-lms,venturehive/canvas-lms,roxolan/canvas-lms,shidao-fm/canvas-lms,wrdsb/canvas-lms,sdeleon28/canvas-lms,samuels410/greatlakes-lms,greyhwndz/canvas-lms,Jyaasa/canvas-lms,samuels410/greatlakes-lms,Jyaasa/canvas-lms,venturehive/canvas-lms,sfu/canvas-lms,ShreniiNepal/shrenii_lmp,antoniuslin/canvas-lms,va7map/canvas-lms,fronteerio/canvas-lms,Jyaasa/canvas-lms,efrj/canvas-lms,fronteerio/canvas-lms,greyhwndz/canvas-lms,HotChalk/canvas-lms,Rvor/canvas-lms,roxolan/canvas-lms,utkarshx/canvas-lms,sdeleon28/canvas-lms,djbender/canvas-lms,skmezanul/canvas-lms,HotChalk/canvas-lms,grahamb/canvas-lms,wrdsb/canvas-lms,leftplusrightllc/canvas-lms,tgroshon/canvas-lms,juoni/canvas-lms,sfu/canvas-lms,venturehive/canvas-lms,leftplusrightllc/canvas-lms,sfu/canvas-lms,tgroshon/canvas-lms,grahamb/canvas-lms,utkarshx/canvas-lms,fronteerio/canvas-lms,greyhwndz/canvas-lms,wye0220/shindig-canvas,ShreniiNepal/shrenii_lmp,redconfetti/canvas-lms,antoniuslin/canvas-lms,sdeleon28/canvas-lms,sdeleon28/canvas-lms,efrj/canvas-lms,juoni/canvas-lms,antoniuslin/canvas-lms,redconfetti/canvas-lms,Rvor/canvas-lms,whalejasmine/canvas-lms,jay3126/canvas-lms,whalejasmine/canvas-lms,skmezanul/canvas-lms,HotChalk/canvas-lms,sfu/canvas-lms,roxolan/canvas-lms,wrdsb/canvas-lms,sfu/canvas-lms,Rvor/canvas-lms,skmezanul/canvas-lms,va7map/canvas-lms,redconfetti/canvas-lms,shidao-fm/canvas-lms,Rvor/canvas-lms,SwinburneOnline/canvas-lms,redconfetti/canvas-lms,jay3126/canvas-lms,roxolan/canvas-lms,Unow/canvas-lms,va7map/canvas-lms,kyroskoh/canvas-lms,venturehive/canvas-lms,juoni/canvas-lms,wye0220/shindig-canvas,SwinburneOnline/canvas-lms,grahamb/canvas-lms,tgroshon/canvas-lms,kyroskoh/canvas-lms,utkarshx/canvas-lms,Unow/canvas-lms,djbender/canvas-lms,leftplusrightllc/canvas-lms,antoniuslin/canvas-lms,shidao-fm/canvas-lms,SwinburneOnline/canvas-lms,fronteerio/canvas-lms,samuels410/greatlakes-lms,tgroshon/canvas-lms,efrj/canvas-lms,Unow/canvas-lms,utkarshx/canvas-lms,jay3126/canvas-lms,va7map/canvas-lms,jay3126/canvas-lms,whalejasmine/canvas-lms,HotChalk/canvas-lms,ShreniiNepal/shrenii_lmp,djbender/canvas-lms,greyhwndz/canvas-lms,sfu/canvas-lms,skmezanul/canvas-lms,juoni/canvas-lms,Jyaasa/canvas-lms,grahamb/canvas-lms,leftplusrightllc/canvas-lms,efrj/canvas-lms,sfu/canvas-lms,SwinburneOnline/canvas-lms,kyroskoh/canvas-lms,kyroskoh/canvas-lms,whalejasmine/canvas-lms,shidao-fm/canvas-lms,ShreniiNepal/shrenii_lmp,samuels410/greatlakes-lms,djbender/canvas-lms,wrdsb/canvas-lms,wye0220/shindig-canvas