Public Member Functions | Public Attributes | Private Attributes | Static Private Attributes | List of all members
pyclearsilver.trans.trans.Translator Class Reference

Public Member Functions

def __init__ (self)
 
def cleanHtmlString (self, s)
 
def containsWords (self, s, ishtml)
 
def descendHDF (self, obj, prefix)
 
def dumpFiles (self, locations, lang)
 
def dumpStrings (self, locations, lang=None)
 
def fetchString (self, s_id, lang)
 
def findString (self, s)
 
def handleFile (self, file)
 
def loadMap (self, file, prefix, lang)
 
def loadStrings (self, one_file=None, verbose=0)
 
def parseCS (self, data)
 
def parseHDF (self, data)
 
def parseHTML (self, data, reset=1)
 
def parseHTMLTag (self, data)
 
def stringsHDF (self, prefix, locations, lang='en', exist=0, tiered=0)
 
def walkDirectory (self, path)
 

Public Attributes

 ignore_files
 
 ignore_paths
 
 ignore_patterns
 
 languages
 
 root
 
 tdb
 

Private Attributes

 _html_in
 
 _html_state
 

Static Private Attributes

 _CS_TAG_RE = None
 
string _CS_TAG_REGEX = '<\\?.+?\\?>'
 
 _HTML_CMT_RE = None
 
string _HTML_CMT_REGEX = '<!--.*?-->'
 
 _HTML_TAG_RE = None
 
string _HTML_TAG_REGEX = '<[^!][^>]*?>'
 

Detailed Description

Definition at line 47 of file trans.py.

Constructor & Destructor Documentation

def pyclearsilver.trans.trans.Translator.__init__ (   self)

Definition at line 55 of file trans.py.

Member Function Documentation

def pyclearsilver.trans.trans.Translator.cleanHtmlString (   self,
  s 
)

Definition at line 282 of file trans.py.

def pyclearsilver.trans.trans.Translator.containsWords (   self,
  s,
  ishtml 
)

Definition at line 286 of file trans.py.

def pyclearsilver.trans.trans.Translator.descendHDF (   self,
  obj,
  prefix 
)

Definition at line 214 of file trans.py.

def pyclearsilver.trans.trans.Translator.dumpFiles (   self,
  locations,
  lang 
)

Definition at line 431 of file trans.py.

def pyclearsilver.trans.trans.Translator.dumpStrings (   self,
  locations,
  lang = None 
)

Definition at line 393 of file trans.py.

def pyclearsilver.trans.trans.Translator.fetchString (   self,
  s_id,
  lang 
)

Definition at line 415 of file trans.py.

def pyclearsilver.trans.trans.Translator.findString (   self,
  s 
)

Definition at line 299 of file trans.py.

def pyclearsilver.trans.trans.Translator.handleFile (   self,
  file 
)

Definition at line 240 of file trans.py.

def pyclearsilver.trans.trans.Translator.loadMap (   self,
  file,
  prefix,
  lang 
)

Definition at line 521 of file trans.py.

def pyclearsilver.trans.trans.Translator.loadStrings (   self,
  one_file = None,
  verbose = 0 
)

Definition at line 311 of file trans.py.

def pyclearsilver.trans.trans.Translator.parseCS (   self,
  data 
)

Definition at line 189 of file trans.py.

def pyclearsilver.trans.trans.Translator.parseHDF (   self,
  data 
)

Definition at line 233 of file trans.py.

def pyclearsilver.trans.trans.Translator.parseHTML (   self,
  data,
  reset = 1 
)

Definition at line 132 of file trans.py.

def pyclearsilver.trans.trans.Translator.parseHTMLTag (   self,
  data 
)

Definition at line 87 of file trans.py.

def pyclearsilver.trans.trans.Translator.stringsHDF (   self,
  prefix,
  locations,
  lang = 'en',
  exist = 0,
  tiered = 0 
)

Definition at line 358 of file trans.py.

def pyclearsilver.trans.trans.Translator.walkDirectory (   self,
  path 
)

Definition at line 262 of file trans.py.

Member Data Documentation

pyclearsilver.trans.trans.Translator._CS_TAG_RE = None
staticprivate

Definition at line 52 of file trans.py.

string pyclearsilver.trans.trans.Translator._CS_TAG_REGEX = '<\\?.+?\\?>'
staticprivate

Definition at line 53 of file trans.py.

pyclearsilver.trans.trans.Translator._HTML_CMT_RE = None
staticprivate

Definition at line 50 of file trans.py.

string pyclearsilver.trans.trans.Translator._HTML_CMT_REGEX = '<!--.*?-->'
staticprivate

Definition at line 51 of file trans.py.

pyclearsilver.trans.trans.Translator._html_in
private

Definition at line 207 of file trans.py.

pyclearsilver.trans.trans.Translator._html_state
private

Definition at line 84 of file trans.py.

pyclearsilver.trans.trans.Translator._HTML_TAG_RE = None
staticprivate

Definition at line 48 of file trans.py.

string pyclearsilver.trans.trans.Translator._HTML_TAG_REGEX = '<[^!][^>]*?>'
staticprivate

Definition at line 49 of file trans.py.

pyclearsilver.trans.trans.Translator.ignore_files

Definition at line 65 of file trans.py.

pyclearsilver.trans.trans.Translator.ignore_paths

Definition at line 64 of file trans.py.

pyclearsilver.trans.trans.Translator.ignore_patterns

Definition at line 68 of file trans.py.

pyclearsilver.trans.trans.Translator.languages

Definition at line 62 of file trans.py.

pyclearsilver.trans.trans.Translator.root

Definition at line 61 of file trans.py.

pyclearsilver.trans.trans.Translator.tdb

Definition at line 56 of file trans.py.


The documentation for this class was generated from the following file:


pyclearsilver
Author(s): Scott Noob Hassan
autogenerated on Mon Jun 10 2019 15:51:13