Fixes #1624 - Avatar extension check - lang part

Edit error_avatartype.
Second part for this: #1627