def publish_msgstr(app, source, source_path, source_line, config, settings):
 from sphinx.io import SphinxI18nReader
 reader = SphinxI18nReader(app=app, parsers=config.source_parsers, parser_name='restructuredtext')
 reader.set_lineno_for_reporter(source_line)
 doc = reader.read(source=StringInput(source=source, source_path=source_path), parser=reader.parser, settings=settings)
 try:
  doc = doc[0]
 except IndexError:
  pass
 return doc

def publish_msgstr ( app , source , source_path , source_line , config , settings ) : from sphinx . io import SphinxI18nReader reader = SphinxI18nReader ( app = app , parsers = config . source_parsers , parser_name = 'restructuredtext' ) reader . set_lineno_for_reporter ( source_line ) doc = reader . read ( source = StringInput ( source = source , source_path = source_path ) , parser = reader . parser , settings = settings ) try : doc = doc [ 0 ] except IndexError : pass return doc
publish msgstr into docutils document .