components/policy/tools/template_writers/writers/plist_strings_writer.py
def _AddToStringTable(self, item_name, caption, desc):
    '''Add a title and a description of an item to the string table.

    Args:
      item_name: The name of the item that will get the title and the
        description.
      title: The text of the title to add.
      desc: The text of the description to add.
    '''
    caption = caption.replace('"', '\\"')
    caption = caption.replace('\n', '\\n')
    desc = desc.replace('"', '\\"')
    desc = desc.replace('\n', '\\n')
    self._out.append('%s.pfm_title = \"%s\";' % (item_name, caption))
    self._out.append('%s.pfm_description = \"%s\";' % (item_name, desc))
Add a title and a description of an item to the string table.

    Args:
      item_name: The name of the item that will get the title and the
        description.
      title: The text of the title to add.
      desc: The text of the description to add.
    
Add a title and a description of an item to the string table.
Add a title and a description of an item to the string table .
def _AddToStringTable(self, item_name, caption, desc):
    caption = caption.replace('"', '\\"')
    caption = caption.replace('\n', '\\n')
    desc = desc.replace('"', '\\"')
    desc = desc.replace('\n', '\\n')
    self._out.append('%s.pfm_title = \"%s\";' % (item_name, caption))
    self._out.append('%s.pfm_description = \"%s\";' % (item_name, desc))
def _AddToStringTable ( self , item_name , caption , desc ) : caption = caption . replace ( '"' , '\\"' ) caption = caption . replace ( '\n' , '\\n' ) desc = desc . replace ( '"' , '\\"' ) desc = desc . replace ( '\n' , '\\n' ) self . _out . append ( '%s.pfm_title = \"%s\";' % ( item_name , caption ) ) self . _out . append ( '%s.pfm_description = \"%s\";' % ( item_name , desc ) )
Add a title and a description of an item to the string table.
Add a title and a description of an item to the string table .
'''Add a title and a description of an item to the string table.

    Args:
      item_name: The name of the item that will get the title and the
        description.
      title: The text of the title to add.
      desc: The text of the description to add.
    '''
self
item_name
The name of the item that will get the title and the
description.
The name of the item that will get the title and the description .
caption
desc
The text of the description to add.
The text of the description to add .
title
The text of the title to add.
The text of the title to add .