Package translate :: Package convert :: Module test_po2php :: Class TestPO2Php
[hide private]
[frames] | no frames]

Class TestPO2Php

source code

Known Subclasses:

Instance Methods [hide private]
 
po2php(self, posource)
helper that converts po source to .php source without requiring files
source code
 
merge2php(self, phpsource, posource)
helper that merges po translations to .php source without requiring files
source code
 
test_merging_simple(self)
check the simplest case of merging a translation
source code
 
test_space_preservation(self)
check that we preserve any spacing in php files when merging
source code
 
test_merging_blank_entries(self)
check that we can correctly merge entries that are blank in the template
source code
 
test_merging_fuzzy(self)
check merging a fuzzy translation
source code
 
test_locations_with_spaces(self)
check that a location with spaces in php but spaces removed in PO is used correctly
source code