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 <d95b56ce41a2e1ac4cecdd398defd7414407cc08@instructure.com>
QA-Review: Amber Taniuchi <ef4bfd1e6d278f6bc7d4a478f02be2cb9581a0a5@instructure.com>
Product-Review: Matt Fairbourn <5f353e1c97bb9cc046b9db20beca0b9392f6f1b2@instructure.com>
Reviewed-by: Cody Cutrer <c4fe2b1d90ef8f2548c8aeabfa633434316f0305@instructure.com>

redconfetti/canvas-lms,gbleydon/canvas-lms,va7map/canvas-lms,venturehive/canvas-lms,sdeleon28/canvas-lms,narigone/canvas,utkarshx/canvas-lms,shidao-fm/canvas-lms,utkarshx/canvas-lms,ShreniiNepal/shrenii_lmp,HotChalk/canvas-lms,HotChalk/canvas-lms,tgroshon/canvas-lms,antoniuslin/canvas-lms,leftplusrightllc/canvas-lms,Jyaasa/canvas-lms,wrdsb/canvas-lms,roxolan/canvas-lms,wye0220/shindig-canvas,AndranikMarkosyan/lms,sfu/canvas-lms,jay3126/canvas-lms,instructure/canvas-lms,AndranikMarkosyan/lms,kyroskoh/canvas-lms,kyroskoh/canvas-lms,eCNAP/CANVAS,utkarshx/canvas-lms,venturehive/canvas-lms,fronteerio/canvas-lms,instructure/canvas-lms,antoniuslin/canvas-lms,redconfetti/canvas-lms,instructure/canvas-lms,HotChalk/canvas-lms,juoni/canvas-lms,fronteerio/canvas-lms,roxolan/canvas-lms,dgynn/canvas-lms,Rvor/canvas-lms,Rvor/canvas-lms,redconfetti/canvas-lms,eCNAP/CANVAS,antoniuslin/canvas-lms,Jyaasa/canvas-lms,AndranikMarkosyan/lms,matematikk-mooc/canvas-lms,ShreniiNepal/shrenii_lmp,ShreniiNepal/shrenii_lmp,shidao-fm/canvas-lms,eCNAP/CANVAS,instructure/canvas-lms,grahamb/canvas-lms,narigone/canvas,ShreniiNepal/shrenii_lmp,jay3126/canvas-lms,whalejasmine/canvas-lms,whalejasmine/canvas-lms,va7map/canvas-lms,grahamb/canvas-lms,matematikk-mooc/canvas-lms,leftplusrightllc/canvas-lms,utkarshx/canvas-lms,snehakachroo1/LSI_replica,greyhwndz/canvas-lms,SwinburneOnline/canvas-lms,wye0220/shindig-canvas,sfu/canvas-lms,sfu/canvas-lms,Rvor/canvas-lms,samuels410/greatlakes-lms,instructure/canvas-lms,efrj/canvas-lms,eCNAP/CANVAS,sdeleon28/canvas-lms,djbender/canvas-lms,skmezanul/canvas-lms,matematikk-mooc/canvas-lms,instructure/canvas-lms,samuels410/greatlakes-lms,SwinburneOnline/canvas-lms,tgroshon/canvas-lms,fronteerio/canvas-lms,samuels410/greatlakes-lms,grahamb/canvas-lms,AndranikMarkosyan/lms,tgroshon/canvas-lms,va7map/canvas-lms,sdeleon28/canvas-lms,roxolan/canvas-lms,antoniuslin/canvas-lms,redconfetti/canvas-lms,venturehive/canvas-lms,shidao-fm/canvas-lms,grahamb/canvas-lms,skmezanul/canvas-lms,kyroskoh/canvas-lms,efrj/canvas-lms,sdeleon28/canvas-lms,gbleydon/canvas-lms,tgroshon/canvas-lms,va7map/canvas-lms,djbender/canvas-lms,dgynn/canvas-lms,fronteerio/canvas-lms,sfu/canvas-lms,SwinburneOnline/canvas-lms,jay3126/canvas-lms,leftplusrightllc/canvas-lms,HotChalk/canvas-lms,whalejasmine/canvas-lms,roxolan/canvas-lms,sfu/canvas-lms,djbender/canvas-lms,dgynn/canvas-lms,djbender/canvas-lms,efrj/canvas-lms,efrj/canvas-lms,sfu/canvas-lms,venturehive/canvas-lms,wrdsb/canvas-lms,SwinburneOnline/canvas-lms,skmezanul/canvas-lms,leftplusrightllc/canvas-lms,Jyaasa/canvas-lms,snehakachroo1/LSI_replica,gbleydon/canvas-lms,snehakachroo1/LSI_replica,greyhwndz/canvas-lms,Jyaasa/canvas-lms,juoni/canvas-lms,wrdsb/canvas-lms,sfu/canvas-lms,instructure/canvas-lms,grahamb/canvas-lms,narigone/canvas,greyhwndz/canvas-lms,jay3126/canvas-lms,juoni/canvas-lms,wrdsb/canvas-lms,shidao-fm/canvas-lms,Rvor/canvas-lms,samuels410/greatlakes-lms,snehakachroo1/LSI_replica,wye0220/shindig-canvas,matematikk-mooc/canvas-lms,dgynn/canvas-lms,greyhwndz/canvas-lms,juoni/canvas-lms,whalejasmine/canvas-lms,narigone/canvas,kyroskoh/canvas-lms,skmezanul/canvas-lms