home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / share / xml2po / empty.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2007-04-29  |  2.0 KB  |  56 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4.  
  5. class emptyXmlMode:
  6.     '''Abstract class for special handling of document types.'''
  7.     
  8.     def getIgnoredTags(self):
  9.         '''Returns array of tags to be ignored.'''
  10.         return []
  11.  
  12.     
  13.     def getFinalTags(self):
  14.         """Returns array of tags to be considered 'final'."""
  15.         return []
  16.  
  17.     
  18.     def getSpacePreserveTags(self):
  19.         '''Returns array of tags in which spaces are to be preserved.'''
  20.         return []
  21.  
  22.     
  23.     def getTreatedAttributes(self):
  24.         '''Returns array of tag attributes which content is to be translated'''
  25.         return []
  26.  
  27.     
  28.     def preProcessXml(self, doc, msg):
  29.         '''Preprocess a document and perhaps adds some messages.'''
  30.         pass
  31.  
  32.     
  33.     def postProcessXmlTranslation(self, doc, language, translators):
  34.         '''Sets a language and translators in "doc" tree.
  35.         
  36.         "translators" is a string consisted of translator credits.
  37.         "language" is a simple string.
  38.         "doc" is a libxml2.xmlDoc instance.'''
  39.         pass
  40.  
  41.     
  42.     def getStringForTranslators(self):
  43.         """Returns None or a string to be added to PO files.
  44.  
  45.         Common example is 'translator-credits'."""
  46.         pass
  47.  
  48.     
  49.     def getCommentForTranslators(self):
  50.         '''Returns a comment to be added next to string for crediting translators.
  51.  
  52.         It should explain the format of the string provided by getStringForTranslators().'''
  53.         pass
  54.  
  55.  
  56.