app/models/optimacms/template.rb
def build_translations
      #
      if is_translated
        langs = Language.list_with_default
      else
        langs = ['']
      end

      #
      langs_missing = langs - self.translations.all.map{|r| r.lang}

      langs_missing.each do |lang|
        self.translations.new(:lang=>lang)
      end

    end
def build_translations
      #
      if is_translated
        langs = Language.list_with_default
      else
        langs = ['']
      end

      #
      langs_missing = langs - self.translations.all.map{|r| r.lang}

      langs_missing.each do |lang|
        self.translations.new(:lang=>lang)
      end

    end
translations