Welcome Guest, Not a member yet? Register   Sign In
Best approach to send a notification internationalized
#1

[eluser]Muser[/eluser]
Hi, I have searched inside the forum and I didn't found any solution about it.

We have a social network site, where each user have his language as default. Currently we are suporting catalan, spanish and euskera languages. We coded a notification system that sends an email to the user when, for example, another user replied a message to the wall. The problem occurs when an user with language euskera do an action to a user with language, for example, catalan, the catalan user receives an email with euskera language inside.

We coded a "reload()" method to the class MY_Language to reset the current language defined.

Then, we want to do:

1. Store the current language of the logged in user that makes the action.
2. Collect all the users that must to be notified about the action, ordered by language.
3. Loop users result and send the message to them. During the loop If the language changes, call the reload() method.
4. Restore the language of the logged in user with reload() method.

Do you suggest another approach to get this thing done?

Thank you!


Messages In This Thread
Best approach to send a notification internationalized - by El Forum - 02-12-2011, 07:36 AM
Best approach to send a notification internationalized - by El Forum - 02-12-2011, 08:56 AM
Best approach to send a notification internationalized - by El Forum - 02-12-2011, 10:53 AM
Best approach to send a notification internationalized - by El Forum - 02-12-2011, 11:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB