Get application version from manager in git systems
offlate/manager.py
79 | 79 | projectpath = self.basedir + '/' + name | |
80 | 80 | Path(projectpath).mkdir(parents=True) | |
81 | 81 | try: | |
82 | + | data["version"] = "0.3" | |
82 | 83 | proj = self.loadProject(name, lang, system, data) | |
83 | 84 | proj.initialize(projectpath, callback) | |
84 | - | data["version"] = "0.3" | |
85 | 85 | self.projects.append({"name": name, "lang": lang, "system": system, | |
86 | 86 | "info": data}) | |
87 | 87 | except UnsupportedFormatException: |
offlate/systems/git.py
83 | 83 | translationfiles.append({'filename': popath, | |
84 | 84 | 'format': GettextFormat({'file': path + popath, | |
85 | 85 | 'pot': path + potpath, | |
86 | - | 'version': '0.1', | |
86 | + | 'version': self.data['version'], | |
87 | 87 | 'fullname': self.conf['fullname'], | |
88 | 88 | 'lang': self.lang})}) | |
89 | 89 | elif resource['file_format'] == 'yaml': |