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?
Reading default language of email recipient
Moderators: Developer, Contributor
Re: Reading default language of email recipient
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.
$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.