GithubHelp home page GithubHelp logo

Comments (14)

 avatar commented on May 28, 2024

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.

from authlogic.

fadhlirahim avatar fadhlirahim commented on May 28, 2024

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

from authlogic.

bezelga avatar bezelga commented on May 28, 2024

I'm having the same problem....

from authlogic.

nowhereman avatar nowhereman commented on May 28, 2024

Me too, with Rails 2.3.5 and Ruby 1.8.6.

from authlogic.

astropanic avatar astropanic commented on May 28, 2024

+1 for me, Rails 2.3.5 & Ruby 1.8.7

from authlogic.

orangewise avatar orangewise commented on May 28, 2024

+1 for me too, Rails 2.3.5 & Ruby 1.8.7

from authlogic.

isc avatar isc commented on May 28, 2024

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

from authlogic.

isc avatar isc commented on May 28, 2024

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.

from authlogic.

orangewise avatar orangewise commented on May 28, 2024

Hi isc, can you share your solution?

from authlogic.

isc avatar isc commented on May 28, 2024

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

from authlogic.

nowhereman avatar nowhereman commented on May 28, 2024
models:
  user_session: UserSession (or whatever name you are using)

This attribute isn't translated for me.

from authlogic.

vasahaag avatar vasahaag commented on May 28, 2024

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"

from authlogic.

vasahaag avatar vasahaag commented on May 28, 2024

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

from authlogic.

jaredbeck avatar jaredbeck commented on May 28, 2024

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.

from authlogic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.