|  | 
        
          | __init__(self,
        inputfile=None,
        encoding=None,
        unitclass=<class 'translate.storage.pypo.pounit'>) construct a pofile, optionally reading in from inputfile.
 | source code |  | 
    |  | 
        
          | changeencoding(self,
        newencoding) changes the encoding on the file
 | source code |  | 
    |  |  | 
    |  | 
        
          | removeduplicates(self,
        duplicatestyle= 'merge')make sure each msgid is unique ; merge comments etc from duplicates 
      into original
 | source code |  | 
    |  |  | 
    |  | 
        
          | _getoutput(self) convert the units back to lines
 | source code |  | 
    |  | 
        
          | encode(self,
        lines) encode any unicode strings in lines in self._encoding
 | source code |  | 
    |  | 
        
          | decode(self,
        lines) decode any non-unicode strings in lines with self._encoding
 | source code |  | 
    |  |  | 
  
    | Inherited from pocommon.pofile:makeheader Inherited from base.TranslationStore:addsourceunit,addunit,findunit,getunits,isempty,makeindex,save,savefile,translate Inherited from object:__delattr__,__getattribute__,__hash__,__new__,__reduce__,__reduce_ex__,__repr__,__setattr__ Inherited from poheader.poheader:getheaderplural,header,makeheaderdict,mergeheaders,parseheader,tzstring,updatecontributor,updateheader,updateheaderplural |