Package translate :: Package convert :: Module test_oo2po :: Class TestOO2PO

[hide private]
[frames] | no frames]

# Class TestOO2PO

source code

Known Subclasses:
  - test_oo2xliff.TestOO2XLIFF
  - , TestOO2POCommand

Nested Classes | [hide private]

| target_filetype this represents a .po file containing various units
| conversion_class

Instance Methods | [hide private]

convert(self, oosource, sourcelanguage=`'``en-US``'`, targetlanguage=`'``af-ZA``'`) helper that converts oo source to po source without requiring files | source code

singleelement(self, pofile) checks that the pofile contains a single non-header element, and returns it | source code

roundtripstring(self, filename, entitystring) Convert the supplied string as part of an OpenOffice.org GSI file to po and back. | source code

check_roundtrip(self, filename, text) Checks that the text converted to po and back is the same as the original. | source code

test_simpleentity(self) checks that a simple oo entry converts properly to a po entry | source code

test_escapes(self) checks that a simple oo entry converts escapes properly to a po entry | source code

test_roundtrip_escape(self) | source code

xtest_roundtrip_whitespaceonly(self) check items that are only special instances of whitespce | source code

test_double_escapes(self) | source code

test_escapes_helpcontent2(self) checks that a helpcontent2 entry converts escapes properly to a po entry | source code

test_msgid_bug_error_address(self) tests the we have the correct url for reporting msgid bugs | source code

test_x_comment_inclusion(self) test that we can merge x-comment language entries into comment sections of the PO file | source code

Class Variables | [hide private]

| conversion_module convert an OpenOffice.org (SDF) localization file to Gettext PO localization files

Method Details | [hide private]

### roundtripstring(self, filename, entitystring)

source code

Convert the supplied string as part of an OpenOffice.org GSI file to po and back.

Return the string once it has been through all the conversions.

Class Variable Details | [hide private]

### conversion_module

convert an OpenOffice.org (SDF) localization file to Gettext PO localization files

See: http://translate.sourceforge.net/wiki/toolkit/oo2po for examples and usage instructions

Value:
  translate.convert.oo2po