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

Class Pootle

source code

object --+
         |
        Pootle

Class to synchronise a Pootle server's translation with the local one


To Do: Before uploading file to Pootle, ensure all relevant untranslated strings are present.

Instance Methods
 
upload(self, lang_code, filename)
Upload a file to Pootle
source code
 
download(self, lang_code)
Download a file from Pootle
source code
 
merge_strings(self, postrings, pystrings, preference)
Merge strings from a PO file and a Py file
source code
 
merge_pootle(self, preference, lang_code) source code

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

Properties

Inherited from object: __class__

Method Details

upload(self, lang_code, filename)

source code 

Upload a file to Pootle

download(self, lang_code)

source code 

Download a file from Pootle

To Do: Allow selection between different variants of language files

merge_strings(self, postrings, pystrings, preference)

source code 

Merge strings from a PO file and a Py file

merge_pootle(self, preference, lang_code)

source code