Hi all fellow internationalizationists:

Testing with a sample app in Hobo1.3pre27,I have a problem overriding
some keys defined in hobo.en.yml. For example, if I redefine the
<login-page> tag to include this:

     <a href="&forgot_password_url" param="forgot-password"
if="&forgot_password_url">
          <t key="hobo.login.forgot_password">Forgot your password?</
t>
     </a>

I thought I could replace the hobo.login.forgot_password key in
hobo.en.yml with a string of my choosing.

e.g.

en:
  hobo:
    login:
      forgot_password: "Help!"

But, when I do so, the key is ignored and "Forgot your password?" is
always displayed. Why?

Shouldn't this tag definition be using <ht>?

When I do try to make it use <ht> as follows:

    <a href="&forgot_password_url" param="forgot-password"
if="&forgot_password_url">
       <ht key="hobo.login.forgot_password"></ht>
    </a>

I get:

    ActionView::Template::Error (wrong model name: "hobo" (extracted
from translation key: "hobo.login.forgot_password"). You might want to
use the translate/t tag/method instead.)

So what is the correct model name if it isn't "hobo"?

I've checked with
    app1::Application.config.hobo.show_translation_keys = true

and see that the keys are definitely being loaded for the login page.

Am I missing something?

Thanks,
Tim

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to