parameters: (self, lang)
return_statement: return msg.replace('[GRITLANGCODE]', lang)
docstring: Returns a translated version of this message.
docstring_summary: Returns a translated version of this message.
docstring_tokens: Returns a translated version of this message .
function: def Translate(self, lang):
      '''Returns a translated version of this message.
      '''
      assert self.clique
      msg = self.clique.MessageForLanguage(lang,
                                           self.PseudoIsAllowed(),
                                           self.ShouldFallbackToEnglish()
                                           ).GetRealContent()
      if self._replace_ellipsis:
        msg = _ELLIPSIS_PATTERN.sub(_ELLIPSIS_SYMBOL, msg)
      # Always remove all byte order marks (\uFEFF) https://crbug.com/1033305
      msg = msg.replace(u'\uFEFF','')
      return msg.replace('[GRITLANGCODE]', lang)
function_tokens: def Translate ( self , lang ) : assert self . clique msg = self . clique . MessageForLanguage ( lang , self . PseudoIsAllowed ( ) , self . ShouldFallbackToEnglish ( ) ) . GetRealContent ( ) if self . _replace_ellipsis : msg = _ELLIPSIS_PATTERN . sub ( _ELLIPSIS_SYMBOL , msg ) # Always remove all byte order marks (\uFEFF) https://crbug.com/1033305 msg = msg . replace ( u'\uFEFF' , '' ) return msg . replace ( '[GRITLANGCODE]' , lang )