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/>.
21 from txclib
.project
import Project
23 from i18n_helper
import l10nFolderName
, transifexClientFolder
, projectRootDirectory
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
)
32 project
= Project(path
)
33 project
.pull(fetchall
=True, force
=True, parallel
=True)
36 if __name__
== "__main__":