       ).scrollTop 0
     # Load template section from locale-specific file.
     locale   = DEFAULT_LOCALE
-    uiLocale = utils.i18n '@@ui_locale'
+    uiLocale = i18n.get '@@ui_locale'
     for loc in LOCALES when loc is uiLocale
       locale = uiLocale
       break

  $('.import_paste_btn').live('click', ->
    $('.import_file_btn').val ''
    $('.import_content').val ext.paste()
    $(this).text utils.i18n 'pasted'
  ).live 'mouseover', ->
    $(this).text utils.i18n 'paste'
  # Select all of the templates in the list.
  $('.import_select_all_btn').live 'click', ->
    $('.import_con_list option').attr('selected', 'selected').parent().focus()

loadToolbar = ->
  $('input[name="toolbar_behaviour"]').each ->
    $this = $ this
    $this.attr 'checked', 'checked' if store.get $this.attr 'id'
  if store.get 'toolbarPopupClose'
    $('#toolbarPopupClose').attr 'checked', 'checked'
  else
    $('#toolbarPopupClose').removeAttr 'checked'
  if store.get 'toolbarTemplateDetails'
    $('#toolbarTemplateDetails').attr 'checked', 'checked'
  else
    $('#toolbarTemplateDetails').removeAttr 'checked'
