#4 Translate inner html only if attribute is set accordingly