Loading

Paste #pmc1did1z

  1. diff -r 6e1676fcaf82 webtranslate/config.py
  2. --- a/webtranslate/config.py    Mon May 25 14:44:18 2015 +0200
  3. +++ b/webtranslate/config.py    Mon May 25 15:25:49 2015 +0200
  4. @@ -326,7 +326,6 @@
  5.              return "A project file named \"{}\" already exists".format(disk_name)
  6.  
  7.          # Construct a new project from scratch.
  8. -        path = os.path.join(self.project_root, path)
  9.          storage = cfg.storage_format
  10.          if storage == STORAGE_ONE_FILE:
  11.              path = os.path.join(self.project_root, disk_name + ".xml")
  12. diff -r 6e1676fcaf82 webtranslate/pages/upload_language.py
  13. --- a/webtranslate/pages/upload_language.py Mon May 25 14:44:18 2015 +0200
  14. +++ b/webtranslate/pages/upload_language.py Mon May 25 15:25:49 2015 +0200
  15. @@ -158,7 +158,7 @@
  16.          # Push the new set of string-names to all languages (this includes the base language).
  17.          str_names = set(sv.name for sv in ng_data.strings)
  18.          for lang in pdata.languages.values():
  19. -            lng_modfied = False
  20. +            lng_modified = False
  21.              not_seen = str_names.copy()
  22.              for sn in list(lang.changes.keys()):
  23.                  not_seen.discard(sn)
  24.  

Comments