Package Pootle :: Package storage :: Module po
[show private | hide private]
[frames | no frames]

Module Pootle.storage.po

A .po file importer and exporter.

Uses translate.storage.po classes to parse/serialize .po translations.
Function Summary
  read_po(potext, store)
Fill TranslationStore store with data in potext.
  write_po(store)
Serialize translation store to .po format.

Variable Summary
dict comment_types = {'visible': '#_', 'other': '#', 'type': ...

Function Details

read_po(potext, store)

Fill TranslationStore store with data in potext.

`potext` can be a string or a file-like object.

Imports the header separately. Deals with plurals.

write_po(store)

Serialize translation store to .po format.

Variable Details

comment_types

Type:
dict
Value:
{'automatic': '#.',
 'msgid': '',
 'obsolete': '#~',
 'other': '#',
 'source': '#:',
 'type': '#,',
 'visible': '#_'}                                                      

Generated by Epydoc 2.1 on Tue Aug 22 04:29:45 2006 http://epydoc.sf.net