Package translate :: Package convert :: Module test_dtd2po :: Class TestDTD2PO
[hide private]
[frames] | no frames]

Class TestDTD2PO

source code

Known Subclasses:

Instance Methods [hide private]
 
dtd2po(self, dtdsource, dtdtemplate=None)
helper that converts dtd source to po source without requiring files
source code
 
convertdtd(self, dtdsource)
call the convertdtd, return the outputfile
source code
 
singleelement(self, pofile)
checks that the pofile contains a single non-header element, and returns it
source code
 
countelements(self, pofile)
returns the number of non-header items
source code
 
test_simpleentity(self)
checks that a simple dtd entity definition converts properly to a po entry
source code
 
test_convertdtd(self)
checks that the convertdtd function is working
source code
 
test_apos(self)
apostrophe should not break a single-quoted entity definition, bug 69
source code
 
test_quotes(self)
quotes should be handled in a single-quoted entity definition
source code
 
test_emptyentity(self)
checks that empty entity definitions survive into po file, bug 15
source code
 
test_emptyentity_translated(self)
checks that if we translate an empty entity it makes it into the PO, bug 101
source code
 
test_localisaton_note_simple(self)
test the simple localisation more becomes a #.
source code
 
test_localisation_note_merge(self)
test that LOCALIZATION NOTES are added properly as #.
source code
 
test_donttranslate_simple(self)
check that we handle DONT_TRANSLATE messages properly
source code
 
test_donttranslate_label(self)
test strangeness when label entity is marked DONT_TRANSLATE and accesskey is not, bug 30
source code
 
test_donttranslate_onlyentity(self)
if the entity is itself just another entity then it shouldn't appear in the output PO file
source code
 
test_donttranslate_commentedout(self)
check that we don't process messages in <!-- comments -->: bug 102
source code
 
test_spaces_at_start_of_dtd_lines(self)
test that pretty print spaces at the start of subsequent DTD element lines are removed from the PO file, bug 79
source code
 
test_accesskeys_folding(self)
test that we fold accesskeys into message strings
source code
 
test_accesskeys_mismatch(self)
check that we can handle accesskeys that don't match and thus can't be folded into the .label entry
source code
 
test_carriage_return_in_multiline_dtd(self)
test that we create nice PO files when we find a in a multiline DTD element
source code
 
test_multiline_with_blankline(self)
test that we can process a multiline entity that has a blank line in it, bug 331
source code
 
test_mulitline_closing_quotes(self)
test that we support various styles and spaces after closing quotes on multiline entities
source code
 
test_preserving_spaces(self)
test that we preserve space that appear at the start of the first line of a DTD entity
source code
 
test_escaping_newline_tabs(self)
test that we handle all kinds of newline permutations
source code
 
test_abandoned_accelerator(self)
test that when a language DTD has an accelerator but the template DTD does not that we abandon the accelerator
source code
 
test_unassociable_accelerator(self)
test to see that we can handle accelerator keys that cannot be associated correctly
source code
 
test_changed_labels_and_accelerators(self)
test to ensure that when the template changes an entity name we can still manage the accelerators
source code
 
wtest_accelerator_keys_not_in_sentence(self)
tests to ensure that we can manage accelerator keys that are not part of the transated sentence eg in Chinese
source code
 
test_exclude_entity_includes(self)
test that we don't turn an include into a translatable string
source code
 
test_linewraps(self)
check that redundant line wraps are removed from the po file
source code
 
test_merging_with_new_untranslated(self)
test that when we merge in new untranslated strings with existing translations we manage the encodings properly
source code
 
test_merge_without_template(self)
test that we we manage the case where we merge and their is no template file
source code
Method Details [hide private]

test_localisaton_note_simple(self)

source code 

test the simple localisation more becomes a #. comment

test_localisation_note_merge(self)

source code 

test that LOCALIZATION NOTES are added properly as #. comments and disambiguated with msgctxt entries