Module polib :: Class MOEntry
[hide private]
[frames] | no frames]

Class MOEntry

source code

object --+    
         |    
_BaseEntry --+
             |
            MOEntry

Represents a mo file entry.

**Examples**:

>>> entry = MOEntry()
>>> entry.msgid  = 'translate me !'
>>> entry.msgstr = 'traduisez moi !'
>>> print(entry)
msgid "translate me !"
msgstr "traduisez moi !"
<BLANKLINE>
Instance Methods [hide private]
 
__str__(self, wrapwidth=78)
Return the string representation of the entry.
source code

Inherited from _BaseEntry: __init__, __repr__

Inherited from _BaseEntry (private): _str_field

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__str__(self, wrapwidth=78)
(Informal representation operator)

source code 

Return the string representation of the entry.

Overrides: object.__str__