Update ifdef condition for MCST-LCC compiler (E2K)
[0ad.git] / source / tools / i18n / pullTranslations.py
blobc6e7af0b0725aa8c7023c921da049f0e32695afa
1 #!/usr/bin/env python3
3 # Copyright (C) 2022 Wildfire Games.
4 # This file is part of 0 A.D.
6 # 0 A.D. is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 2 of the License, or
9 # (at your option) any later version.
11 # 0 A.D. is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
19 import os, sys
21 from txclib.project import Project
23 from i18n_helper import l10nFolderName, transifexClientFolder, projectRootDirectory
25 def main():
26 for root, folders, filenames in os.walk(projectRootDirectory):
27 for folder in folders:
28 if folder == l10nFolderName:
29 if os.path.exists(os.path.join(root, folder, transifexClientFolder)):
30 path = os.path.join(root, folder)
31 os.chdir(path)
32 project = Project(path)
33 project.pull(fetchall=True, force=True, parallel=True)
36 if __name__ == "__main__":
37 main()