convert TranslationStringFactory docs to function to satisfy sphinx