# Globalize login engine?

**URL:** <https://www.ruby-forum.com/t/globalize-login-engine/81218>\
**Category:** Engines\
**Created:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/globalize-login-engine/81218 "2007-01-06T19:30:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mamatux](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mamatux](https://www.ruby-forum.com/u/mamatux)\
**Post date:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/globalize-login-engine/81218/1 "2007-01-06T19:30:19Z")

</div>

Hello,

Before posting this suggestion, I have searched the archives finding  
no other discussion of this. So if this has already been discussed  
please throw a link at me 🙂

I’ve bumped my head into the fact that none of the flash-messages  
inside login engine are translated - or prepared for it. I could make  
my own version of the user controller and all the user views making  
it totally unrealistic to ever upgrade login engine (and others using  
globalize out there could do the same). Or I could volunteer to do  
the dirty job and make login engine translateable 🙂

I’m aware that there’s other translation systems out there, so I  
would patch up LoginEngine to only support Globalize. What I had in  
mind was a method that would do the translation through whatever  
translation module one would require.

An example:

flash[:notice] = translate\_string(“Login succesful”)

and in the autenticated\_system.rb add a method like:

def translate\_string(str)  
str.t  
end

I’m sure some ruby-wiseguys at this list can make the  
translate\_string function more dynamic (like detecting translation  
system or something).

The above implementation would make my life easier - and hopefully a  
lot of others as well 🙂

Greetings,  
Gitte W.

---

<div class="post-metadata">

**Author:** ![mamatux](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mamatux](https://www.ruby-forum.com/u/mamatux)\
**Post date:** [January 8, 2007, 2:58pm UTC](https://www.ruby-forum.com/t/globalize-login-engine/81218/2 "2007-01-08T14:58:41Z")

</div>

It’s unlikely that the “login engine” will support any kind of  
globalisation features in the near future, since it’s not something  
that we currently need. However, you are free to add these features  
yourself and roll your own version of the plugin for internal use, or  
the community at large.
