   try
     data = JSON.parse str
   catch error
-    throw utils.i18n 'error_import_data'
+    throw i18n.get 'error_import_data'
   if not $.isArray(data.templates) or data.templates.length is 0 or
      typeof data.version isnt 'string'
-    throw utils.i18n 'error_import_invalid'
+    throw i18n.get 'error_import_invalid'
   data
 
 # Create a template with the information derived from the specified `option` 


# Update the settings with the values from the options page.
save = ->
  utils.set
    contextMenu:    $('#contextMenu').is ':checked'
    shortcuts:      $('#shortcuts').is ':checked'
    doAnchorTarget: $('#doAnchorTarget').is ':checked'

      name:     template.name
      readOnly: no
      shortcut: ''
      title:    i18n.get 'untitled'
      usage:    template.usage
    # Only allow existing images.
    newTemplate.image = template.image if template.image in ext.IMAGES
