I don't know way to do it as proposal "Write" method have defined return value.
№w I see that I forgot to make string translatable.