Generating "TranslationContext" attribute only when there is some content of it