parameters: (self, messages, lang)
docstring: Adds substitutions extracted from node.Message objects.
  
      Args:
        messages: a list of node.Message objects.
        lang: The translation language to use in substitutions.
docstring_summary: Adds substitutions extracted from node.Message objects.
docstring_tokens: Adds substitutions extracted from node . Message objects .
function: def AddMessages(self, messages, lang):
      '''Adds substitutions extracted from node.Message objects.
  
      Args:
        messages: a list of node.Message objects.
        lang: The translation language to use in substitutions.
      '''
      subs = [(str(msg.attrs['name']), msg.Translate(lang)) for msg in messages]
      self.AddSubstitutions(dict(subs))
      self.dirty_ = True
function_tokens: def AddMessages ( self , messages , lang ) : subs = [ ( str ( msg . attrs [ 'name' ] ) , msg . Translate ( lang ) ) for msg in messages ] self . AddSubstitutions ( dict ( subs ) ) self . dirty_ = True