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

Class TranslateReadFiles

source code

object --+
         |
        TranslateReadFiles

Class to read code files

Instance Methods

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

Static Methods
 
findstr(fileName, spmod, modlist)
Using the methods in TranslateParseFiles to extract the strings fileName -> the file to be used for extraction spmod -> the required module modlist -> a list of all modules in Eden
source code
 
read_html_js(filename)
Function to read and extract strings from html/js files using regular expressions
source code
 
get_user_strings()
Function to return the list of user-supplied strings
source code
 
merge_user_strings_file(newstrings)
Function to merge the existing file of user-supplied strings with newly uploaded strings
source code
 
get_database_strings(all_template_flag)
Function to get database strings from csv files which are to be considered for translation.
source code
Properties

Inherited from object: __class__

Method Details

findstr(fileName, spmod, modlist)
Static Method

source code 

Using the methods in TranslateParseFiles to extract the strings fileName -> the file to be used for extraction spmod -> the required module modlist -> a list of all modules in Eden

read_html_js(filename)
Static Method

source code 

Function to read and extract strings from html/js files using regular expressions

get_user_strings()
Static Method

source code 

Function to return the list of user-supplied strings

merge_user_strings_file(newstrings)
Static Method

source code 

Function to merge the existing file of user-supplied strings with newly uploaded strings

get_database_strings(all_template_flag)
Static Method

source code 

Function to get database strings from csv files which are to be considered for translation.