Package s3 :: Module s3translate :: Class TranslateAPI
[frames] | no frames]

Class TranslateAPI

source code

object --+
         |
        TranslateAPI

API class for the Translation module to get files, modules and strings individually

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
get_modules(self)
Return a list of modules
source code
 
get_strings_by_module(self, module)
Return a list of strings corresponding to a module
source code
 
get_strings_by_file(self, filename)
Return a list of strings in a given file
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods
 
get_langcodes()
Return a list of language codes
source code
Class Variables
  core_modules = "auth", "default", "errors", "appadmin"
Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

get_langcodes()
Static Method

source code 

Return a list of language codes

get_modules(self)

source code 

Return a list of modules

get_strings_by_module(self, module)

source code 

Return a list of strings corresponding to a module

get_strings_by_file(self, filename)

source code 

Return a list of strings in a given file


Class Variable Details

core_modules

Value:
"auth", "default", "errors", "appadmin"