title: Localize "Sign in" and "Sign up" in Rails
body: <p>Is it possible to provide different <strong>submit button</strong> values depending on the current controller/view?</p>
  
  <p>So having 2 views:</p>
  
  <pre><code>=# app/views/devise/sessions.new.html.haml
  %h2 Sign in
  = simple_form_for(resource, :as =&gt; resource_name, :url =&gt; session_path(resource_name)) do |f|
    = f.input :email
    = f.input :password
    = f.input :remember_me, as: :boolean
    = f.button :submit
  </code></pre>
  
  <p>and</p>
  
  <pre><code>=# app/views/registrations/new.html.haml
  = simple_form_for(resource, :as =&gt; resource_name, :url =&gt; registration_path(resource_name)) do |f|
    = devise_error_messages!
    = f.input :first_name
    = f.input :last_name
    = f.input :email
    = f.input :password
    = f.input :password_confirmation
    = f.button :submit
  </code></pre>
  
  <p>I want to show <strong>Sign in</strong> on the first and <strong>Sign up</strong> on the 2nd view <strong>without changing the view</strong> itself.</p>
  
  <p>FYI, Localising <code>submit</code> buttons is possible via:</p>
  
  <pre><code># config/locales/en.yml
  en:
    helpers:
      submit:
        user:
          create: 'Sign up'
  </code></pre>
  
  <p>But unfortunately I can't see how to distinguish between the views above (or controllers) to give different messages for submit buttons.</p>
  
  <p>So the <strong>question</strong> is how the <code>en.yml</code> file should look like to achieve that?</p>