Variale to get Gender?

Kim Domino Evers Posted in Component Development 3 years ago

Can I get the gender via a variable?

I have tried with:

<?php $usergender = $user->gender;?>
<div class="user-gender"><?php echo $usergender; ?></div> 

But it only shows the short description like "male", and I have changed it to danish "Mand".

Replies
German Michael Zülsdorff Replied 3 years ago

Read the How to translate Ossn documentation
use <?php echo ossn_print($usergender);?> to output translated strings according to your language file