Package translate :: Package convert :: Module test_po2oo :: Class TestPO2OOCommand

[hide private]
[frames] | no frames]

# Class TestPO2OOCommand

source code

    test_convert.TestConvertCommand --+
                                      |
                          TestPO2OO --+
                                      |
                                     TestPO2OOCommand

Tests running actual po2oo commands on files

Instance Methods | [hide private]

test_help(self) tests getting help | source code

merge2oo(self, oosource, posource) helper that merges po translations to oo source through files | source code

convertoo(self, posource, ootemplate, language=`'``en-US``'`) helper to exercise the command line function | source code

Inherited from `test_convert.TestConvertCommand`: `cleardir`, `create_testfile`, `get_testfilename`, `help_check`, `open_testfile`, `read_testfile`, `run_command`, `setup_method`, `teardown_method`

Inherited from `TestPO2OO`: `check_roundtrip`, `roundtripstring`, `test_convertoo`, `test_default_timestamp`, `test_escape_conversion`, `test_helpcontent_escapes`, `test_helpcontent_escapes2`, `test_pofilter`, `test_roundtrip_escape`, `test_roundtrip_quotes`, `test_roundtrip_simple`, `xtest_roundtrip_spaces`

Class Variables | [hide private]

| convertmodule convert Gettext PO localization files to an OpenOffice.org (SDF) localization file
Inherited from `test_convert.TestConvertCommand`: `defaultoptions`

Method Details | [hide private]

### test_help(self)

source code

tests getting help

Overrides: test_convert.TestConvertCommand.test_help

### convertoo(self, posource, ootemplate, language=`'``en-US``'`)

source code

helper to exercise the command line function

Overrides: TestPO2OO.convertoo

Class Variable Details | [hide private]

### convertmodule

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

see: http://translate.sourceforge.net/wiki/toolkit/po2oo for examples and usage instructions

Value:
  translate.convert.po2oo