{% if user.groups.count > 0 %}
{% blocktrans with groups=user.groups.all|join:', ' count nb=user.groups.count %}
You are registered in the group: {{ groups }}.
{% plural %}
You are registered in the groups: {{ groups }}.
{% endblocktrans %}
{% else %}
{% trans "You are not registered in any group yet." %}
{% endif %}