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

Class TranslateReportStatus

source code

object --+
         |
        TranslateReportStatus

Class to report the percentage of translated strings for each module for a given language.

Instance Methods

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

Class Methods
 
create_master_file(cls)
Create master file of strings and their distribution in modules
source code
 
update_string_counts(cls, lang_code)
Update the translation percentages for all modules for a given language.
source code
 
get_translation_percentages(cls, lang_code)
Get the percentages of translated strings per module for the given language code.
source code
Properties

Inherited from object: __class__

Method Details

create_master_file(cls)
Class Method

source code 

Create master file of strings and their distribution in modules

update_string_counts(cls, lang_code)
Class Method

source code 

Update the translation percentages for all modules for a given language.

To Do: Generate fresh .py files with all relevant strings for this (since we don't store untranslated strings)

get_translation_percentages(cls, lang_code)
Class Method

source code 

Get the percentages of translated strings per module for the given language code.

Parameters:
  • lang_code - the language code