SpinaCMS / Spina

Spina CMS
http://www.spinacms.com
Other
2.19k stars 405 forks source link

Error translate pt-BR #355

Closed juizmill closed 2 years ago

juizmill commented 6 years ago

Trying to translate to pt-BR is generating this error.

juizmill@ubuntu-pc:~/dev/spina-cms $  rake spina:update_translations
rake aborted!
ActiveRecord::RecordInvalid: translation missing: pt-BR.activerecord.errors.messages.record_invalid

Tasks: TOP => spina:update_translations
(See full trace by running task with --trace)

The spina.rb file looks like this:

Spina.configure do |config|
  # Set locales
  config.locales = ["pt-BR"]
  # Run `rake spina:update_translations` after you add any new locale.

  # Important Note
  # ==============

  # You MUST restart your server before changes to this file
  # will take effect.

  # Specify a backend path. Defaults to /admin.
  # config.backend_path = 'admin'

  # Pages Options
  # ===============

  # Note that you might need to remove cached asset after changing this value
  # config.max_page_depth = 5
end
dankmitchell commented 6 years ago

You need to include this gem https://github.com/svenfuchs/rails-i18n/blob/master/README.md

But then you might run into this issue https://github.com/SpinaCMS/Spina/issues/348

juizmill commented 6 years ago

Includes gem! Now I have this error

juizmill@ubuntu-pc:~/dev/spina-cms $ rake spina:update_translations
rake aborted!
ActiveRecord::RecordInvalid: Validation failed: Title can not be empty

Tasks: TOP => spina:update_translations
(See full trace by running task with --trace)

Can you tell what title this is?

matzetpl commented 5 years ago

Its possible to fast fix?

jhovad commented 5 years ago

I have the same problem with :cs locale on the new project, ... So it's not about #348 ... There is not very much information within the --trace ...

Maybe it's something to do with move from Globalize to Mobility ... ?

Thx for the hint/fix.

daltonrenaldo commented 5 years ago

Has anyone found a fix for this? I am running into it trying to update_translations to french.

ActiveRecord::RecordInvalid: La validation a échoué : Titre doit être rempli(e)

which is the same error as @juizmill was getting

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.