We use the gettext gem intensively since our app is planned to support 5 or 6 languages.
We just started seeing (or at least just noticed) a problem running our app on hosting rails. Some of the gettexted strings (those we use with variable substitution) appear to be cached! This does not happen in our development environment, even with the rails environment set to production.
The bottom line is that once a gettext string translation and asignment is done, it appears to be frozen. For example, the first person to log into the app gets a message saying "Welcome John Smith blah blah" All future logins get the same welcome message even though their first name ans last name should be substituted into the string.
Here is some relevant code snippets ...
In the gettext po file:
msgid "Welcome_john_doe,_you_are_logged_in"
msgstr "Welcome %0 %1, you are logged in !"
In the login controller:
flash[:info] = _('Welcome_john_doe,_you_are_logged_in').replace_variables([@user.first_name, @user.last_name])
Any ideas?