Trees | Indices | Help |
|
---|
|
object --+ | base.TranslationUnit --+ | pocommon.pounit --+ | pounit
Base class for translation units.
Our concept of a translation unit is influenced heavily by XLIFF: http://www.oasis-open.org/committees/xliff/documents/xliff-specification.htm
As such most of the method- and variable names borrows from XLIFF terminology.
A translation unit consists of the following:
|
|||
|
|||
|
|||
|
|||
string |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
String |
|
||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|||
Source | |||
---|---|---|---|
|
|||
|
|||
Inherited from |
|||
Target | |||
|
|||
|
|||
Inherited from |
|||
Notes | |||
|
|||
|
|||
|
|||
Locations | |||
List |
|
||
|
|||
Inherited from |
|||
Errors | |||
Inherited from |
|
|||
Inherited from |
|
|||
msgidcomment | |||
msgid_plural | |||
Inherited from |
|||
Source | |||
---|---|---|---|
source | |||
Target | |||
target |
|
Constructs a TranslationUnit containing the given source string.
|
Sets the target string to the given value.
|
The unique identifier for this unit according to the convensions in .mo files.
|
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()).
|
Adds a note (comment).
|
Remove all the translator's notes.
|
Merges the otherpo (with the same msgid) into this one. Overwrite non-blank self.msgstr only if overwrite is True merge comments only if comments is True
|
Indicates whether this unit is a header.
|
Used to see if this unit has no source or target string.
|
Indicates whether this unit is translated. This should be used rather than deducing it from .target, to ensure that other classes can implement more functionality (as XLIFF does).
|
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.
|
Indicates whether this unit is fuzzy.
|
Marks the unit as fuzzy or not.
|
Indicates whether this unit needs review.
|
Tells whether or not this specific unit has plural strings.
|
Extract KDE style msgid comments from the unit.
|
str(x)
|
A list of source code locations.
|
Add one location to the list of locations.
|
Get the message context.
|
|
msgidcomment
|
msgid_plural
|
target |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Sep 23 13:50:54 2008 | http://epydoc.sourceforge.net |