Package translate :: Package convert :: Module pot2po

[hide private]
[frames] | no frames]

# Module pot2po

source code

convert Gettext PO templates (.pot) to PO localization files, preserving existing translations

See: http://translate.sourceforge.net/wiki/toolkit/pot2po for examples and usage instructions

Functions | [hide private]

memory(tmfiles, max_candidates=1, min_similarity=75, max_length=1000) Returns the TM store to use. | source code

convertpot(inputpotfile, outputpofile, templatepofile, tm=None, min_similarity=75, fuzzymatching=True, **kwargs) | source code

convertpot_stores(inputpot, templatepo, tm=None, min_similarity=75, fuzzymatching=True, **kwargs) reads in inputpotfile, adjusts header, writes to outputpofile. | source code

main(argv=None) | source code

Variables | [hide private]

| tmmatcher = `None`

Function Details | [hide private]

### memory(tmfiles, max_candidates=1, min_similarity=75, max_length=1000)

source code

Returns the TM store to use. Only initialises on first call.

### convertpot_stores(inputpot, templatepo, tm=None, min_similarity=75, fuzzymatching=True, **kwargs)

source code

reads in inputpotfile, adjusts header, writes to outputpofile. if templatepofile exists, merge translations from it into outputpofile