Gender specific language variables in WCF

Reading Time: < 1 minute

If you need gender specific language variables in WCF you can do something like this.

<item name="wcf.elevenfour.userNote.welcome"><item name="wcf.elevenfour.userNote.welcome"><![CDATA[¡Bienvenid{if $__wcf->getUserProfileHandler()->gender == 2}a{else}o{/if}!]]></item></item>

1 is for male
2 is for female