Apply suggestions from code review
Apply suggestions from code review

Checks were simplified and translation support was added.

Co-Authored-By: Vsevolod Kukol <cb8f6f90fb9fd8831732b956c727af463f0cf83d@microsoft.com>
mono/xwt,lytico/xwt,antmicro/xwt,hwthomas/xwt