Package translate :: Package convert :: Module prop2po

[hide private]
[frames] | no frames]

# Module prop2po

source code

convert Java/Mozilla .properties files to Gettext PO localization files

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

Classes | [hide private]

| prop2po convert a .properties file to a .po file for handling the translation.

Functions | [hide private]

convertstrings(inputfile, outputfile, templatefile, personality="strings", pot=False, duplicatestyle="msgctxt", encoding=None) .strings specific convertor function | source code

convertmozillaprop(inputfile, outputfile, templatefile, pot=False, duplicatestyle="msgctxt") Mozilla specific convertor function | source code

convertprop(inputfile, outputfile, templatefile, personality="java", pot=False, duplicatestyle="msgctxt", encoding=None) reads in inputfile using properties, converts using prop2po, writes to outputfile | source code

main(argv=None) | source code

Variables | [hide private]

| formats = `{"properties":("po", convertprop), ("properties", "p`...``

Imports: sys, po, properties

Variables Details | [hide private]

### formats

Value:

      {"properties":("po", convertprop), ("properties", "properties"):("po",
       convertprop), "lang":("po", convertprop), ("lang", "lang"):("po", con
      vertprop), "strings":("po", convertstrings), ("strings", "strings"):("
      po", convertstrings),}