Use polib library that handles this correctly The complexity of the parser is moved to the library
base
web