~dholbach/help-app/1426304

« back to all changes in this revision

Viewing changes to edit-here/generate-pot

  • Committer: Daniel Holbach
  • Date: 2015-03-02 10:30:45 UTC
  • Revision ID: daniel.holbach@canonical.com-20150302103045-3togoihgvfrj6yho
- move all functionality of generate-* scripts into translations.py
- make find_bcp47_code() a function
- standardise variable names
- refactor code: 
  - class PO: everything related to generation/manipulation of po/pot files
  - class Documents: everything related to reading/manipulating documents

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
def main():
12
12
    translations = Translations()
13
 
    translations.generate_pot_file()
14
 
    if not translations.update_po_files():
 
13
    if not translations.generate_pot_file():
15
14
        sys.exit(1)
16
15
 
17
16
if __name__ == '__main__':