~dholbach/help-app/1426304

« back to all changes in this revision

Viewing changes to edit-here/generate-translations

  • 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:
9
9
 
10
10
def main():
11
11
    translations = Translations()
12
 
    translations.rewrite_links()
13
12
    translations.generate_translations()
14
13
 
15
14