       formFieldsError: 'Форма заполнена с ошибками'
 
   # use I18n, and modify locale and translations
-  _initTranslations: ->
+  _initTranslations: (options) ->
     @translations ||= {}
-    if not @options['locale'] and I18n?.locale of @constructor.defaultLocales
+    if not options['locale'] and I18n?.locale of @constructor.defaultLocales
       @locale = I18n.locale
     _.defaults @translations, @constructor.defaultLocales[@locale]
 

        @ajaxSuccess a.data, a.jqXHR


  _configure: (options) ->
    super
    @_initTranslations()

  locale: 'en'
  translations: null

    _events

  initialize: (options) ->
    @_initTranslations options
    # init flashes come from server in page
    @jFlashes().each (index, flash) =>
      jFlash = $(flash)
