Comments (14)
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.
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.
I'm having the same problem....
from authlogic.
Me too, with Rails 2.3.5 and Ruby 1.8.6.
from authlogic.
+1 for me, Rails 2.3.5 & Ruby 1.8.7
from authlogic.
+1 for me too, Rails 2.3.5 & Ruby 1.8.7
from authlogic.
+1, i18n doesn't work on the User model for Rails 2.3.5
from authlogic.
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.
Hi isc, can you share your solution?
from authlogic.
I used the list of keys defined on this page:
http://rdoc.info/rdoc/binarylogic/authlogic/blob/85b2a6b3e9993b18c7fb1e4f7b9c6d01cc8b5d17/Authlogic/I18n.html
from authlogic.
models:
user_session: UserSession (or whatever name you are using)
This attribute isn't translated for me.
from authlogic.
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.
Little update:
It's working with Rails 2.3.8 the normal way: "user_session".
from authlogic.
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)
- Hashing ascii values vs bytes with SHA512 HOT 3
- Support for SameSite: "None" cookies HOT 1
- No changelog for 6.1.0 HOT 4
- Ruby 2.7 warnings HOT 2
- Inconsistent credentials cookie behaviour HOT 6
- Password#password_changed? returns true when transitioning crypto providers HOT 4
- Raise an error if database connection is not established before using acts_as_authentic
- Thread Safety HOT 1
- Ruby 2.7 warnings even in 6.1.0 (but not in master) HOT 2
- There isn't Git tag for v5.2.0. HOT 1
- Rubydoc for Authlogic is broken HOT 1
- When logging out from inside an iframe the `user_credentials` cookie doesn't get deleted in chromium based browsers. HOT 1
- Upgrade dependencies to accept Rails 7 HOT 10
- Eliminating a deprecation warning in Rails 7.0 HOT 3
- Wrong error message when valid email format of not existing user and fake password provided HOT 1
- NameError - wrong constant name Object.const_get(camel_cased_word) HOT 1
- Reference documentation (rubydoc) is broken
- NameError: `@' is not allowed as an instance variable name HOT 4
- Authlogic is incompatible with Minitest v5.19.0 and later HOT 3
- Incompatible with Rails 7.1 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from authlogic.