Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Devise 'translation missing' error with subclassed controller

I've subclassed Devise::RegistrationsController. The subclassed controller, in my case, is AdminRegistrationsController.

But, when I sign up a new admin, for example, the flash shows the message:

translation missing: en.devise.admin_registrations.admin.signed_up

I've verified an entry exists in config/locales/devise.en.yml. Here's the snippet:

en:
  devise:
    registrations:
      signed_up: 'Welcome! You have signed up successfully.'

What am I missing?

like image 322
David Nix Avatar asked Jul 23 '12 21:07

David Nix


People also ask

How do I resolve a missing translation error?

To fix this, head to your language editor within the admin (Online store > Themes > Actions > Edit Languages). From there, you should see the notice for the missing translation. You can just fill the words back in and then this error should be resolved.

Why is my Sid to name translation not working?

SID to name translation can be effected if SMB signing is required on one side, but not enabled on the other. Since we have an external domain trust, NTLM authentication is used. It is possible that this configuration mismatch will block SID to name translation. When resolved, the trace should look similar to this:

How do I troubleshoot translation issues on my target DC?

You can check to see if the policy is enabled on your target DC by running GPRESULT /h gpresult.html . There are some instances where translation is still not occurring. At this point, the best way to troubleshoot is with a network capture from both sides. You can take a network trace using Microsoft Network Monitor 3.4 .

How do I enable translation in Windows 10?

You will find this policy in Computer Configuration->Windows Settings->Security Settings->Local Policies->Security Options . It should be noted that by enabling this policy, domain controllers will allow translations to occur even if the user is anonymous or sends bad credentials.


1 Answers

You must do this :

en:
  devise:
    admin_registrations:
      admin:
        signed_up: 'Welcome! You have signed up successfully.'
like image 148
Dougui Avatar answered Oct 02 '22 14:10

Dougui