authlogic icon indicating copy to clipboard operation
authlogic copied to clipboard

some i18n keys missing?

Open ghost opened this issue 17 years ago • 14 comments

Hello, I think there still are some keys missing.

I can’t translate during validation :

model names :

user_session user

attributes :

all the attributes for user

The rest is working just fine.

I’m using the latest gem.

original LH ticket

This ticket has 0 attachment(s).

ghost avatar Aug 07 '09 22:08 ghost

some i18n keys missing?

My locale file looks like this : @@@ fr: authlogic: error_messages: login_blank: ne peut être vide login_not_found: n’existe pas login_invalid: ne doit utiliser que des lettres, des chiffres, des espaces et .-_@ consecutive_failed_logins_limit_exceeded: Trop d’échecs d’authentification consécutifs, le compte est désactivé. email_invalid: "doit ressembler à une adresse email. Ex : [email protected]" password_blank: ne peut être vide password_invalid: n’est pas valide not_active: Votre compte n’est pas actif not_confirmed: Votre compte n’est pas validé not_approved: Votre compte n’est pas approuvé no_authentication_details: Vous n’avez fourni aucune information permettant votre authentification models: user_session: UserSession user: User attributes: user_session: username: le nom d’utilisateur login: le nom d’utilisateur email: l’email password: le mot de passe remember_me: "se souvenir de moi" user: username: le nom d’utilisateur email: "l’email" password: le mot de passe @@@

My two AuthLogic related models are :

UserSession & User

by Benoit B.

ghost avatar Aug 07 '09 22:08 ghost

Hi, I have also having trouble with model: user_session translation.

It seems that it does not want to translate user_session at all.

I am using Rails2.3.4 & Ruby1.9

fadhlirahim avatar Oct 14 '09 13:10 fadhlirahim

I'm having the same problem....

bezelga avatar Jan 03 '10 16:01 bezelga

Me too, with Rails 2.3.5 and Ruby 1.8.6.

nowhereman avatar Feb 16 '10 11:02 nowhereman

+1 for me, Rails 2.3.5 & Ruby 1.8.7

astropanic avatar Feb 19 '10 16:02 astropanic

+1 for me too, Rails 2.3.5 & Ruby 1.8.7

orangewise avatar Apr 15 '10 06:04 orangewise

+1, i18n doesn't work on the User model for Rails 2.3.5

isc avatar Apr 22 '10 15:04 isc

My bad, it actually works. I finally found the I18n module documentation page and discovered the translation keys that are used. I had assumed that it would use the activerecord translation keys.

isc avatar Apr 22 '10 16:04 isc

Hi isc, can you share your solution?

orangewise avatar Apr 22 '10 17:04 orangewise

I used the list of keys defined on this page: http://rdoc.info/rdoc/binarylogic/authlogic/blob/85b2a6b3e9993b18c7fb1e4f7b9c6d01cc8b5d17/Authlogic/I18n.html

isc avatar Apr 22 '10 18:04 isc

models:
  user_session: UserSession (or whatever name you are using)

This attribute isn't translated for me.

nowhereman avatar Apr 23 '10 07:04 nowhereman

Hi nowhereman! I had the same problem, but i try without "_" and it works for me with Rails 2.3.5 :). Separate with space, like that: "user session"

vasahaag avatar Sep 02 '10 07:09 vasahaag

Little update: It's working with Rails 2.3.8 the normal way: "user_session".

vasahaag avatar Sep 03 '10 07:09 vasahaag

Closing after six years with no activity. If this is still a problem in the latest version (currently 3.5.0), please let us know.

jaredbeck avatar Dec 02 '16 17:12 jaredbeck