Reading default language of email recipient

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
pwc
Posts: 8
Joined: 25 Oct 2011, 11:32

Reading default language of email recipient

Post by pwc »

hi,

i'd like to get the default language of the user who is recieving an email, e.g while adding a comment to an issue. I can't find the right function in the php code to read it out... does anyone know this function?
istvanb
Posts: 226
Joined: 22 Aug 2010, 21:00

Re: Reading default language of email recipient

Post by istvanb »

I think this could help. This is coming from the account_pref_update.php

$f_user_id = gpc_get_int( 'user_id' );
$t_prefs = user_pref_get( $f_user_id );


then

echo($t_prefs->language);

will give you the language of the current user.
Post Reply