Home | Trees | Indices | Help |
|
---|
|
A class to specifically handle the plural units created from a po file.
|
|||
|
|||
Boolean |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|||
Source | |||
---|---|---|---|
|
|||
|
|||
Inherited from Inherited from |
|||
Target | |||
|
|||
|
|||
Inherited from Inherited from |
|||
Notes | |||
|
|||
|
|||
Inherited from |
|||
Locations | |||
List |
|
||
Inherited from Inherited from |
|||
Errors | |||
Inherited from |
|
|||
|
|||
|
|||
Inherited from |
|
|||
rich_parsers =
A list of functions to use for parsing a string into a rich string tree. |
|||
Inherited from |
|||
Source | |||
---|---|---|---|
source = property(getsource, setsource)
|
|||
Target | |||
target = property(gettarget, settarget)
|
|
|||
Inherited from Inherited from |
|||
Source | |||
---|---|---|---|
rich_source | |||
Target | |||
rich_target |
|
Constructs a unit containing the given source string
|
Compares two units
|
Sets the source string to the given value.
|
Convert a multistring to a list of "rich" string trees: >>> target = multistring([u'foo', u'bar', u'baz']) >>> TranslationUnit.multistring_to_rich(target) [<StringElem([<StringElem([u'foo'])>])>, <StringElem([<StringElem([u'bar'])>])>, <StringElem([<StringElem([u'baz'])>])>]
|
Convert a "rich" string tree to a
>>> from translate.storage.placeables.interfaces import X >>> rich = [StringElem(['foo', X(id='xxx', sub=[' ']), 'bar'])] >>> TranslationUnit.rich_to_multistring(rich) multistring(u'foo bar')
|
|
Sets the target string to the given value.
|
retrieves the "target" text (second entry), or the entry in the specified language, if it exists
|
Add a note specifically in a "note" tag
|
Returns all notes about this unit. It will probably be freeform text or something reasonable that can be synthesised by the format. It should not include location comments (see getlocations()).
|
Marks the unit as fuzzy or not.
|
|
|
Returns all the references (source locations)
|
Returns the automatic comments (x-po-autocomment), which corresponds to the #. style po comments. |
Indicates whether this unit is a header.
|
Indicates whether this unit can be translated. This should be used to distinguish real units for translation from header, obsolete, binary or other blank units.
|
|
Tells whether or not this specific unit has plural strings.
|
|
rich_parsersA list of functions to use for parsing a string into a rich string tree.
|
|
rich_source
|
rich_target
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Oct 15 13:55:24 2009 | http://epydoc.sourceforge.net |